org.apache.chemistry.opencmis.commons.impl.server
Class ObjectInfoImpl

java.lang.Object
  extended by org.apache.chemistry.opencmis.commons.impl.server.ObjectInfoImpl
All Implemented Interfaces:
ObjectInfo

public class ObjectInfoImpl
extends Object
implements ObjectInfo

Implementation of the ObjectInfo interface.


Constructor Summary
ObjectInfoImpl()
           
ObjectInfoImpl(String id, BaseTypeId baseObjectTypeId)
           
 
Method Summary
 BaseTypeId getBaseType()
          Returns the base type.
 String getContentType()
          Returns the content type of the content if the object is a document and has content, null otherwise.
 String getCreatedBy()
          Returns the creator.
 GregorianCalendar getCreationDate()
          Returns the creation date.
 String getFileName()
          Returns the file name of the content if the object is a document and has content, null otherwise.
 String getId()
          Returns the object id.
 GregorianCalendar getLastModificationDate()
          Returns the last modification date.
 String getName()
          Returns the object name.
 ObjectData getObject()
          Returns the full object.
 List<String> getRelationshipSourceIds()
          Returns the list of ids of the relationships that originate from this object, null is no such relationships exist.
 List<String> getRelationshipTargetIds()
          Returns the list of ids of the relationships that point to this object, null is no such relationships exist.
 List<RenditionInfo> getRenditionInfos()
          Returns rendition information if the object has renditions, null otherwise.
 String getTypeId()
          Returns the type id.
 String getVersionSeriesId()
          Returns the version series id if the object is a document and it is versionable, null otherwise.
 String getWorkingCopyId()
          Returns the working copy id if the object is a document and a working copy exists, null otherwise.
 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.
 void setBaseType(BaseTypeId baseObjectTypeId)
           
 void setContentType(String contentType)
           
 void setCreatedBy(String createdBy)
           
 void setCreationDate(GregorianCalendar creationDate)
           
 void setFileName(String fileName)
           
 void setHasAcl(boolean hasAcl)
           
 void setHasContent(boolean hasContent)
           
 void setHasParent(boolean hasParent)
           
 void setId(String id)
           
 void setIsCurrentVersion(boolean currentVersion)
           
 void setLastModificationDate(GregorianCalendar lastModificationDate)
           
 void setName(String name)
           
 void setObject(ObjectData object)
           
 void setRelationshipSourceIds(List<String> relationshipSourceIds)
           
 void setRelationshipTargetIds(List<String> relationshipTargetIds)
           
 void setRenditionInfos(List<RenditionInfo> renditions)
           
 void setSupportsDescendants(boolean supportsDescendants)
           
 void setSupportsFolderTree(boolean supportsFolderTree)
           
 void setSupportsPolicies(boolean supportsPolicies)
           
 void setSupportsRelationships(boolean supportsRelationships)
           
 void setTypeId(String typeId)
           
 void setVersionSeriesId(String versionSeriesId)
           
 void setWorkingCopyId(String workingCopyId)
           
 void setWorkingCopyOriginalId(String workingCopyOriginalId)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectInfoImpl

public ObjectInfoImpl()

ObjectInfoImpl

public ObjectInfoImpl(String id,
                      BaseTypeId baseObjectTypeId)
Method Detail

getId

public String getId()
Description copied from interface: ObjectInfo
Returns the object id.

Specified by:
getId in interface ObjectInfo

setId

public void setId(String id)

getName

public String getName()
Description copied from interface: ObjectInfo
Returns the object name.

Specified by:
getName in interface ObjectInfo

setName

public void setName(String name)

getCreatedBy

public String getCreatedBy()
Description copied from interface: ObjectInfo
Returns the creator.

Specified by:
getCreatedBy in interface ObjectInfo

setCreatedBy

public void setCreatedBy(String createdBy)

getCreationDate

public GregorianCalendar getCreationDate()
Description copied from interface: ObjectInfo
Returns the creation date.

Specified by:
getCreationDate in interface ObjectInfo

setCreationDate

public void setCreationDate(GregorianCalendar creationDate)

getLastModificationDate

public GregorianCalendar getLastModificationDate()
Description copied from interface: ObjectInfo
Returns the last modification date.

Specified by:
getLastModificationDate in interface ObjectInfo

setLastModificationDate

public void setLastModificationDate(GregorianCalendar lastModificationDate)

getTypeId

public String getTypeId()
Description copied from interface: ObjectInfo
Returns the type id.

Specified by:
getTypeId in interface ObjectInfo

setTypeId

public void setTypeId(String typeId)

getBaseType

public BaseTypeId getBaseType()
Description copied from interface: ObjectInfo
Returns the base type.

Specified by:
getBaseType in interface ObjectInfo

setBaseType

public void setBaseType(BaseTypeId baseObjectTypeId)

isCurrentVersion

public boolean isCurrentVersion()
Description copied from interface: ObjectInfo
Returns true if the object is a document and if it is the current version or it is not versionable, false otherwise.

Specified by:
isCurrentVersion in interface ObjectInfo

setIsCurrentVersion

public void setIsCurrentVersion(boolean currentVersion)

getVersionSeriesId

public String getVersionSeriesId()
Description copied from interface: ObjectInfo
Returns the version series id if the object is a document and it is versionable, null otherwise.

Specified by:
getVersionSeriesId in interface ObjectInfo

setVersionSeriesId

public void setVersionSeriesId(String versionSeriesId)

getWorkingCopyId

public String getWorkingCopyId()
Description copied from interface: ObjectInfo
Returns the working copy id if the object is a document and a working copy exists, null otherwise.

Specified by:
getWorkingCopyId in interface ObjectInfo

setWorkingCopyId

public void setWorkingCopyId(String workingCopyId)

getWorkingCopyOriginalId

public String getWorkingCopyOriginalId()
Description copied from interface: ObjectInfo
Returns the original id of the working copy if the object is a document and a working copy, null otherwise.

Specified by:
getWorkingCopyOriginalId in interface ObjectInfo

setWorkingCopyOriginalId

public void setWorkingCopyOriginalId(String workingCopyOriginalId)

hasContent

public boolean hasContent()
Description copied from interface: ObjectInfo
Returns true if the object is a document and has content, false otherwise.

Specified by:
hasContent in interface ObjectInfo

setHasContent

public void setHasContent(boolean hasContent)

getContentType

public String getContentType()
Description copied from interface: ObjectInfo
Returns the content type of the content if the object is a document and has content, null otherwise.

Specified by:
getContentType in interface ObjectInfo

setContentType

public void setContentType(String contentType)

getFileName

public String getFileName()
Description copied from interface: ObjectInfo
Returns the file name of the content if the object is a document and has content, null otherwise.

Specified by:
getFileName in interface ObjectInfo

setFileName

public void setFileName(String fileName)

getRenditionInfos

public List<RenditionInfo> getRenditionInfos()
Description copied from interface: ObjectInfo
Returns rendition information if the object has renditions, null otherwise.

Specified by:
getRenditionInfos in interface ObjectInfo

setRenditionInfos

public void setRenditionInfos(List<RenditionInfo> renditions)

supportsRelationships

public boolean supportsRelationships()
Description copied from interface: ObjectInfo
Returns true if the object supports relationships even if no relationships exist, false otherwise.

Specified by:
supportsRelationships in interface ObjectInfo

setSupportsRelationships

public void setSupportsRelationships(boolean supportsRelationships)

supportsPolicies

public boolean supportsPolicies()
Description copied from interface: ObjectInfo
Returns true if the object supports policies even if no policies are applied, false otherwise.

Specified by:
supportsPolicies in interface ObjectInfo

setSupportsPolicies

public void setSupportsPolicies(boolean supportsPolicies)

hasAcl

public boolean hasAcl()
Description copied from interface: ObjectInfo
Returns true if the object has an ACL, false otherwise.

Specified by:
hasAcl in interface ObjectInfo

setHasAcl

public void setHasAcl(boolean hasAcl)

hasParent

public boolean hasParent()
Description copied from interface: ObjectInfo
Returns true if the object has at least one parent, false otherwise.

Specified by:
hasParent in interface ObjectInfo

setHasParent

public void setHasParent(boolean hasParent)

supportsDescendants

public boolean supportsDescendants()
Description copied from interface: ObjectInfo
Returns true if the object is a folder and supports getDescendants, false otherwise.

Specified by:
supportsDescendants in interface ObjectInfo

setSupportsDescendants

public void setSupportsDescendants(boolean supportsDescendants)

supportsFolderTree

public boolean supportsFolderTree()
Description copied from interface: ObjectInfo
Returns true if the object is a folder and supports getFolderTree, false otherwise.

Specified by:
supportsFolderTree in interface ObjectInfo

setSupportsFolderTree

public void setSupportsFolderTree(boolean supportsFolderTree)

getRelationshipSourceIds

public List<String> getRelationshipSourceIds()
Description copied from interface: ObjectInfo
Returns the list of ids of the relationships that originate from this object, null is no such relationships exist.

Specified by:
getRelationshipSourceIds in interface ObjectInfo

setRelationshipSourceIds

public void setRelationshipSourceIds(List<String> relationshipSourceIds)

getRelationshipTargetIds

public List<String> getRelationshipTargetIds()
Description copied from interface: ObjectInfo
Returns the list of ids of the relationships that point to this object, null is no such relationships exist.

Specified by:
getRelationshipTargetIds in interface ObjectInfo

setRelationshipTargetIds

public void setRelationshipTargetIds(List<String> relationshipTargetIds)

getObject

public ObjectData getObject()
Description copied from interface: ObjectInfo
Returns the full object.

Specified by:
getObject in interface ObjectInfo

setObject

public void setObject(ObjectData object)


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