public interface CMISServices
| Modifier and Type | Field and Description |
|---|---|
static String |
ASSOC_ID_PREFIX
The prefix we give to association object IDs.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addObjectToFolder(String objectId,
String folderId)
Adds a secondary child association to an object from a folder.
|
void |
applyPolicy(String policyId,
String objectId)
Applies a policy object to a target object.
|
org.alfresco.service.cmr.repository.NodeRef |
applyVersioningState(org.alfresco.service.cmr.repository.NodeRef source,
CMISVersioningStateEnum versioningState)
Applies a versioning state to a new node, potentially resulting in a new node.
|
void |
cancelCheckOut(String objectId)
Cancels check out of a private working copy.
|
org.alfresco.service.cmr.repository.NodeRef |
checkIn(String objectId,
String checkinComment,
boolean isMajor)
Checks in a private working copy.
|
org.alfresco.service.cmr.repository.NodeRef |
checkOut(String objectId)
Checks out an object.
|
String |
createPolicy(Map<String,Serializable> properties,
String folderId,
List<String> policies)
Creates a policy object of the specified type, and optionally adds the policy to a folder.
|
void |
deleteContentStream(String objectId)
Deletes a document's content stream.
|
void |
deleteObject(String objectId,
boolean allVersions)
Deletes an object.
|
List<String> |
deleteTree(String objectId,
boolean continueOnFailure,
boolean unfile,
boolean deleteAllVersions)
Deletes a folder and its children, without raising any exceptions.
|
void |
deleteTreeReportLastError(String objectId,
boolean continueOnFailure,
boolean unfile,
boolean deleteAllVersions)
Deletes a folder and its children, raising an exception for the last error encountered.
|
List<org.alfresco.service.cmr.repository.NodeRef> |
getAllVersions(String objectId)
Gets all versions of an object.
|
List<CMISTypeDefinition> |
getAppliedPolicies(String objectId,
String filter)
Gets the list of policy objects currently applied to a target object.
|
Set<CMISTypeDefinition> |
getAspects(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Gets the aspects applied to a node.
|
Collection<CMISTypeDefinition> |
getBaseTypes()
Gets the CMIS base types.
|
org.alfresco.service.cmr.repository.NodeRef[] |
getCheckedOut(String username,
org.alfresco.service.cmr.repository.NodeRef folder,
boolean includeDescendants,
String orderBy)
Query for checked out items
|
org.alfresco.query.PagingResults<FileInfo> |
getChildren(org.alfresco.service.cmr.repository.NodeRef parent,
CMISTypesFilterEnum typesFilter,
BigInteger maxItems,
BigInteger skipCount,
String orderBy)
Get node children
|
org.alfresco.service.cmr.repository.NodeRef[] |
getChildren(org.alfresco.service.cmr.repository.NodeRef parent,
CMISTypesFilterEnum typesFilter,
String orderBy)
Get node children
|
String |
getCMISSpecTitle()
Gets the supported CMIS Specification Title
|
String |
getCMISVersion()
Gets the supported CMIS Version
|
org.alfresco.service.cmr.repository.NodeRef |
getDefaultRootNodeRef()
Gets the default root node ref
|
String |
getDefaultRootPath()
Gets the default root node path
|
org.alfresco.service.cmr.repository.StoreRef |
getDefaultRootStoreRef()
Gets the default store ref
|
org.alfresco.service.cmr.repository.NodeRef |
getFolder(String objectId)
Gets a folder from an object ID.
|
org.alfresco.service.cmr.repository.NodeRef |
getFolderParent(String folderId)
Gets parent of a folder.
|
org.alfresco.service.cmr.repository.NodeRef |
getLatestVersion(String objectId,
boolean major)
Gets the latest version of an object and optionally the latest major version.
|
org.alfresco.service.cmr.repository.NodeRef |
getNode(String referenceType,
String[] reference)
Finds a NodeRef given a repository reference
|
<T> T |
getObject(String objectId,
Class<T> requiredType,
boolean forUpdate,
boolean isVersionable,
boolean isPwc)
Gets an object or a required type from an object ID.
|
Map<String,Serializable> |
getProperties(org.alfresco.service.cmr.repository.AssociationRef assocRef)
Get all properties of an association's type.
|
Map<String,Serializable> |
getProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Get all properties of a node's type.
|
Map<String,Serializable> |
getProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
CMISTypeDefinition typeDef)
Get all of a node's values for the properties in the given type or aspect.
|
Serializable |
getProperty(org.alfresco.service.cmr.repository.AssociationRef assocRef,
String propertyName)
Get a single property for an association.
|
Serializable |
getProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
CMISTypeDefinition typeDef,
String propertyName)
Get a single property, optionally constrained to a given node type or aspect
|
Serializable |
getProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String propertyName)
Get a single property belonging to the node's type.
|
<T> T |
getReadableObject(String objectId,
Class<T> requiredType)
Gets a readable object of a required type from an object ID.
|
org.alfresco.service.cmr.repository.AssociationRef[] |
getRelationships(org.alfresco.service.cmr.repository.NodeRef node,
CMISTypeDefinition relDef,
boolean includeSubTypes,
CMISRelationshipDirectionEnum direction)
Query for relationships.
|
Map<String,Object> |
getRenditions(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String renditionFilter)
Gets a map of node attributes relating to renditions.
|
CMISTypeDefinition |
getTypeDefinition(org.alfresco.service.cmr.repository.AssociationRef associationRef)
Gets the type definition for an association.
|
CMISTypeDefinition |
getTypeDefinition(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Gets the type definition for a node.
|
CMISTypeDefinition |
getTypeDefinition(Object object)
Gets the type definition for a given object.
|
CMISTypeDefinition |
getTypeDefinition(String typeId)
Gets the type definition for a given type ID.
|
<T> T |
getVersionSeries(String objectId,
Class<T> requiredType,
boolean isVersionable)
Gets the version series of an object.
|
void |
moveObject(String objectId,
String targetFolderId,
String sourceFolderId)
Moves an object from one folder to another.
|
void |
removeObjectFromFolder(String objectId,
String folderId)
Removes a secondary child association to an object from a folder.
|
void |
removePolicy(String policyId,
String objectId)
Removes a previously applied policy from a target object.
|
void |
setAspects(org.alfresco.service.cmr.repository.NodeRef node,
Iterable<String> aspectsToRemove,
Iterable<String> aspectsToAdd)
Sets the aspects on a node (Alfresco extension).
|
boolean |
setContentStream(String objectId,
org.alfresco.service.namespace.QName propertyQName,
boolean overwriteFlag,
InputStream contentStream,
String mimeType)
Sets the content stream on an object.
|
void |
setProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
CMISTypeDefinition typeDef,
String propertyName,
Serializable value)
Set a single property, optionally constrained to a given node type or aspect
|
void |
setProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String propertyName,
Serializable value)
Set a single property belonging to the node's type.
|
static final String ASSOC_ID_PREFIX
String getCMISVersion()
String getCMISSpecTitle()
String getDefaultRootPath()
org.alfresco.service.cmr.repository.NodeRef getDefaultRootNodeRef()
org.alfresco.service.cmr.repository.StoreRef getDefaultRootStoreRef()
org.alfresco.service.cmr.repository.NodeRef getNode(String referenceType, String[] reference)
referenceType - node, pathreference - node => id, path => pathMap<String,Object> getRenditions(org.alfresco.service.cmr.repository.NodeRef nodeRef, String renditionFilter) throws CMISFilterNotValidException
nodeRef - the node refrenditionFilter - the rendition filterCMISFilterNotValidException - if the rendition filter is invalidorg.alfresco.service.cmr.repository.NodeRef[] getChildren(org.alfresco.service.cmr.repository.NodeRef parent,
CMISTypesFilterEnum typesFilter,
String orderBy)
throws CMISInvalidArgumentException
parent - parent nodetypesFilter - types filterorderBy - comma-separated list of sort names and the ascending modifier "ASC" or the descending modifier "DESC"
for each sort nameCMISInvalidArgumentExceptionorg.alfresco.query.PagingResults<FileInfo> getChildren(org.alfresco.service.cmr.repository.NodeRef parent, CMISTypesFilterEnum typesFilter, BigInteger maxItems, BigInteger skipCount, String orderBy) throws CMISInvalidArgumentException
parent - parent nodetypesFilter - types filtermaxItems - number of items (in page)skipCount - number of items to skip (page starts at next item)orderBy - comma-separated list of sort names and the ascending modifier "ASC" or the descending modifier "DESC"
for each sort nameCMISInvalidArgumentExceptionorg.alfresco.service.cmr.repository.NodeRef[] getCheckedOut(String username, org.alfresco.service.cmr.repository.NodeRef folder, boolean includeDescendants, String orderBy) throws CMISInvalidArgumentException
username - for userfolder - (optional) within folderincludeDescendants - true => include descendants of folder, false => only children of folderorderBy - comma-separated list of query names and the ascending modifier "ASC" or the descending modifier "DESC"
for each query nameCMISInvalidArgumentExceptionorg.alfresco.service.cmr.repository.AssociationRef[] getRelationships(org.alfresco.service.cmr.repository.NodeRef node,
CMISTypeDefinition relDef,
boolean includeSubTypes,
CMISRelationshipDirectionEnum direction)
throws CMISInvalidArgumentException
relDef - type of relationship to query (or null, for all relationships)includeSubTypes - the include sub typesdirection - limit direction of relationships to query (or null, for both directions)node - the nodeCMISInvalidArgumentException - if an argument is invalidSerializable getProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef, String propertyName) throws CMISInvalidArgumentException
nodeRef - the nodepropertyName - the property nameCMISInvalidArgumentException - if an argument is invalidSerializable getProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef, CMISTypeDefinition typeDef, String propertyName) throws CMISInvalidArgumentException
nodeRef - the nodetypeDef - the node type or aspect or null if any property can be returnedpropertyName - the property nameCMISInvalidArgumentException - if an argument is invalidSerializable getProperty(org.alfresco.service.cmr.repository.AssociationRef assocRef, String propertyName) throws CMISInvalidArgumentException
assocRef - the associationpropertyName - the property nameCMISInvalidArgumentException - if an argument is invalidMap<String,Serializable> getProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws CMISInvalidArgumentException
nodeRef - the node refCMISInvalidArgumentException - if an argument is invalidMap<String,Serializable> getProperties(org.alfresco.service.cmr.repository.AssociationRef assocRef) throws CMISInvalidArgumentException
assocRef - the associationCMISInvalidArgumentException - if an argument is invalidMap<String,Serializable> getProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef, CMISTypeDefinition typeDef) throws CMISInvalidArgumentException
nodeRef - the node reftypeDef - the type or aspect definitionCMISInvalidArgumentException - if an argument is invalidSet<CMISTypeDefinition> getAspects(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef - the node refCMISInvalidArgumentException - if an argument is invalidvoid setProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String propertyName,
Serializable value)
throws CMISInvalidArgumentException,
CMISConstraintException
nodeRef - the node refpropertyName - the property namevalue - the valueCMISInvalidArgumentException - if an argument is invalidCMISConstraintException - if the property cannot be setvoid setProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
CMISTypeDefinition typeDef,
String propertyName,
Serializable value)
throws CMISInvalidArgumentException,
CMISConstraintException
nodeRef - the node reftypeDef - the node type or aspect or null if any valid property should be set (corresponding aspect
added automatically).propertyName - the property namevalue - the valueCMISInvalidArgumentException - if an argument is invalidCMISConstraintException - if the property cannot be setvoid setAspects(org.alfresco.service.cmr.repository.NodeRef node,
Iterable<String> aspectsToRemove,
Iterable<String> aspectsToAdd)
throws CMISInvalidArgumentException
node - the nodeaspectsToRemove - the aspects to removeaspectsToAdd - the aspects to addCMISInvalidArgumentException - if an argument is invalidorg.alfresco.service.cmr.repository.NodeRef applyVersioningState(org.alfresco.service.cmr.repository.NodeRef source,
CMISVersioningStateEnum versioningState)
throws CMISConstraintException,
CMISInvalidArgumentException
source - the nodeversioningState - the versioning stateCMISConstraintException - if it's not possible to apply the stateCMISInvalidArgumentException - if an argument is invalid<T> T getReadableObject(String objectId, Class<T> requiredType) throws CMISConstraintException, CMISVersioningException, CMISObjectNotFoundException, CMISInvalidArgumentException, CMISPermissionDeniedException
objectId - the object idrequiredType - the required type (NodeRef.class, Version.class, AssociationRef.class or Object.class)CMISConstraintException - if the object can't be returned as the right typeCMISVersioningException - if the object's versioning state isn't as expectedCMISObjectNotFoundException - if the object does not existCMISInvalidArgumentException - if an argument is invalidCMISPermissionDeniedException - if access to the object is denied<T> T getObject(String objectId, Class<T> requiredType, boolean forUpdate, boolean isVersionable, boolean isPwc) throws CMISConstraintException, CMISVersioningException, CMISObjectNotFoundException, CMISInvalidArgumentException, CMISPermissionDeniedException
objectId - the object idrequiredType - the required type (NodeRef.class, Version.class, AssociationRef.class or Object.class)forUpdate - Do we require to write to this object? If true then the object must not be checked out
and must not be a version history node unless the required type is assignable from Version.class.isVersionable - Should the object be versionable?isPwc - If isVersionable is true then the object should either be or not be a private working
copy, as indicated by this flagCMISConstraintException - if the object can't be returned as the right typeCMISVersioningException - if the object's versioning state isn't as expectedCMISObjectNotFoundException - if the object does not existCMISInvalidArgumentException - if an argument is invalidCMISPermissionDeniedException - if access to the object is denied<T> T getVersionSeries(String objectId, Class<T> requiredType, boolean isVersionable) throws CMISConstraintException, CMISVersioningException, CMISObjectNotFoundException, CMISInvalidArgumentException, CMISPermissionDeniedException
objectId - the object idrequiredType - the required type (NodeRef.class, Version.class or AssociationRef.class)isVersionable - Should the object be versionable?CMISConstraintException - if the object can't be returned as the right typeCMISVersioningException - if the object's versioning state isn't as expectedCMISObjectNotFoundException - if the object does not existCMISInvalidArgumentException - if an argument is invalidCMISPermissionDeniedException - if access to the object is deniedorg.alfresco.service.cmr.repository.NodeRef getFolder(String objectId) throws CMISConstraintException, CMISVersioningException, CMISObjectNotFoundException, CMISInvalidArgumentException, CMISPermissionDeniedException
objectId - the object idCMISConstraintException - if the object can't be returned as the right typeCMISVersioningException - if the object's versioning state isn't as expectedCMISObjectNotFoundException - if the object does not existCMISInvalidArgumentException - if an argument is invalidCMISPermissionDeniedException - if access to the object is deniedorg.alfresco.service.cmr.repository.NodeRef getFolderParent(String folderId) throws CMISConstraintException, CMISVersioningException, CMISObjectNotFoundException, CMISInvalidArgumentException, CMISPermissionDeniedException
folderId - the folder idCMISConstraintException - if the object can't be returned as the right typeCMISVersioningException - if the object's versioning state isn't as expectedCMISObjectNotFoundException - if the object does not existCMISInvalidArgumentException - if an argument is invalidCMISPermissionDeniedException - if access to the object is deniedCMISTypeDefinition getTypeDefinition(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws CMISInvalidArgumentException
nodeRef - the nodeCMISInvalidArgumentException - if an argument is invalidCMISTypeDefinition getTypeDefinition(org.alfresco.service.cmr.repository.AssociationRef associationRef) throws CMISInvalidArgumentException
associationRef - the associationCMISInvalidArgumentException - if an argument is invalidCMISTypeDefinition getTypeDefinition(String typeId) throws CMISInvalidArgumentException
typeId - the type idCMISInvalidArgumentException - if an argument is invalidCMISTypeDefinition getTypeDefinition(Object object) throws CMISInvalidArgumentException
object - the objectCMISInvalidArgumentException - if an argument is invalidCollection<CMISTypeDefinition> getBaseTypes()
org.alfresco.service.cmr.repository.NodeRef checkOut(String objectId) throws CMISConstraintException, CMISVersioningException, CMISObjectNotFoundException, CMISInvalidArgumentException, CMISPermissionDeniedException
objectId - the object idCMISConstraintException - if the object isn't of the right typeCMISVersioningException - if the object's versioning state isn't as expectedCMISObjectNotFoundException - if the object does not existCMISInvalidArgumentException - if an argument is invalidCMISPermissionDeniedException - if access to the object is deniedorg.alfresco.service.cmr.repository.NodeRef checkIn(String objectId, String checkinComment, boolean isMajor) throws CMISConstraintException, CMISVersioningException, CMISObjectNotFoundException, CMISInvalidArgumentException, CMISPermissionDeniedException
objectId - the object id of the private working copycheckinComment - the checkin commentisMajor - Is this a major version?CMISConstraintException - if the object isn't of the right typeCMISVersioningException - if the object's versioning state isn't as expectedCMISObjectNotFoundException - if the object does not existCMISInvalidArgumentException - if an argument is invalidCMISPermissionDeniedException - if access to the object is deniedvoid cancelCheckOut(String objectId) throws CMISConstraintException, CMISVersioningException, CMISObjectNotFoundException, CMISInvalidArgumentException, CMISPermissionDeniedException
objectId - the object id of the private working copyCMISConstraintException - if the object isn't of the right typeCMISVersioningException - if the object's versioning state isn't as expectedCMISObjectNotFoundException - if the object does not existCMISInvalidArgumentException - if an argument is invalidCMISPermissionDeniedException - if access to the object is deniedList<org.alfresco.service.cmr.repository.NodeRef> getAllVersions(String objectId) throws CMISConstraintException, CMISVersioningException, CMISObjectNotFoundException, CMISInvalidArgumentException, CMISPermissionDeniedException
objectId - the object idCMISConstraintException - if the object isn't of the right typeCMISVersioningException - if the object's versioning state isn't as expectedCMISObjectNotFoundException - if the object does not existCMISInvalidArgumentException - if an argument is invalidCMISPermissionDeniedException - if access to the object is deniedorg.alfresco.service.cmr.repository.NodeRef getLatestVersion(String objectId, boolean major) throws CMISConstraintException, CMISVersioningException, CMISObjectNotFoundException, CMISInvalidArgumentException, CMISPermissionDeniedException
objectId - the object idmajor - Should we return the latest major version?CMISConstraintException - if the object isn't of the right typeCMISVersioningException - if the object's versioning state isn't as expectedCMISObjectNotFoundException - if the object does not existCMISInvalidArgumentException - if an argument is invalidCMISPermissionDeniedException - if access to the object is deniedList<String> deleteTree(String objectId, boolean continueOnFailure, boolean unfile, boolean deleteAllVersions) throws CMISConstraintException, CMISVersioningException, CMISObjectNotFoundException, CMISInvalidArgumentException, CMISPermissionDeniedException
objectId - the folder's object idcontinueOnFailure - should we continue if an error occurs with one of the children?unfile - should we remove non-primary associations to nodes rather than delete them?deleteAllVersions - should we delete all the versions of the documents we delete?CMISConstraintException - if the object isn't of the right typeCMISVersioningException - if the object's versioning state isn't as expectedCMISObjectNotFoundException - if the object does not existCMISInvalidArgumentException - if an argument is invalidCMISPermissionDeniedException - if access to the object is deniedvoid deleteTreeReportLastError(String objectId, boolean continueOnFailure, boolean unfile, boolean deleteAllVersions) throws CMISServiceException
objectId - the folder's object idcontinueOnFailure - should we continue if an error occurs with one of the children?unfile - should we remove non-primary associations to nodes rather than delete them?deleteAllVersions - should we delete all the versions of the nodes we delete?CMISServiceException - the last error encounteredvoid deleteContentStream(String objectId) throws CMISConstraintException, CMISVersioningException, CMISObjectNotFoundException, CMISInvalidArgumentException, CMISPermissionDeniedException
objectId - the object id of the documentCMISConstraintException - if the object isn't of the right typeCMISVersioningException - if the object's versioning state isn't as expectedCMISObjectNotFoundException - if the object does not existCMISInvalidArgumentException - if an argument is invalidCMISPermissionDeniedException - if access to the object is deniedvoid deleteObject(String objectId, boolean allVersions) throws CMISConstraintException, CMISVersioningException, CMISObjectNotFoundException, CMISInvalidArgumentException, CMISPermissionDeniedException, CMISRuntimeException, CMISServiceException
objectId - the object idallVersions - if the object is a document, should we delete all versions?CMISConstraintException - if the object isn't of the right typeCMISVersioningException - if the object's versioning state isn't as expectedCMISObjectNotFoundException - if the object does not existCMISInvalidArgumentException - if an argument is invalidCMISPermissionDeniedException - if access to the object is deniedCMISRuntimeException - on other exceptionsCMISServiceExceptionvoid addObjectToFolder(String objectId, String folderId) throws CMISConstraintException, CMISVersioningException, CMISObjectNotFoundException, CMISInvalidArgumentException, CMISPermissionDeniedException
objectId - the object idfolderId - the folder idCMISConstraintException - if an object isn't of the right typeCMISVersioningException - if an object's versioning state isn't as expectedCMISObjectNotFoundException - if an object does not existCMISInvalidArgumentException - if an argument is invalidCMISPermissionDeniedException - if access to an object is deniedvoid removeObjectFromFolder(String objectId, String folderId) throws CMISNotSupportedException, CMISConstraintException, CMISVersioningException, CMISObjectNotFoundException, CMISInvalidArgumentException, CMISPermissionDeniedException
objectId - the object idfolderId - the folder idCMISNotSupportedException - if the child association is primaryCMISConstraintException - if an object isn't of the right typeCMISVersioningException - if an object's versioning state isn't as expectedCMISObjectNotFoundException - if an object does not existCMISInvalidArgumentException - if an argument is invalidCMISPermissionDeniedException - if access to an object is deniedvoid moveObject(String objectId, String targetFolderId, String sourceFolderId) throws CMISConstraintException, CMISVersioningException, CMISObjectNotFoundException, CMISInvalidArgumentException, CMISPermissionDeniedException
objectId - the object idtargetFolderId - the target folder idsourceFolderId - the source folder idCMISConstraintException - if an object isn't of the right typeCMISVersioningException - if an object's versioning state isn't as expectedCMISObjectNotFoundException - if an object does not existCMISInvalidArgumentException - if an argument is invalidCMISPermissionDeniedException - if access to an object is deniedboolean setContentStream(String objectId, org.alfresco.service.namespace.QName propertyQName, boolean overwriteFlag, InputStream contentStream, String mimeType) throws CMISConstraintException, CMISVersioningException, CMISObjectNotFoundException, CMISContentAlreadyExistsException, CMISStreamNotSupportedException, CMISInvalidArgumentException, CMISPermissionDeniedException
objectId - the object idpropertyQName - the property q nameoverwriteFlag - the overwrite flagcontentStream - the content streammimeType - the mime typetrue if content was overwrittenCMISContentAlreadyExistsException - if overwrite was false and content already existedCMISStreamNotSupportedException - if the object's type definition does not allow a content streamCMISConstraintException - if an object isn't of the right typeCMISVersioningException - if an object's versioning state isn't as expectedCMISObjectNotFoundException - if an object does not existCMISInvalidArgumentException - if an argument is invalidCMISPermissionDeniedException - if access to an object is deniedString createPolicy(Map<String,Serializable> properties, String folderId, List<String> policies) throws CMISConstraintException, CMISRuntimeException, CMISInvalidArgumentException
properties - CMIS propertiesfolderId - parent folder for this new policypolicies - the policiesCMISConstraintException - if there is a problem with the supplied propertiesCMISInvalidArgumentException - if an argument is invalidCMISRuntimeException - on other exceptionsvoid applyPolicy(String policyId, String objectId) throws CMISConstraintException, CMISVersioningException, CMISObjectNotFoundException, CMISInvalidArgumentException, CMISPermissionDeniedException
policyId - policy IdobjectId - target object IdCMISConstraintException - if an object isn't of the right typeCMISVersioningException - if an object's versioning state isn't as expectedCMISObjectNotFoundException - if an object does not existCMISInvalidArgumentException - if an argument is invalidCMISPermissionDeniedException - if access to an object is deniedList<CMISTypeDefinition> getAppliedPolicies(String objectId, String filter) throws CMISConstraintException, CMISVersioningException, CMISObjectNotFoundException, CMISInvalidArgumentException, CMISPermissionDeniedException, CMISFilterNotValidException
objectId - the object idfilter - property filterCMISConstraintException - if an object isn't of the right typeCMISVersioningException - if an object's versioning state isn't as expectedCMISObjectNotFoundException - if an object does not existCMISInvalidArgumentException - if an argument is invalidCMISPermissionDeniedException - if access to an object is deniedCMISFilterNotValidException - if the property filter is invalidvoid removePolicy(String policyId, String objectId) throws CMISConstraintException, CMISVersioningException, CMISObjectNotFoundException, CMISInvalidArgumentException, CMISPermissionDeniedException
policyId - policy IdobjectId - target object Id.CMISConstraintException - if an object isn't of the right typeCMISVersioningException - if an object's versioning state isn't as expectedCMISObjectNotFoundException - if an object does not existCMISInvalidArgumentException - if an argument is invalidCMISPermissionDeniedException - if access to an object is deniedCopyright © 2005–2014 Alfresco Software. All rights reserved.