Package org.opencms.repository
Class CmsRepositoryItem
java.lang.Object
org.opencms.repository.CmsRepositoryItem
- All Implemented Interfaces:
I_CmsRepositoryItem
Represents a single entry in the repository. In the context of OpenCms
this means a single
CmsResource
.- Since:
- 6.5.6
-
Constructor Summary
ConstructorDescriptionCmsRepositoryItem
(CmsResource res, CmsObjectWrapper cms) Construct a new CmsRepositoryItem initialized with theCmsResource
to use and theCmsObjectWrapper
needed for some operations. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Returns the content of this item as a byte array.long
Returns the length of the content of this item.long
Returns the date of the creation of this item.long
Returns the date of the last modification of this item.Returns the mime type of this item.getName()
Returns the name of this item.boolean
Checks if this item is a collection.
-
Constructor Details
-
CmsRepositoryItem
Construct a new CmsRepositoryItem initialized with theCmsResource
to use and theCmsObjectWrapper
needed for some operations.- Parameters:
res
- the CmsResource this CmsRepositoryItem is used forcms
- the actual CmsObjectWrapper
-
-
Method Details
-
getContent
Description copied from interface:I_CmsRepositoryItem
Returns the content of this item as a byte array.- Specified by:
getContent
in interfaceI_CmsRepositoryItem
- Returns:
- the content of this item as a byte array
- See Also:
-
getContentLength
Description copied from interface:I_CmsRepositoryItem
Returns the length of the content of this item.- Specified by:
getContentLength
in interfaceI_CmsRepositoryItem
- Returns:
- the content length of this item as long
- See Also:
-
getCreationDate
Description copied from interface:I_CmsRepositoryItem
Returns the date of the creation of this item.- Specified by:
getCreationDate
in interfaceI_CmsRepositoryItem
- Returns:
- the creation date if this item as long.
- See Also:
-
getLastModifiedDate
Description copied from interface:I_CmsRepositoryItem
Returns the date of the last modification of this item.- Specified by:
getLastModifiedDate
in interfaceI_CmsRepositoryItem
- Returns:
- the last modification date of the item as long
- See Also:
-
getMimeType
Description copied from interface:I_CmsRepositoryItem
Returns the mime type of this item.- Specified by:
getMimeType
in interfaceI_CmsRepositoryItem
- Returns:
- the mime type of this item
- See Also:
-
getName
Description copied from interface:I_CmsRepositoryItem
Returns the name of this item.- Specified by:
getName
in interfaceI_CmsRepositoryItem
- Returns:
- the name of this item
- See Also:
-
isCollection
Description copied from interface:I_CmsRepositoryItem
Checks if this item is a collection.- Specified by:
isCollection
in interfaceI_CmsRepositoryItem
- Returns:
- true if this item is a collection otherwise false
- See Also:
-