org.apache.chemistry.opencmis.commons.server
Interface ObjectInfo


public interface ObjectInfo

This class contains information about an object. This data is used to generate the appropriate links in AtomPub entries and feeds.


Method Summary
 BaseTypeId getBaseType()
          Returns the base type.
 java.lang.String getContentType()
          Returns the content type of the content if the object is a document and has content, null otherwise.
 java.lang.String getCreatedBy()
          Returns the creator.
 java.util.GregorianCalendar getCreationDate()
          Returns the creation date.
 java.lang.String getFileName()
          Returns the file name of the content if the object is a document and has content, null otherwise.
 java.lang.String getId()
          Returns the object id.
 java.util.GregorianCalendar getLastModificationDate()
          Returns the last modification date.
 java.lang.String getName()
          Returns the object name.
 ObjectData getObject()
          Returns the full object.
 java.util.List<java.lang.String> getRelationshipSourceIds()
          Returns the list of ids of the relationships that originate from this object, null is no such relationships exist.
 java.util.List<java.lang.String> getRelationshipTargetIds()
          Returns the list of ids of the relationships that point to this object, null is no such relationships exist.
 java.util.List<RenditionInfo> getRenditionInfos()
          Returns rendition information if the object has renditions, null otherwise.
 java.lang.String getTypeId()
          Returns the type id.
 java.lang.String getVersionSeriesId()
          Returns the version series id if the object is a document and it is versionable, null otherwise.
 java.lang.String getWorkingCopyId()
          Returns the working copy id if the object is a document and a working copy exists, null otherwise.
 java.lang.String getWorkingCopyOriginalId()
          Returns the original id of the working copy if the object is a document and a working copy, null otherwise.
 boolean hasAcl()
          Returns true if the object has an ACL, false otherwise.
 boolean hasContent()
          Returns true if the object is a document and has content, false otherwise.
 boolean hasParent()
          Returns true if the object has at least one parent, false otherwise.
 boolean isCurrentVersion()
          Returns true if the object is a document and if it is the current version or it is not versionable, false otherwise.
 boolean supportsDescendants()
          Returns true if the object is a folder and supports getDescendants, false otherwise.
 boolean supportsFolderTree()
          Returns true if the object is a folder and supports getFolderTree, false otherwise.
 boolean supportsPolicies()
          Returns true if the object supports policies even if no policies are applied, false otherwise.
 boolean supportsRelationships()
          Returns true if the object supports relationships even if no relationships exist, false otherwise.
 

Method Detail

getId

java.lang.String getId()
Returns the object id.


getName

java.lang.String getName()
Returns the object name.


getCreatedBy

java.lang.String getCreatedBy()
Returns the creator.


getCreationDate

java.util.GregorianCalendar getCreationDate()
Returns the creation date.


getLastModificationDate

java.util.GregorianCalendar getLastModificationDate()
Returns the last modification date.


getTypeId

java.lang.String getTypeId()
Returns the type id.


getBaseType

BaseTypeId getBaseType()
Returns the base type.


isCurrentVersion

boolean isCurrentVersion()
Returns true if the object is a document and if it is the current version or it is not versionable, false otherwise.


getVersionSeriesId

java.lang.String getVersionSeriesId()
Returns the version series id if the object is a document and it is versionable, null otherwise.


getWorkingCopyId

java.lang.String getWorkingCopyId()
Returns the working copy id if the object is a document and a working copy exists, null otherwise.


getWorkingCopyOriginalId

java.lang.String getWorkingCopyOriginalId()
Returns the original id of the working copy if the object is a document and a working copy, null otherwise.


hasContent

boolean hasContent()
Returns true if the object is a document and has content, false otherwise.


getContentType

java.lang.String getContentType()
Returns the content type of the content if the object is a document and has content, null otherwise.


getFileName

java.lang.String getFileName()
Returns the file name of the content if the object is a document and has content, null otherwise.


getRenditionInfos

java.util.List<RenditionInfo> getRenditionInfos()
Returns rendition information if the object has renditions, null otherwise.


supportsRelationships

boolean supportsRelationships()
Returns true if the object supports relationships even if no relationships exist, false otherwise.


supportsPolicies

boolean supportsPolicies()
Returns true if the object supports policies even if no policies are applied, false otherwise.


hasAcl

boolean hasAcl()
Returns true if the object has an ACL, false otherwise.


hasParent

boolean hasParent()
Returns true if the object has at least one parent, false otherwise.


supportsDescendants

boolean supportsDescendants()
Returns true if the object is a folder and supports getDescendants, false otherwise.


supportsFolderTree

boolean supportsFolderTree()
Returns true if the object is a folder and supports getFolderTree, false otherwise.


getRelationshipSourceIds

java.util.List<java.lang.String> getRelationshipSourceIds()
Returns the list of ids of the relationships that originate from this object, null is no such relationships exist.


getRelationshipTargetIds

java.util.List<java.lang.String> getRelationshipTargetIds()
Returns the list of ids of the relationships that point to this object, null is no such relationships exist.


getObject

ObjectData getObject()
Returns the full object.



Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.