Package org.opencms.repository
Interface I_CmsRepositoryItem
- All Known Implementing Classes:
CmsRepositoryItem
public interface I_CmsRepositoryItem
This class represents items in the repository interface. That can be
files or folders (collections).
- Since:
- 6.2.4
-
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.
-
Method Details
-
getContent
byte[] getContent()Returns the content of this item as a byte array.- Returns:
- the content of this item as a byte array
-
getContentLength
long getContentLength()Returns the length of the content of this item.- Returns:
- the content length of this item as long
-
getCreationDate
long getCreationDate()Returns the date of the creation of this item.- Returns:
- the creation date if this item as long.
-
getLastModifiedDate
long getLastModifiedDate()Returns the date of the last modification of this item.- Returns:
- the last modification date of the item as long
-
getMimeType
Returns the mime type of this item.- Returns:
- the mime type of this item
-
getName
Returns the name of this item.- Returns:
- the name of this item
-
isCollection
boolean isCollection()Checks if this item is a collection.- Returns:
- true if this item is a collection otherwise false
-