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
ConstructorsConstructorDescriptionCmsRepositoryItem(CmsResource res, CmsObjectWrapper cms) Construct a new CmsRepositoryItem initialized with theCmsResourceto use and theCmsObjectWrapperneeded for some operations. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the content of this item as a byte array.longReturns the length of the content of this item.longReturns the date of the creation of this item.longReturns the date of the last modification of this item.Returns the mime type of this item.getName()Returns the name of this item.booleanChecks if this item is a collection.
-
Constructor Details
-
CmsRepositoryItem
Construct a new CmsRepositoryItem initialized with theCmsResourceto use and theCmsObjectWrapperneeded for some operations.- Parameters:
res- the CmsResource this CmsRepositoryItem is used forcms- the actual CmsObjectWrapper
-
-
Method Details
-
getContent
Description copied from interface:I_CmsRepositoryItemReturns the content of this item as a byte array.- Specified by:
getContentin interfaceI_CmsRepositoryItem- Returns:
- the content of this item as a byte array
- See Also:
-
getContentLength
Description copied from interface:I_CmsRepositoryItemReturns the length of the content of this item.- Specified by:
getContentLengthin interfaceI_CmsRepositoryItem- Returns:
- the content length of this item as long
- See Also:
-
getCreationDate
Description copied from interface:I_CmsRepositoryItemReturns the date of the creation of this item.- Specified by:
getCreationDatein interfaceI_CmsRepositoryItem- Returns:
- the creation date if this item as long.
- See Also:
-
getLastModifiedDate
Description copied from interface:I_CmsRepositoryItemReturns the date of the last modification of this item.- Specified by:
getLastModifiedDatein interfaceI_CmsRepositoryItem- Returns:
- the last modification date of the item as long
- See Also:
-
getMimeType
Description copied from interface:I_CmsRepositoryItemReturns the mime type of this item.- Specified by:
getMimeTypein interfaceI_CmsRepositoryItem- Returns:
- the mime type of this item
- See Also:
-
getName
Description copied from interface:I_CmsRepositoryItemReturns the name of this item.- Specified by:
getNamein interfaceI_CmsRepositoryItem- Returns:
- the name of this item
- See Also:
-
isCollection
Description copied from interface:I_CmsRepositoryItemChecks if this item is a collection.- Specified by:
isCollectionin interfaceI_CmsRepositoryItem- Returns:
- true if this item is a collection otherwise false
- See Also:
-