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