com.solidstategroup.cms
Class Chunk
java.lang.Object
com.solidstategroup.cms.Chunk
- All Implemented Interfaces:
- com.solidstategroup.handles.Identifiable
public class Chunk
- extends java.lang.Object
- implements com.solidstategroup.handles.Identifiable
|
Constructor Summary |
Chunk()
|
Chunk(int newChunkId,
java.lang.String newTitle,
java.lang.String newChunkType,
int newChunkTypeId,
java.util.Date createdOn,
java.util.Date lastModified,
boolean newpublish,
int newpriority,
boolean pageBreak,
boolean defaultChunk,
int chunkNumber)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RENDER_TYPE_NORMAL
public static final int RENDER_TYPE_NORMAL
- See Also:
- Constant Field Values
RENDER_TYPE_SUMMARY
public static final int RENDER_TYPE_SUMMARY
- See Also:
- Constant Field Values
RENDER_TYPE_SEARCH
public static final int RENDER_TYPE_SEARCH
- See Also:
- Constant Field Values
Chunk
public Chunk()
Chunk
public Chunk(int newChunkId,
java.lang.String newTitle,
java.lang.String newChunkType,
int newChunkTypeId,
java.util.Date createdOn,
java.util.Date lastModified,
boolean newpublish,
int newpriority,
boolean pageBreak,
boolean defaultChunk,
int chunkNumber)
getQuery
public java.lang.String getQuery()
execute
public Assets execute(int articleId)
execute
public Assets execute(boolean isPreviewVersion)
execute
public Assets execute()
render
public java.lang.String render(Article thisArticle)
render
public java.lang.String render(Article thisArticle,
int sessionType,
javax.servlet.http.HttpServletRequest request)
renderPlainText
public java.lang.String renderPlainText(Article thisArticle,
int numberOfCharactersToRender,
int sessionType)
render
public java.lang.String render(java.lang.String imageURLPrefix,
java.lang.String documentURLPrefix,
Article thisArticle,
int sessionType)
delete
public boolean delete()
getAssetData
public java.lang.String getAssetData(java.lang.String thisAssetDescription)
destroyold
public boolean destroyold()
- Deletes (permanently from the database) all assets and itself
- Returns:
- The outcome of the action
destroy
public boolean destroy()
setRenderNormal
public void setRenderNormal()
setRenderSummary
public void setRenderSummary()
setRenderSearch
public void setRenderSearch()
getAsset
public Asset getAsset(java.lang.String description)
getId
public int getId()
- Specified by:
getId in interface com.solidstategroup.handles.Identifiable
getTitle
public java.lang.String getTitle()
setTitle
public void setTitle(java.lang.String thistitle)
setChunkAssets
public void setChunkAssets(Assets chunkAssets)
getChunkAssets
public Assets getChunkAssets()
setChunkId
public void setChunkId(int chunkId)
getChunkId
public int getChunkId()
setCreatedDate
public void setCreatedDate(java.util.Date createdDate)
getCreatedDate
public java.util.Date getCreatedDate()
setLastModifiedDate
public void setLastModifiedDate(java.util.Date lastModifiedDate)
getLastModifiedDate
public java.util.Date getLastModifiedDate()
setChunkTypeId
public void setChunkTypeId(int chunkTypeId)
getChunkTypeId
public int getChunkTypeId()
setRootChunkTypeId
public void setRootChunkTypeId(int rootChunkTypeId)
getRootChunkTypeId
public int getRootChunkTypeId()
setPublish
public void setPublish(boolean publish)
isPublish
public boolean isPublish()
setCountry_ID
public void setCountry_ID(int newCountryId)
getCountry_ID
public int getCountry_ID()
setCountry
public void setCountry(Country country)
getCountry
public Country getCountry()
setDeleted
public void setDeleted(boolean deleted)
isDeleted
public boolean isDeleted()
setPriority
public void setPriority(int priority)
getPriority
public int getPriority()
getChunkType
public ChunkType getChunkType()
setChunkType
public void setChunkType(ChunkType chunkType)
isDefaultChunk
public boolean isDefaultChunk()
setDefaultChunk
public void setDefaultChunk(boolean defaultChunk)
setPageBreak
public void setPageBreak(boolean pageBreak)
isPageBreak
public boolean isPageBreak()
getChunkNumber
public int getChunkNumber()
setChunkNumber
public void setChunkNumber(int chunkNumber)
getRenderType
public int getRenderType()
setRenderType
public void setRenderType(int renderType)