站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

ContentImpl - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.cms.impl
Class ContentImpl

java.lang.Object
  extended byorg.jboss.portal.cms.impl.CMSObjectImpl
      extended byorg.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.

Author:
Roy Russo, Christophe Lombart
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
           
private static long serialVersionUID
          The serialVersionUID
protected  java.lang.String versionNumber
           
 
Fields inherited from class org.jboss.portal.cms.impl.CMSObjectImpl
basePath, baseUUID, creationDate, description, lastModified, name, parentUUID, title, versionPath, versionUUID
 
Constructor Summary
ContentImpl()
           
 
Method Summary
 byte[] getBytes()
           
 java.lang.String getContentAsString()
           
 java.lang.String getDescription()
           
 java.lang.String getEncoding()
           
 java.util.Locale getLocale()
           
 java.lang.String getMimeType()
           
 long getSize()
           
 java.io.InputStream getStream()
           
 java.lang.String getTitle()
           
 java.lang.String getVersionNumber()
           
 boolean isLive()
           
 void setBytes(byte[] bytes)
           
 void setDescription(java.lang.String description)
           
 void setEncoding(java.lang.String encoding)
           
 void setLive(boolean live)
           
 void setLocale(java.util.Locale locale)
           
 void setMimeType(java.lang.String mimeType)
           
 void setStream(java.io.InputStream stream)
           
 void setTitle(java.lang.String title)
           
 void setVersionNumber(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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The serialVersionUID

See Also:
Constant Field Values

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
Constructor Detail

ContentImpl

public ContentImpl()
Method Detail

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