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
Version:
$Revision: 1.7 $
Author:
Peter Bonrad

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.
 

Method Detail

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

java.lang.String getMimeType()
Returns the mime type of this item.

Returns:
the mime type of this item

getName

java.lang.String 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