|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.repository.CmsRepositoryItem
public class CmsRepositoryItem
Represents a single entry in the repository. In the context of OpenCms
this means a single CmsResource
.
Constructor Summary | |
---|---|
CmsRepositoryItem(CmsResource res,
CmsObjectWrapper cms)
Construct a new CmsRepositoryItem initialized with the CmsResource
to use and the CmsObjectWrapper needed for some operations. |
Method Summary | |
---|---|
byte[] |
getContent()
Returns the content of this item as a byte array. |
long |
getContentLength()
Returns the length of the content of this item. |
long |
getCreationDate()
Returns the date of the creation of this item. |
long |
getLastModifiedDate()
Returns the date of the last modification of this item. |
java.lang.String |
getMimeType()
Returns the mime type of this item. |
java.lang.String |
getName()
Returns the name of this item. |
boolean |
isCollection()
Checks if this item is a collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CmsRepositoryItem(CmsResource res, CmsObjectWrapper cms)
CmsResource
to use and the CmsObjectWrapper
needed for some operations.
res
- the CmsResource this CmsRepositoryItem is used forcms
- the actual CmsObjectWrapperMethod Detail |
---|
public byte[] getContent()
I_CmsRepositoryItem
getContent
in interface I_CmsRepositoryItem
I_CmsRepositoryItem.getContent()
public long getContentLength()
I_CmsRepositoryItem
getContentLength
in interface I_CmsRepositoryItem
I_CmsRepositoryItem.getContentLength()
public long getCreationDate()
I_CmsRepositoryItem
getCreationDate
in interface I_CmsRepositoryItem
I_CmsRepositoryItem.getCreationDate()
public long getLastModifiedDate()
I_CmsRepositoryItem
getLastModifiedDate
in interface I_CmsRepositoryItem
I_CmsRepositoryItem.getLastModifiedDate()
public java.lang.String getMimeType()
I_CmsRepositoryItem
getMimeType
in interface I_CmsRepositoryItem
I_CmsRepositoryItem.getMimeType()
public java.lang.String getName()
I_CmsRepositoryItem
getName
in interface I_CmsRepositoryItem
I_CmsRepositoryItem.getName()
public boolean isCollection()
I_CmsRepositoryItem
isCollection
in interface I_CmsRepositoryItem
I_CmsRepositoryItem.isCollection()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |