@Deprecated public abstract class AbstractTransientCmisObject extends Object implements TransientCmisObject
Modifier and Type | Class and Description |
---|---|
static class |
AbstractTransientCmisObject.AceChangeHolder
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected Acl |
acl
Deprecated.
|
protected Map<AclPropagation,List<AbstractTransientCmisObject.AceChangeHolder>> |
addAces
Deprecated.
|
protected Set<String> |
addPolicies
Deprecated.
|
protected AllowableActions |
allowableActions
Deprecated.
|
protected boolean |
deleteAllVersions
Deprecated.
|
protected Map<ExtensionLevel,List<CmisExtensionElement>> |
inputExtensions
Deprecated.
|
protected boolean |
isMarkedForDelete
Deprecated.
|
protected boolean |
isModified
Deprecated.
|
protected boolean |
isPropertyUpdateRequired
Deprecated.
|
protected CmisObject |
object
Deprecated.
|
protected Map<ExtensionLevel,List<CmisExtensionElement>> |
ouputExtensions
Deprecated.
|
protected List<Policy> |
policies
Deprecated.
|
protected Map<String,Property<?>> |
properties
Deprecated.
|
protected List<Relationship> |
relationships
Deprecated.
|
protected Map<AclPropagation,List<AbstractTransientCmisObject.AceChangeHolder>> |
removeAces
Deprecated.
|
protected Set<String> |
removePolicies
Deprecated.
|
protected List<Rendition> |
renditions
Deprecated.
|
protected Session |
session
Deprecated.
|
Constructor and Description |
---|
AbstractTransientCmisObject()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addAce(String principalId,
List<String> permissions,
AclPropagation aclPropagation)
Deprecated.
|
void |
applyPolicy(Policy... policyIds)
Deprecated.
|
void |
delete(boolean allVersions)
Deprecated.
|
List<ObjectType> |
findObjectType(String id)
Deprecated.
Returns a list of primary and secondary object types that define the
given property.
|
AllowableActions |
getAllowableActions()
Deprecated.
|
ObjectType |
getBaseType()
Deprecated.
Returns the base type of this CMIS object (object type identified by
cmis:baseTypeId ). |
BaseTypeId |
getBaseTypeId()
Deprecated.
Returns the id of the base type of this CMIS object (CMIS property
cmis:baseTypeId ). |
protected CmisBinding |
getBinding()
Deprecated.
Returns the binding object.
|
String |
getChangeToken()
Deprecated.
Returns the change token (CMIS property
cmis:changeToken ). |
CmisObject |
getCmisObject()
Deprecated.
|
String |
getCreatedBy()
Deprecated.
Returns the user who created this CMIS object (CMIS property
cmis:createdBy ). |
GregorianCalendar |
getCreationDate()
Deprecated.
Returns the timestamp when this CMIS object has been created (CMIS
property
cmis:creationDate ). |
String |
getDescription()
Deprecated.
Returns the description of this CMIS object (CMIS property
cmis:description ). |
String |
getId()
Deprecated.
Returns the object id.
|
List<CmisExtensionElement> |
getInputExtensions(ExtensionLevel level)
Deprecated.
|
GregorianCalendar |
getLastModificationDate()
Deprecated.
Returns the timestamp when this CMIS object has been modified (CMIS
property
cmis:lastModificationDate ). |
String |
getLastModifiedBy()
Deprecated.
Returns the user who modified this CMIS object (CMIS property
cmis:lastModifiedBy ). |
protected String |
getLatestChangeToken(String objectId)
Deprecated.
Fetches the latest change token of this object from the repository.
|
String |
getName()
Deprecated.
Returns the name of this CMIS object (CMIS property
cmis:name ). |
protected ObjectFactory |
getObjectFactory()
Deprecated.
Returns the object factory.
|
protected ObjectId |
getObjectId()
Deprecated.
|
Acl |
getOriginalAcl()
Deprecated.
|
List<CmisExtensionElement> |
getOutputExtensions(ExtensionLevel level)
Deprecated.
|
List<Policy> |
getPolicies()
Deprecated.
|
List<Property<?>> |
getProperties()
Deprecated.
Returns a list of all available CMIS properties.
|
<T> Property<T> |
getProperty(String id)
Deprecated.
Returns the requested property.
|
<T> T |
getPropertyValue(String id)
Deprecated.
Returns the value of the requested property.
|
List<Relationship> |
getRelationships()
Deprecated.
|
List<Rendition> |
getRenditions()
Deprecated.
|
protected String |
getRepositoryId()
Deprecated.
Returns the repository id.
|
List<SecondaryType> |
getSecondaryTypes()
Deprecated.
Returns the secondary types of this CMIS object (object types identified
by
cmis:secondaryObjectTypeIds ). |
protected Session |
getSession()
Deprecated.
Returns the session object.
|
ObjectType |
getType()
Deprecated.
Returns the type of this CMIS object (object type identified by
cmis:objectTypeId ). |
protected void |
initialize(Session session,
CmisObject object)
Deprecated.
|
boolean |
isMarkedForDelete()
Deprecated.
|
boolean |
isModified()
Deprecated.
|
protected Acl |
prepareAcl(List<AbstractTransientCmisObject.AceChangeHolder> achList)
Deprecated.
|
protected Properties |
prepareProperties()
Deprecated.
|
void |
refreshAndReset()
Deprecated.
|
void |
removeAce(String principalId,
List<String> permissions,
AclPropagation aclPropagation)
Deprecated.
|
void |
removePolicy(Policy... policyIds)
Deprecated.
|
void |
reset()
Deprecated.
|
ObjectId |
save()
Deprecated.
|
protected void |
saveACL(String objectId)
Deprecated.
|
protected boolean |
saveDelete(String objectId)
Deprecated.
|
protected void |
savePolicies(String objectId)
Deprecated.
|
protected String |
saveProperties(String objectId,
String changeToken)
Deprecated.
|
void |
setDescription(String description)
Deprecated.
|
void |
setName(String name)
Deprecated.
|
void |
setOutputExtensions(ExtensionLevel level,
List<CmisExtensionElement> extensions)
Deprecated.
|
<T> void |
setPropertyValue(String id,
Object value)
Deprecated.
|
protected Session session
protected CmisObject object
protected AllowableActions allowableActions
protected Acl acl
protected Map<AclPropagation,List<AbstractTransientCmisObject.AceChangeHolder>> addAces
protected Map<AclPropagation,List<AbstractTransientCmisObject.AceChangeHolder>> removeAces
protected List<Relationship> relationships
protected Map<ExtensionLevel,List<CmisExtensionElement>> inputExtensions
protected Map<ExtensionLevel,List<CmisExtensionElement>> ouputExtensions
protected boolean isModified
protected boolean isPropertyUpdateRequired
protected boolean isMarkedForDelete
protected boolean deleteAllVersions
protected void initialize(Session session, CmisObject object)
public CmisObject getCmisObject()
getCmisObject
in interface TransientCmisObject
protected Session getSession()
protected String getRepositoryId()
protected CmisBinding getBinding()
protected ObjectFactory getObjectFactory()
protected ObjectId getObjectId()
public ObjectType getBaseType()
CmisObjectProperties
cmis:baseTypeId
).getBaseType
in interface CmisObjectProperties
public BaseTypeId getBaseTypeId()
CmisObjectProperties
cmis:baseTypeId
).getBaseTypeId
in interface CmisObjectProperties
public ObjectType getType()
CmisObjectProperties
cmis:objectTypeId
).getType
in interface CmisObjectProperties
public List<SecondaryType> getSecondaryTypes()
CmisObjectProperties
cmis:secondaryObjectTypeIds
).getSecondaryTypes
in interface CmisObjectProperties
public List<ObjectType> findObjectType(String id)
CmisObjectProperties
null
is returned.findObjectType
in interface CmisObjectProperties
public String getChangeToken()
CmisObjectProperties
cmis:changeToken
).getChangeToken
in interface CmisObjectProperties
public String getCreatedBy()
CmisObjectProperties
cmis:createdBy
).getCreatedBy
in interface CmisObjectProperties
public GregorianCalendar getCreationDate()
CmisObjectProperties
cmis:creationDate
).getCreationDate
in interface CmisObjectProperties
public String getId()
ObjectId
public GregorianCalendar getLastModificationDate()
CmisObjectProperties
cmis:lastModificationDate
).getLastModificationDate
in interface CmisObjectProperties
public String getLastModifiedBy()
CmisObjectProperties
cmis:lastModifiedBy
).getLastModifiedBy
in interface CmisObjectProperties
public String getName()
CmisObjectProperties
cmis:name
).getName
in interface CmisObjectProperties
public void setName(String name)
setName
in interface TransientCmisObject
public String getDescription()
CmisObjectProperties
cmis:description
).getDescription
in interface CmisObjectProperties
public void setDescription(String description)
setDescription
in interface TransientCmisObject
public List<Property<?>> getProperties()
CmisObjectProperties
getProperties
in interface CmisObjectProperties
public <T> Property<T> getProperty(String id)
CmisObjectProperties
null
is returned.getProperty
in interface CmisObjectProperties
public <T> T getPropertyValue(String id)
CmisObjectProperties
null
is returned.getPropertyValue
in interface CmisObjectProperties
public <T> void setPropertyValue(String id, Object value)
setPropertyValue
in interface TransientCmisObject
public AllowableActions getAllowableActions()
getAllowableActions
in interface TransientCmisObject
public List<Relationship> getRelationships()
getRelationships
in interface TransientCmisObject
public List<Rendition> getRenditions()
getRenditions
in interface TransientCmisObject
public void delete(boolean allVersions)
delete
in interface TransientCmisObject
public void applyPolicy(Policy... policyIds)
applyPolicy
in interface TransientCmisObject
public void removePolicy(Policy... policyIds)
removePolicy
in interface TransientCmisObject
public List<Policy> getPolicies()
getPolicies
in interface TransientCmisObject
public Acl getOriginalAcl()
getOriginalAcl
in interface TransientCmisObject
public void addAce(String principalId, List<String> permissions, AclPropagation aclPropagation)
addAce
in interface TransientCmisObject
public void removeAce(String principalId, List<String> permissions, AclPropagation aclPropagation)
removeAce
in interface TransientCmisObject
public List<CmisExtensionElement> getInputExtensions(ExtensionLevel level)
getInputExtensions
in interface TransientCmisObject
public List<CmisExtensionElement> getOutputExtensions(ExtensionLevel level)
getOutputExtensions
in interface TransientCmisObject
public void setOutputExtensions(ExtensionLevel level, List<CmisExtensionElement> extensions)
setOutputExtensions
in interface TransientCmisObject
public boolean isMarkedForDelete()
isMarkedForDelete
in interface TransientCmisObject
public boolean isModified()
isModified
in interface TransientCmisObject
public void reset()
reset
in interface TransientCmisObject
public void refreshAndReset()
refreshAndReset
in interface TransientCmisObject
public ObjectId save()
save
in interface TransientCmisObject
protected String getLatestChangeToken(String objectId)
protected boolean saveDelete(String objectId)
protected Properties prepareProperties()
protected void savePolicies(String objectId)
protected Acl prepareAcl(List<AbstractTransientCmisObject.AceChangeHolder> achList)
protected void saveACL(String objectId)
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.