当前页面:
在线文档首页 >
JBOSS Portal 2.2 API 英文版文档
ContentImpl - JBOSS Portal 2.2 API 英文版文档
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.lang.Cloneable, CMSObject, Content, java.io.Serializable
- public class ContentImpl
- extends CMSObjectImpl
- implements Content, java.io.Serializable
CMS Version implementation.
- See Also:
- Serialized Form
Field Summary |
protected byte[] |
bytes
|
protected java.lang.String |
encoding
|
protected boolean |
isLive
|
protected java.util.Locale |
locale
|
protected static org.apache.commons.logging.Log |
log
|
protected java.lang.String |
mimeType
|
protected java.lang.String |
versionNumber
|
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
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 long 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