当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
Content - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.cms.model
Interface Content
- All Superinterfaces:
- java.lang.Cloneable, CMSObject
- All Known Implementing Classes:
- ContentImpl
- public interface Content
- extends CMSObject, java.lang.Cloneable
CMS content interface.
- Version:
- $Id: Content.java 5448 2006-10-13 15:29:17 -0400 (Fri, 13 Oct 2006) chris.laprun@jboss.com $
- Author:
- Roy Russo
Methods inherited from interface org.jboss.portal.cms.model.CMSObject |
getBasePath, getBaseUUID, getCreationDate, getDescription, getLastModified, getName, getParentUUID, getTitle, getVersionPath, getVersionUUID, setBasePath, setBaseUUID, setCreationDate, setDescription, setLastModified, setName, setParentUUID, setTitle, setVersionPath, setVersionUUID |
getMimeType
public java.lang.String getMimeType()
setMimeType
public void setMimeType(java.lang.String type)
getSize
public long getSize()
- Returns:
- the
getStream
public java.io.InputStream getStream()
- Returns:
- Returns the content.
setStream
public void setStream(java.io.InputStream stream)
- Parameters:
stream
- The content to set.
getBytes
public byte[] getBytes()
- Returns:
- Returns the content.
setBytes
public void setBytes(byte[] bytes)
- Parameters:
bytes
- The content to set.
getVersionNumber
public java.lang.String getVersionNumber()
setVersionNumber
public void setVersionNumber(java.lang.String versionNumber)
getLocale
public java.util.Locale getLocale()
setLocale
public void setLocale(java.util.Locale locale)
getContentAsString
public java.lang.String getContentAsString()
getEncoding
public java.lang.String getEncoding()
- Returns:
- Returns the encoding.
setEncoding
public void setEncoding(java.lang.String encoding)
- Parameters:
encoding
- The encoding to set.
isLive
public boolean isLive()
setLive
public void setLive(boolean live)