org.exoplatform.commons.api.event.data
Interface File

All Superinterfaces:
BaseObject

public interface File
extends BaseObject

An abstract representation of file.


Method Summary
 InputStream getData()
          Gets the binary data of the File instance.
 String getDCContributor()
          Gets the contributor of the File instance.
 String getDCCreator()
          Gets the creator of the File instance.
 Date getDCDate()
          Gets the last updated date of the File instance.
 String getDCDescription()
          Gets the description of the File instance.
 String getDCPublisher()
          Gets the publisher of the File instance.
 String getDCSubject()
          Gets the subject of the File instance.
 String getEncoding()
          Gets the encoding type of the File instance.
 Date getLastModified()
          Gets the last modified date of the File instance.
 String getMimeType()
          Gets the MIMETYPE of the File instance.
 
Methods inherited from interface org.exoplatform.commons.api.event.data.BaseObject
getCreatedDate, getLastModifiedDate, getLastModifier, getMixinTypes, getName, getOwner, getPath, getPrimaryType, getRating, getTags, getTitle, getUUID, getWorkspace, save
 

Method Detail

getData

InputStream getData()
Gets the binary data of the File instance.

Returns:
Value of the jcr:data property which is stored inside the jcr:content node.

getMimeType

String getMimeType()
Gets the MIMETYPE of the File instance.

Returns:
Value of the jcr:mimeType property which is stored inside the jcr:content node.

getLastModified

Date getLastModified()
Gets the last modified date of the File instance.

Returns:
Value of the jcr:lastModified property which is stored inside the jcr:content node.

getEncoding

String getEncoding()
Gets the encoding type of the File instance.

Returns:
Value of the jcr:encoding property which is stored inside the jcr:content node.

getDCCreator

String getDCCreator()
Gets the creator of the File instance.

Returns:
Value of the dc:creator property which is stored inside the dc:elementSet mixin node type.

getDCDescription

String getDCDescription()
Gets the description of the File instance.

Returns:
Value of the dc:description property which is stored inside the dc:elementSet mixin node type.

getDCContributor

String getDCContributor()
Gets the contributor of the File instance.

Returns:
Value of the dc:contributor property which is stored inside the dc:elementSet mixin node type.

getDCPublisher

String getDCPublisher()
Gets the publisher of the File instance.

Returns:
Value of the dc:publisher property which is stored inside the dc:elementSet mixin node type.

getDCSubject

String getDCSubject()
Gets the subject of the File instance.

Returns:
Value of the dc:subject property which is stored inside the dc:elementSet mixin node type.

getDCDate

Date getDCDate()
Gets the last updated date of the File instance.

Returns:
Value of the dc:date property which is stored inside the dc:elementSet mixin node type.


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.