public interface CmisObject extends ObjectId, CmisObjectProperties
Modifier and Type | Method and Description |
---|---|
Acl |
addAcl(List<Ace> addAces,
AclPropagation aclPropagation)
Adds ACEs to the object and refreshes this object afterwards.
|
Acl |
applyAcl(List<Ace> addAces,
List<Ace> removeAces,
AclPropagation aclPropagation)
Adds and removes ACEs to the object and refreshes this object afterwards.
|
void |
applyPolicy(ObjectId... policyIds)
Applies the provided policies and refreshes this object afterwards.
|
void |
delete()
Deletes this object.
|
void |
delete(boolean allVersions)
Deletes this object.
|
Acl |
getAcl()
Returns the ACL if it has been fetched for this object.
|
<T> T |
getAdapter(Class<T> adapterInterface)
Returns an adapter based on the given interface.
|
AllowableActions |
getAllowableActions()
Returns the allowable actions if they have been fetched for this object.
|
List<CmisExtensionElement> |
getExtensions(ExtensionLevel level)
Returns the extensions for the given level.
|
List<Policy> |
getPolicies()
Returns the applied policies if they have been fetched for this object.
|
long |
getRefreshTimestamp()
Returns the timestamp (in milliseconds) of the last refresh.
|
List<Relationship> |
getRelationships()
Returns the relationships if they have been fetched for this object.
|
List<Rendition> |
getRenditions()
Returns the renditions if they have been fetched for this object.
|
TransientCmisObject |
getTransientObject()
Deprecated.
Support for transient objects will be removed in the future.
|
void |
refresh()
Reloads this object from the repository.
|
void |
refreshIfOld(long durationInMillis)
Reloads the data from the repository if the last refresh did not occur
within
durationInMillis . |
Acl |
removeAcl(List<Ace> removeAces,
AclPropagation aclPropagation)
Removes ACEs to the object and refreshes this object afterwards.
|
void |
removePolicy(ObjectId... policyIds)
Remove the provided policies and refreshes this object afterwards.
|
Acl |
setAcl(List<Ace> aces)
Removes the direct ACE of this object, sets the provided ACEs to the
object and refreshes this object afterwards.
|
CmisObject |
updateProperties(Map<String,?> properties)
Updates the provided properties and refreshes this object afterwards.
|
ObjectId |
updateProperties(Map<String,?> properties,
boolean refresh)
Updates the provided properties.
|
findObjectType, getBaseType, getBaseTypeId, getChangeToken, getCreatedBy, getCreationDate, getDescription, getLastModificationDate, getLastModifiedBy, getName, getProperties, getProperty, getPropertyValue, getSecondaryTypes, getType
AllowableActions getAllowableActions()
List<Relationship> getRelationships()
Acl getAcl()
void delete()
void delete(boolean allVersions)
allVersions
- if this object is a document this parameter defines if only
this version or all versions should be deletedCmisObject updateProperties(Map<String,?> properties)
properties
- the properties to updateObjectId updateProperties(Map<String,?> properties, boolean refresh)
properties
- the properties to updaterefresh
- indicates if this object should be refresh after the updateList<Rendition> getRenditions()
void applyPolicy(ObjectId... policyIds)
void removePolicy(ObjectId... policyIds)
List<Policy> getPolicies()
Acl applyAcl(List<Ace> addAces, List<Ace> removeAces, AclPropagation aclPropagation)
Acl addAcl(List<Ace> addAces, AclPropagation aclPropagation)
Acl removeAcl(List<Ace> removeAces, AclPropagation aclPropagation)
Acl setAcl(List<Ace> aces)
List<CmisExtensionElement> getExtensions(ExtensionLevel level)
<T> T getAdapter(Class<T> adapterInterface)
@Deprecated TransientCmisObject getTransientObject()
TransientCmisObject
long getRefreshTimestamp()
void refresh()
If the object doesn't exist anymore in the repository, a
CmisObjectNotFoundException
is thrown.
void refreshIfOld(long durationInMillis)
durationInMillis
.
If the object doesn't exist anymore in the repository, a
CmisObjectNotFoundException
is thrown.
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.