org.exoplatform.commons.model.impl
Class AbstractFile<T>

java.lang.Object
  extended by org.exoplatform.commons.model.impl.AbtractBaseObject
      extended by org.exoplatform.commons.model.impl.AbstractFile<T>
All Implemented Interfaces:
org.exoplatform.commons.api.event.data.BaseObject, org.exoplatform.commons.api.event.data.File

public abstract class AbstractFile<T>
extends AbtractBaseObject
implements org.exoplatform.commons.api.event.data.File

Created by The eXo Platform SARL Author : Dang Van Minh minh.dang@exoplatform.com Oct 25, 2012 3:26:30 PM


Field Summary
 
Fields inherited from class org.exoplatform.commons.model.impl.AbtractBaseObject
isSystem, LOG, path, UUID, workspace
 
Constructor Summary
AbstractFile(String workspace, String path)
           
AbstractFile(String workspace, String path, boolean isSystem)
           
 
Method Summary
 InputStream getData()
          
 String getDCContributor()
          
 String getDCCreator()
          
 Date getDCDate()
          
 String getDCDescription()
          
 String getDCPublisher()
          
 String getDCSubject()
          
 String getEncoding()
          
 Date getLastModified()
          
 String getMimeType()
          
abstract  T getParent()
          Get Object Parent
 
Methods inherited from class org.exoplatform.commons.model.impl.AbtractBaseObject
getCreatedDate, getCreator, getJCRNode, getLastModifiedDate, getLastModifier, getMixinTypes, getName, getObjectType, getOwner, getPath, getPrimaryType, getRating, getSession, getTags, getTitle, getUUID, getWorkspace, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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
 

Constructor Detail

AbstractFile

public AbstractFile(String workspace,
                    String path)

AbstractFile

public AbstractFile(String workspace,
                    String path,
                    boolean isSystem)
Method Detail

getData

public InputStream getData()

Specified by:
getData in interface org.exoplatform.commons.api.event.data.File

getParent

public abstract T getParent()
                     throws javax.jcr.ItemNotFoundException,
                            javax.jcr.AccessDeniedException,
                            javax.jcr.PathNotFoundException,
                            javax.jcr.RepositoryException
Get Object Parent

Throws:
javax.jcr.RepositoryException
javax.jcr.PathNotFoundException
javax.jcr.AccessDeniedException
javax.jcr.ItemNotFoundException

getMimeType

public String getMimeType()

Specified by:
getMimeType in interface org.exoplatform.commons.api.event.data.File

getLastModified

public Date getLastModified()

Specified by:
getLastModified in interface org.exoplatform.commons.api.event.data.File

getEncoding

public String getEncoding()

Specified by:
getEncoding in interface org.exoplatform.commons.api.event.data.File

getDCCreator

public String getDCCreator()

Specified by:
getDCCreator in interface org.exoplatform.commons.api.event.data.File

getDCDescription

public String getDCDescription()

Specified by:
getDCDescription in interface org.exoplatform.commons.api.event.data.File

getDCContributor

public String getDCContributor()

Specified by:
getDCContributor in interface org.exoplatform.commons.api.event.data.File

getDCPublisher

public String getDCPublisher()

Specified by:
getDCPublisher in interface org.exoplatform.commons.api.event.data.File

getDCSubject

public String getDCSubject()

Specified by:
getDCSubject in interface org.exoplatform.commons.api.event.data.File

getDCDate

public Date getDCDate()

Specified by:
getDCDate in interface org.exoplatform.commons.api.event.data.File


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