public class ObjectInfoImpl extends Object implements ObjectInfo
ObjectInfo interface.| Constructor and Description |
|---|
ObjectInfoImpl() |
ObjectInfoImpl(String id,
BaseTypeId baseObjectTypeId) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAtomId()
Returns an id for the atom:id tag.
|
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 |
setAtomId(String atomId) |
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. |
public ObjectInfoImpl()
public ObjectInfoImpl(String id, BaseTypeId baseObjectTypeId)
public String getId()
ObjectInfogetId in interface ObjectInfopublic void setId(String id)
public String getAtomId()
ObjectInfonull, OpenCMIS
generates a valid id.getAtomId in interface ObjectInfopublic void setAtomId(String atomId)
public String getName()
ObjectInfogetName in interface ObjectInfopublic void setName(String name)
public String getCreatedBy()
ObjectInfogetCreatedBy in interface ObjectInfopublic void setCreatedBy(String createdBy)
public GregorianCalendar getCreationDate()
ObjectInfogetCreationDate in interface ObjectInfopublic void setCreationDate(GregorianCalendar creationDate)
public GregorianCalendar getLastModificationDate()
ObjectInfogetLastModificationDate in interface ObjectInfopublic void setLastModificationDate(GregorianCalendar lastModificationDate)
public String getTypeId()
ObjectInfogetTypeId in interface ObjectInfopublic void setTypeId(String typeId)
public BaseTypeId getBaseType()
ObjectInfogetBaseType in interface ObjectInfopublic void setBaseType(BaseTypeId baseObjectTypeId)
public boolean isCurrentVersion()
ObjectInfotrue if the object is a document and if it is the
current version or it is not versionable, false otherwise.isCurrentVersion in interface ObjectInfopublic void setIsCurrentVersion(boolean currentVersion)
public String getVersionSeriesId()
ObjectInfonull otherwise.getVersionSeriesId in interface ObjectInfopublic void setVersionSeriesId(String versionSeriesId)
public String getWorkingCopyId()
ObjectInfonull otherwise.getWorkingCopyId in interface ObjectInfopublic void setWorkingCopyId(String workingCopyId)
public String getWorkingCopyOriginalId()
ObjectInfonull otherwise.getWorkingCopyOriginalId in interface ObjectInfopublic void setWorkingCopyOriginalId(String workingCopyOriginalId)
public boolean hasContent()
ObjectInfotrue if the object is a document and has content,
false otherwise.hasContent in interface ObjectInfopublic void setHasContent(boolean hasContent)
public String getContentType()
ObjectInfonull otherwise.getContentType in interface ObjectInfopublic void setContentType(String contentType)
public String getFileName()
ObjectInfonull otherwise.getFileName in interface ObjectInfopublic void setFileName(String fileName)
public List<RenditionInfo> getRenditionInfos()
ObjectInfonull otherwise.getRenditionInfos in interface ObjectInfopublic void setRenditionInfos(List<RenditionInfo> renditions)
public boolean supportsRelationships()
ObjectInfotrue if the object supports relationships even if no
relationships exist, false otherwise.supportsRelationships in interface ObjectInfopublic void setSupportsRelationships(boolean supportsRelationships)
public boolean supportsPolicies()
ObjectInfotrue if the object supports policies even if no
policies are applied, false otherwise.supportsPolicies in interface ObjectInfopublic void setSupportsPolicies(boolean supportsPolicies)
public boolean hasAcl()
ObjectInfotrue if the object has an ACL, false
otherwise.hasAcl in interface ObjectInfopublic void setHasAcl(boolean hasAcl)
public boolean hasParent()
ObjectInfotrue if the object has at least one parent,
false otherwise.hasParent in interface ObjectInfopublic void setHasParent(boolean hasParent)
public boolean supportsDescendants()
ObjectInfotrue if the object is a folder and supports
getDescendants, false otherwise.supportsDescendants in interface ObjectInfopublic void setSupportsDescendants(boolean supportsDescendants)
public boolean supportsFolderTree()
ObjectInfotrue if the object is a folder and supports
getFolderTree, false otherwise.supportsFolderTree in interface ObjectInfopublic void setSupportsFolderTree(boolean supportsFolderTree)
public List<String> getRelationshipSourceIds()
ObjectInfonull is no such relationships exist.getRelationshipSourceIds in interface ObjectInfopublic List<String> getRelationshipTargetIds()
ObjectInfonull is no such relationships exist.getRelationshipTargetIds in interface ObjectInfopublic ObjectData getObject()
ObjectInfogetObject in interface ObjectInfopublic void setObject(ObjectData object)
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.