com.solidstategroup.cms
Class TextAsset

java.lang.Object
  extended by com.solidstategroup.cms.Asset
      extended by com.solidstategroup.cms.TextAsset
All Implemented Interfaces:
com.solidstategroup.handles.Identifiable, com.solidstategroup.handles.Named, com.solidstategroup.handles.NamedIdentifiable, java.lang.Comparable
Direct Known Subclasses:
PollAsset, WebFormAsset

public class TextAsset
extends Asset


Field Summary
 
Fields inherited from class com.solidstategroup.cms.Asset
createdOn, dublinCoreMetaData, includeInSearch, searchScore
 
Constructor Summary
TextAsset()
           
TextAsset(java.lang.String newText)
           
TextAsset(java.lang.String newText, int newAssetTypeId, int newAssetId, java.lang.String newDescription, java.lang.String newAssetFormat, int newFormatId, int newChunkFormatId, int newRootChunkFormatId, int priority)
           
 
Method Summary
 boolean destroy()
           
 java.lang.String getAssetData()
           
 java.lang.String getAssetDataHtmlDecoded()
           
 java.lang.String getAssetDataUnprocessed()
           
 java.lang.String getAssetDataWithHTMLTagsRemoved()
           
 java.util.HashMap getRootArticleIds()
           
 void setAssetDataWithEncodedHTML(java.lang.String newData)
           
 void setAssetDataWithEncodedHTMLForPlainText(java.lang.String newData)
           
 boolean storeNewAsset(int chunkId, java.sql.Connection conn)
           
 boolean storeUpdateAsset(int chunkId, java.sql.Connection conn)
          This is only to be called for Sneakily updating assets....
 boolean validateLinks(Articles articlesToCheck)
           
 
Methods inherited from class com.solidstategroup.cms.Asset
compareTo, getAssetId, getAssetType, getChunkFormatId, getCreatedOn, getDescription, getDublinCoreMetaData, getId, getLastModified, getName, getRootChunkFormatId, getSearchScore, isDeleted, isIncludeInSearch, setAssetData, setAssetId, setAssetType, setChunkFormatId, setCreatedOn, setDeleted, setDescription, setDublinCoreMetaData, setIncludeInSearch, setLastModified, setName, setRootChunkFormatId, storeAsset, storeBinaryAsset, storeNewAsset, storeUpdateAsset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextAsset

public TextAsset()

TextAsset

public TextAsset(java.lang.String newText)

TextAsset

public TextAsset(java.lang.String newText,
                 int newAssetTypeId,
                 int newAssetId,
                 java.lang.String newDescription,
                 java.lang.String newAssetFormat,
                 int newFormatId,
                 int newChunkFormatId,
                 int newRootChunkFormatId,
                 int priority)
Method Detail

storeNewAsset

public boolean storeNewAsset(int chunkId,
                             java.sql.Connection conn)
Overrides:
storeNewAsset in class Asset

storeUpdateAsset

public boolean storeUpdateAsset(int chunkId,
                                java.sql.Connection conn)
This is only to be called for Sneakily updating assets.... best not to call this is you are not sure what you are doin..

Overrides:
storeUpdateAsset in class Asset

validateLinks

public boolean validateLinks(Articles articlesToCheck)
Overrides:
validateLinks in class Asset

getRootArticleIds

public java.util.HashMap getRootArticleIds()
Overrides:
getRootArticleIds in class Asset

getAssetData

public java.lang.String getAssetData()
Overrides:
getAssetData in class Asset

getAssetDataUnprocessed

public java.lang.String getAssetDataUnprocessed()
Overrides:
getAssetDataUnprocessed in class Asset

getAssetDataHtmlDecoded

public java.lang.String getAssetDataHtmlDecoded()

setAssetDataWithEncodedHTML

public void setAssetDataWithEncodedHTML(java.lang.String newData)

setAssetDataWithEncodedHTMLForPlainText

public void setAssetDataWithEncodedHTMLForPlainText(java.lang.String newData)

getAssetDataWithHTMLTagsRemoved

public java.lang.String getAssetDataWithHTMLTagsRemoved()

destroy

public boolean destroy()
Overrides:
destroy in class Asset