org.jboss.portal.cms.impl
Class ContentImpl
java.lang.Object
org.jboss.portal.cms.impl.CMSObjectImpl
org.jboss.portal.cms.impl.ContentImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, CMSObject, Content
public class ContentImpl
- extends CMSObjectImpl
- implements Content, java.io.Serializable
CMS Version implementation.
- Author:
- Roy Russo, Christophe Lombart
- See Also:
- Serialized Form
| Methods inherited from class org.jboss.portal.cms.impl.CMSObjectImpl |
getBasePath, getBaseUUID, getCreationDate, getLastModified, getName, getParentUUID, getVersionPath, getVersionUUID, setBasePath, setBaseUUID, setCreationDate, setLastModified, setName, setParentUUID, setVersionPath, setVersionUUID |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.portal.cms.model.CMSObject |
getBasePath, getBaseUUID, getCreationDate, getLastModified, getName, getParentUUID, getVersionPath, getVersionUUID, setBasePath, setBaseUUID, setCreationDate, setLastModified, setName, setParentUUID, setVersionPath, setVersionUUID |
log
protected static final org.apache.commons.logging.Log log
bytes
protected byte[] bytes
encoding
protected java.lang.String encoding
isLive
protected boolean isLive
versionNumber
protected java.lang.String versionNumber
locale
protected java.util.Locale locale
mimeType
protected java.lang.String mimeType
size
protected int size
isWaitingForPublishApproval
protected boolean isWaitingForPublishApproval
approvalProcessId
protected java.lang.String approvalProcessId
ContentImpl
public ContentImpl()
getTitle
public java.lang.String getTitle()
- Specified by:
getTitle in interface CMSObject- Overrides:
getTitle in class CMSObjectImpl
setTitle
public void setTitle(java.lang.String title)
- Specified by:
setTitle in interface CMSObject- Overrides:
setTitle in class CMSObjectImpl
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription in interface CMSObject- Overrides:
getDescription in class CMSObjectImpl
setDescription
public void setDescription(java.lang.String description)
- Specified by:
setDescription in interface CMSObject- Overrides:
setDescription in class CMSObjectImpl
getLocale
public java.util.Locale getLocale()
- Specified by:
getLocale in interface Content
setLocale
public void setLocale(java.util.Locale locale)
- Specified by:
setLocale in interface Content
getVersionNumber
public java.lang.String getVersionNumber()
- Specified by:
getVersionNumber in interface Content
setVersionNumber
public void setVersionNumber(java.lang.String versionNumber)
- Specified by:
setVersionNumber in interface Content
getStream
public java.io.InputStream getStream()
- Specified by:
getStream in interface Content
- Returns:
- Returns the content.
getBytes
public byte[] getBytes()
- Specified by:
getBytes in interface Content
- Returns:
- Returns the content.
getContentAsString
public java.lang.String getContentAsString()
- Specified by:
getContentAsString in interface Content
setStream
public void setStream(java.io.InputStream stream)
- Specified by:
setStream in interface Content
- Parameters:
stream - The content to set.
setBytes
public void setBytes(byte[] bytes)
- Specified by:
setBytes in interface Content
- Parameters:
bytes - The content to set.
getEncoding
public java.lang.String getEncoding()
- Specified by:
getEncoding in interface Content
- Returns:
- Returns the encoding.
setEncoding
public void setEncoding(java.lang.String encoding)
- Specified by:
setEncoding in interface Content
- Parameters:
encoding - The encoding to set.
isLive
public boolean isLive()
- Specified by:
isLive in interface Content
setLive
public void setLive(boolean live)
- Specified by:
setLive in interface Content
getSize
public int getSize()
- Specified by:
getSize in interface Content
- Returns:
- the
getMimeType
public java.lang.String getMimeType()
- Specified by:
getMimeType in interface Content
setMimeType
public void setMimeType(java.lang.String mimeType)
- Specified by:
setMimeType in interface Content
setSize
public void setSize(int size)
- Specified by:
setSize in interface Content
isWaitingForPublishApproval
public boolean isWaitingForPublishApproval()
- Description copied from interface:
Content
- this is used to signify that a content is waiting to be approved before being published to go
live
- Specified by:
isWaitingForPublishApproval in interface Content
- Returns:
setWaitingForPublishApproval
public void setWaitingForPublishApproval(boolean isWaitingForPublishApproval)
- Specified by:
setWaitingForPublishApproval in interface Content
- Parameters:
isWaitingForPublishApproval -
getApprovalProcessId
public java.lang.String getApprovalProcessId()
- Specified by:
getApprovalProcessId in interface Content
- Returns:
- the approvalProcessId
setApprovalProcessId
public void setApprovalProcessId(java.lang.String approvalProcessId)
- Specified by:
setApprovalProcessId in interface Content
- Parameters:
approvalProcessId - the approvalProcessId to set