public class CMISServicesImpl extends java.lang.Object implements CMISServices, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener, org.alfresco.repo.tenant.TenantDeployer
ASSOC_ID_PREFIX| Constructor and Description |
|---|
CMISServicesImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addObjectToFolder(java.lang.String objectId,
java.lang.String folderId)
Adds a secondary child association to an object from a folder.
|
void |
applyPolicy(java.lang.String policyId,
java.lang.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(java.lang.String objectId)
Cancels check out of a private working copy.
|
org.alfresco.service.cmr.repository.NodeRef |
checkIn(java.lang.String objectId,
java.lang.String checkinComment,
boolean isMajor)
Checks in a private working copy.
|
org.alfresco.service.cmr.repository.NodeRef |
checkOut(java.lang.String objectId)
Checks out an object.
|
java.lang.String |
createPolicy(java.util.Map properties,
java.lang.String folderId,
java.util.List policies)
Creates a policy object of the specified type, and optionally adds the policy to a folder.
|
void |
deleteContentStream(java.lang.String objectId)
Deletes a document's content stream.
|
void |
deleteObject(java.lang.String objectId,
boolean allVersions)
Deletes an object.
|
java.util.List |
deleteTree(java.lang.String objectId,
boolean continueOnFailure,
boolean unfile,
boolean deleteAllVersions)
Deletes a folder and its children, without raising any exceptions.
|
void |
deleteTreeReportLastError(java.lang.String objectId,
boolean continueOnFailure,
boolean unfile,
boolean deleteAllVersions)
Deletes a folder and its children, raising an exception for the last error encountered.
|
void |
destroy() |
java.util.List |
getAllVersions(java.lang.String objectId)
Gets all versions of an object.
|
java.util.List |
getAppliedPolicies(java.lang.String objectId,
java.lang.String filter)
Gets the list of policy objects currently applied to a target object.
|
java.util.Set |
getAspects(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Gets the aspects applied to a node.
|
java.util.Collection |
getBaseTypes()
Gets the CMIS base types.
|
org.alfresco.service.cmr.repository.NodeRef[] |
getCheckedOut(java.lang.String username,
org.alfresco.service.cmr.repository.NodeRef folder,
boolean includeDescendants,
java.lang.String orderBy)
Query for checked out items
|
org.alfresco.query.PagingResults |
getChildren(org.alfresco.service.cmr.repository.NodeRef folderNodeRef,
CMISTypesFilterEnum typesFilter,
java.math.BigInteger maxItems,
java.math.BigInteger skipCount,
java.lang.String orderBy)
Get node children
|
org.alfresco.service.cmr.repository.NodeRef[] |
getChildren(org.alfresco.service.cmr.repository.NodeRef folderNodeRef,
CMISTypesFilterEnum typesFilter,
java.lang.String orderBy)
Get node children
|
java.lang.String |
getCMISSpecTitle()
Gets the supported CMIS Specification Title
|
java.lang.String |
getCMISVersion()
Gets the supported CMIS Version
|
org.alfresco.service.cmr.repository.NodeRef |
getDefaultRootNodeRef()
Gets the default root node ref
|
java.lang.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(java.lang.String objectId)
Gets a folder from an object ID.
|
org.alfresco.service.cmr.repository.NodeRef |
getFolderParent(java.lang.String folderId)
Gets parent of a folder.
|
org.alfresco.service.cmr.repository.NodeRef |
getLatestVersion(java.lang.String objectId,
boolean major)
Gets the latest version of an object and optionally the latest major version.
|
org.alfresco.service.cmr.repository.NodeRef |
getNode(java.lang.String referenceType,
java.lang.String[] reference)
Finds a NodeRef given a repository reference
|
java.lang.Object |
getObject(java.lang.String objectId,
java.lang.Class requiredType,
boolean forUpdate,
boolean isVersionable,
boolean isPwc)
Gets an object or a required type from an object ID.
|
java.util.Map |
getProperties(org.alfresco.service.cmr.repository.AssociationRef assocRef)
Get all properties of an association's type.
|
java.util.Map |
getProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Get all properties of a node's type.
|
java.util.Map |
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.
|
java.io.Serializable |
getProperty(org.alfresco.service.cmr.repository.AssociationRef assocRef,
java.lang.String propertyName)
Get a single property for an association.
|
java.io.Serializable |
getProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
CMISTypeDefinition typeDef,
java.lang.String propertyName)
Get a single property, optionally constrained to a given node type or aspect
|
java.io.Serializable |
getProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.lang.String propertyName)
Get a single property belonging to the node's type.
|
java.lang.Object |
getReadableObject(java.lang.String objectId,
java.lang.Class 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.
|
java.util.Map |
getRenditions(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.lang.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(java.lang.Object object)
Gets the type definition for a given object.
|
CMISTypeDefinition |
getTypeDefinition(java.lang.String typeId)
Gets the type definition for a given type ID.
|
java.lang.Object |
getVersionSeries(java.lang.String objectId,
java.lang.Class requiredType,
boolean isVersionable)
Gets the version series of an object.
|
void |
init() |
void |
moveObject(java.lang.String objectId,
java.lang.String targetFolderId,
java.lang.String sourceFolderId)
Moves an object from one folder to another.
|
void |
onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event) |
void |
onDisableTenant() |
void |
onEnableTenant() |
void |
removeObjectFromFolder(java.lang.String objectId,
java.lang.String folderId)
Removes a secondary child association to an object from a folder.
|
void |
removePolicy(java.lang.String policyId,
java.lang.String objectId)
Removes a previously applied policy from a target object.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setAspects(org.alfresco.service.cmr.repository.NodeRef node,
java.lang.Iterable aspectsToRemove,
java.lang.Iterable aspectsToAdd)
Sets the aspects on a node (Alfresco extension).
|
void |
setCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService)
Sets the check out check in service.
|
void |
setCMISDictionaryService(CMISDictionaryService cmisDictionaryService) |
void |
setCMISRenditionService(CMISRenditionService cmisRenditionService)
Sets the cmis rendition service.
|
void |
setCMISSpecTitle(java.lang.String cmisSpecTitle)
Sets the CMIS specification title
|
void |
setCMISSpecVersion(java.lang.String cmisVersion)
Sets the supported version of the CMIS specification
|
void |
setContentService(ContentService contentService)
Sets the content service.
|
boolean |
setContentStream(java.lang.String objectId,
org.alfresco.service.namespace.QName propertyQName,
boolean overwriteFlag,
java.io.InputStream contentStream,
java.lang.String mimeType)
Sets the content stream on an object.
|
void |
setDefaultRootPath(java.lang.String path)
Sets the default root path
|
void |
setDefaultStore(java.lang.String store)
Sets the default root store
|
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setFileFolderService(FileFolderService fileFolderService) |
void |
setHiddenAspect(HiddenAspect hiddenAspect) |
void |
setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
Sets the mimetype service.
|
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
CMISTypeDefinition typeDef,
java.lang.String propertyName,
java.io.Serializable value)
Set a single property, optionally constrained to a given node type or aspect
|
void |
setProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.lang.String propertyName,
java.io.Serializable value)
Set a single property belonging to the node's type.
|
void |
setRepository(Repository repository)
Sets the repository.
|
void |
setSearchService(org.alfresco.service.cmr.search.SearchService searchService) |
void |
setTenantAdminService(TenantAdminService tenantAdminService)
Sets the tenant admin service
|
void |
setTransactionHelper(RetryingTransactionHelper retryingTransactionHelper)
Sets helper that provides transaction callbacks
|
void |
setVersionService(VersionService versionService)
Sets the version service.
|
org.alfresco.service.cmr.repository.NodeRef[] |
XgetChildren(org.alfresco.service.cmr.repository.NodeRef parent,
CMISTypesFilterEnum typesFilter,
java.lang.String orderBy) |
public void setCMISSpecVersion(java.lang.String cmisVersion)
cmisVersion - public void setCMISSpecTitle(java.lang.String cmisSpecTitle)
cmisTitle - public void setDefaultStore(java.lang.String store)
store - store_type://store_idpublic void setDefaultRootPath(java.lang.String path)
path - path within default storepublic void setTenantAdminService(TenantAdminService tenantAdminService)
public void setTransactionHelper(RetryingTransactionHelper retryingTransactionHelper)
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
namespaceService - public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
dictionaryService - public void setCMISDictionaryService(CMISDictionaryService cmisDictionaryService)
cmisDictionaryService - public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
searchService - public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService - public void setFileFolderService(FileFolderService fileFolderService)
fileFolderService - public void setContentService(ContentService contentService)
contentService - the content servicepublic void setRepository(Repository repository)
repository - the repositorypublic void setCMISRenditionService(CMISRenditionService cmisRenditionService)
cmisRenditionService - the cmis rendition servicepublic void setCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService)
checkOutCheckInService - the check out check in servicepublic void setVersionService(VersionService versionService)
versionService - the version servicepublic void setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
mimetypeService - the mimetype servicepublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setHiddenAspect(HiddenAspect hiddenAspect)
public void onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListenerpublic void onEnableTenant()
onEnableTenant in interface org.alfresco.repo.tenant.TenantDeployerpublic void onDisableTenant()
onDisableTenant in interface org.alfresco.repo.tenant.TenantDeployerpublic void init()
init in interface org.alfresco.repo.tenant.TenantDeployerpublic void destroy()
destroy in interface org.alfresco.repo.tenant.TenantDeployerpublic java.lang.String getCMISVersion()
CMISServicesgetCMISVersion in interface CMISServicespublic java.lang.String getCMISSpecTitle()
CMISServicesgetCMISSpecTitle in interface CMISServicespublic java.lang.String getDefaultRootPath()
CMISServicesgetDefaultRootPath in interface CMISServicespublic org.alfresco.service.cmr.repository.NodeRef getDefaultRootNodeRef()
CMISServicesgetDefaultRootNodeRef in interface CMISServicespublic org.alfresco.service.cmr.repository.StoreRef getDefaultRootStoreRef()
CMISServicesgetDefaultRootStoreRef in interface CMISServicespublic org.alfresco.service.cmr.repository.NodeRef getNode(java.lang.String referenceType,
java.lang.String[] reference)
CMISServicesgetNode in interface CMISServicesreferenceType - node, pathreference - node => id, path => pathpublic java.util.Map getRenditions(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.lang.String renditionFilter)
throws CMISFilterNotValidException
CMISServicesgetRenditions in interface CMISServicesnodeRef - the node refrenditionFilter - the rendition filterCMISFilterNotValidException - if the rendition filter is invalidpublic org.alfresco.service.cmr.repository.NodeRef[] XgetChildren(org.alfresco.service.cmr.repository.NodeRef parent,
CMISTypesFilterEnum typesFilter,
java.lang.String orderBy)
throws CMISInvalidArgumentException
CMISInvalidArgumentExceptionpublic org.alfresco.service.cmr.repository.NodeRef[] getChildren(org.alfresco.service.cmr.repository.NodeRef folderNodeRef,
CMISTypesFilterEnum typesFilter,
java.lang.String orderBy)
throws CMISInvalidArgumentException
CMISServicesgetChildren in interface CMISServicesfolderNodeRef - parent nodetypesFilter - types filterorderBy - comma-separated list of sort names and the ascending modifier "ASC" or the descending modifier "DESC"
for each sort nameCMISInvalidArgumentExceptionpublic org.alfresco.query.PagingResults getChildren(org.alfresco.service.cmr.repository.NodeRef folderNodeRef,
CMISTypesFilterEnum typesFilter,
java.math.BigInteger maxItems,
java.math.BigInteger skipCount,
java.lang.String orderBy)
throws CMISInvalidArgumentException
CMISServicesgetChildren in interface CMISServicesfolderNodeRef - 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 nameCMISInvalidArgumentExceptionpublic org.alfresco.service.cmr.repository.NodeRef[] getCheckedOut(java.lang.String username,
org.alfresco.service.cmr.repository.NodeRef folder,
boolean includeDescendants,
java.lang.String orderBy)
throws CMISInvalidArgumentException
CMISServicesgetCheckedOut in interface CMISServicesusername - 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 nameCMISInvalidArgumentExceptionpublic org.alfresco.service.cmr.repository.AssociationRef[] getRelationships(org.alfresco.service.cmr.repository.NodeRef node,
CMISTypeDefinition relDef,
boolean includeSubTypes,
CMISRelationshipDirectionEnum direction)
throws CMISInvalidArgumentException
CMISServicesgetRelationships in interface CMISServicesnode - the noderelDef - 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)CMISInvalidArgumentException - if an argument is invalidpublic java.io.Serializable getProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.lang.String propertyName)
throws CMISInvalidArgumentException
CMISServicesgetProperty in interface CMISServicesnodeRef - the nodepropertyName - the property nameCMISInvalidArgumentException - if an argument is invalidpublic java.io.Serializable getProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
CMISTypeDefinition typeDef,
java.lang.String propertyName)
throws CMISInvalidArgumentException
CMISServicesgetProperty in interface CMISServicesnodeRef - the nodetypeDef - the node type or aspect or null if any property can be returnedpropertyName - the property nameCMISInvalidArgumentException - if an argument is invalidpublic CMISTypeDefinition getTypeDefinition(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws CMISInvalidArgumentException
CMISServicesgetTypeDefinition in interface CMISServicesnodeRef - the nodeCMISInvalidArgumentException - if an argument is invalidpublic CMISTypeDefinition getTypeDefinition(org.alfresco.service.cmr.repository.AssociationRef associationRef) throws CMISInvalidArgumentException
CMISServicesgetTypeDefinition in interface CMISServicesassociationRef - the associationCMISInvalidArgumentException - if an argument is invalidpublic CMISTypeDefinition getTypeDefinition(java.lang.String typeId) throws CMISInvalidArgumentException
CMISServicesgetTypeDefinition in interface CMISServicestypeId - the type idCMISInvalidArgumentException - if an argument is invalidpublic CMISTypeDefinition getTypeDefinition(java.lang.Object object) throws CMISInvalidArgumentException
CMISServicesgetTypeDefinition in interface CMISServicesobject - the objectCMISInvalidArgumentException - if an argument is invalidpublic java.util.Collection getBaseTypes()
CMISServicesgetBaseTypes in interface CMISServicespublic java.io.Serializable getProperty(org.alfresco.service.cmr.repository.AssociationRef assocRef,
java.lang.String propertyName)
throws CMISInvalidArgumentException
CMISServicesgetProperty in interface CMISServicesassocRef - the associationpropertyName - the property nameCMISInvalidArgumentException - if an argument is invalidpublic java.util.Map getProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef)
throws CMISInvalidArgumentException
CMISServicesgetProperties in interface CMISServicesnodeRef - the node refCMISInvalidArgumentException - if an argument is invalidpublic java.util.Map getProperties(org.alfresco.service.cmr.repository.AssociationRef assocRef)
throws CMISInvalidArgumentException
CMISServicesgetProperties in interface CMISServicesassocRef - the associationCMISInvalidArgumentException - if an argument is invalidpublic java.util.Map getProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
CMISTypeDefinition typeDef)
throws CMISInvalidArgumentException
CMISServicesgetProperties in interface CMISServicesnodeRef - the node reftypeDef - the type or aspect definitionCMISInvalidArgumentException - if an argument is invalidpublic java.util.Set getAspects(org.alfresco.service.cmr.repository.NodeRef nodeRef)
CMISServicesgetAspects in interface CMISServicesnodeRef - the node refpublic void setProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.lang.String propertyName,
java.io.Serializable value)
throws CMISInvalidArgumentException,
CMISConstraintException
CMISServicessetProperty in interface CMISServicesnodeRef - the node refpropertyName - the property namevalue - the valueCMISInvalidArgumentException - if an argument is invalidCMISConstraintException - if the property cannot be setpublic void setProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
CMISTypeDefinition typeDef,
java.lang.String propertyName,
java.io.Serializable value)
throws CMISInvalidArgumentException,
CMISConstraintException
CMISServicessetProperty in interface CMISServicesnodeRef - 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 setpublic void setAspects(org.alfresco.service.cmr.repository.NodeRef node,
java.lang.Iterable aspectsToRemove,
java.lang.Iterable aspectsToAdd)
throws CMISInvalidArgumentException
CMISServicessetAspects in interface CMISServicesnode - the nodeaspectsToRemove - the aspects to removeaspectsToAdd - the aspects to addCMISInvalidArgumentException - if an argument is invalidpublic org.alfresco.service.cmr.repository.NodeRef applyVersioningState(org.alfresco.service.cmr.repository.NodeRef source,
CMISVersioningStateEnum versioningState)
throws CMISConstraintException,
CMISInvalidArgumentException
CMISServicesapplyVersioningState in interface CMISServicessource - the nodeversioningState - the versioning stateCMISConstraintException - if it's not possible to apply the stateCMISInvalidArgumentException - if an argument is invalidpublic org.alfresco.service.cmr.repository.NodeRef checkOut(java.lang.String objectId)
throws CMISConstraintException,
CMISVersioningException,
CMISObjectNotFoundException,
CMISInvalidArgumentException,
CMISPermissionDeniedException
CMISServicescheckOut in interface CMISServicesobjectId - 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 deniedpublic org.alfresco.service.cmr.repository.NodeRef checkIn(java.lang.String objectId,
java.lang.String checkinComment,
boolean isMajor)
throws CMISConstraintException,
CMISVersioningException,
CMISObjectNotFoundException,
CMISInvalidArgumentException,
CMISPermissionDeniedException
CMISServicescheckIn in interface CMISServicesobjectId - 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 deniedpublic void cancelCheckOut(java.lang.String objectId)
throws CMISConstraintException,
CMISVersioningException,
CMISObjectNotFoundException,
CMISInvalidArgumentException,
CMISPermissionDeniedException
CMISServicescancelCheckOut in interface CMISServicesobjectId - 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 deniedpublic java.util.List getAllVersions(java.lang.String objectId)
throws CMISConstraintException,
CMISVersioningException,
CMISObjectNotFoundException,
CMISInvalidArgumentException,
CMISPermissionDeniedException
CMISServicesgetAllVersions in interface CMISServicesobjectId - 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 deniedpublic java.lang.Object getObject(java.lang.String objectId,
java.lang.Class requiredType,
boolean forUpdate,
boolean isVersionable,
boolean isPwc)
throws CMISConstraintException,
CMISVersioningException,
CMISObjectNotFoundException,
CMISInvalidArgumentException,
CMISPermissionDeniedException
CMISServicesgetObject in interface CMISServicesobjectId - 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 deniedpublic java.lang.Object getReadableObject(java.lang.String objectId,
java.lang.Class requiredType)
throws CMISConstraintException,
CMISVersioningException,
CMISObjectNotFoundException,
CMISInvalidArgumentException,
CMISPermissionDeniedException
CMISServicesgetReadableObject in interface CMISServicesobjectId - 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 deniedpublic org.alfresco.service.cmr.repository.NodeRef getFolder(java.lang.String objectId)
throws CMISConstraintException,
CMISVersioningException,
CMISObjectNotFoundException,
CMISInvalidArgumentException,
CMISPermissionDeniedException
CMISServicesgetFolder in interface CMISServicesobjectId - 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 deniedpublic org.alfresco.service.cmr.repository.NodeRef getFolderParent(java.lang.String folderId)
throws CMISConstraintException,
CMISVersioningException,
CMISObjectNotFoundException,
CMISInvalidArgumentException,
CMISPermissionDeniedException
CMISServicesgetFolderParent in interface CMISServicesfolderId - 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 deniedpublic java.lang.Object getVersionSeries(java.lang.String objectId,
java.lang.Class requiredType,
boolean isVersionable)
throws CMISConstraintException,
CMISVersioningException,
CMISObjectNotFoundException,
CMISInvalidArgumentException,
CMISPermissionDeniedException
CMISServicesgetVersionSeries in interface CMISServicesobjectId - 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 deniedpublic org.alfresco.service.cmr.repository.NodeRef getLatestVersion(java.lang.String objectId,
boolean major)
throws CMISConstraintException,
CMISVersioningException,
CMISObjectNotFoundException,
CMISInvalidArgumentException,
CMISPermissionDeniedException
CMISServicesgetLatestVersion in interface CMISServicesobjectId - 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 deniedpublic void deleteContentStream(java.lang.String objectId)
throws CMISConstraintException,
CMISVersioningException,
CMISObjectNotFoundException,
CMISInvalidArgumentException,
CMISPermissionDeniedException
CMISServicesdeleteContentStream in interface CMISServicesobjectId - 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 deniedpublic void deleteObject(java.lang.String objectId,
boolean allVersions)
throws CMISConstraintException,
CMISVersioningException,
CMISObjectNotFoundException,
CMISInvalidArgumentException,
CMISPermissionDeniedException,
CMISRuntimeException,
CMISServiceException
CMISServicesdeleteObject in interface CMISServicesobjectId - 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 exceptionsCMISServiceExceptionpublic java.util.List deleteTree(java.lang.String objectId,
boolean continueOnFailure,
boolean unfile,
boolean deleteAllVersions)
throws CMISConstraintException,
CMISVersioningException,
CMISObjectNotFoundException,
CMISInvalidArgumentException,
CMISPermissionDeniedException
CMISServicesdeleteTree in interface CMISServicesobjectId - 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 deniedpublic void deleteTreeReportLastError(java.lang.String objectId,
boolean continueOnFailure,
boolean unfile,
boolean deleteAllVersions)
throws CMISServiceException
CMISServicesdeleteTreeReportLastError in interface CMISServicesobjectId - 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 encounteredpublic void addObjectToFolder(java.lang.String objectId,
java.lang.String folderId)
throws CMISConstraintException,
CMISVersioningException,
CMISObjectNotFoundException,
CMISInvalidArgumentException,
CMISPermissionDeniedException
CMISServicesaddObjectToFolder in interface CMISServicesobjectId - 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 deniedpublic void removeObjectFromFolder(java.lang.String objectId,
java.lang.String folderId)
throws CMISNotSupportedException,
CMISConstraintException,
CMISVersioningException,
CMISObjectNotFoundException,
CMISInvalidArgumentException,
CMISPermissionDeniedException
CMISServicesremoveObjectFromFolder in interface CMISServicesobjectId - 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 deniedpublic void moveObject(java.lang.String objectId,
java.lang.String targetFolderId,
java.lang.String sourceFolderId)
throws CMISConstraintException,
CMISVersioningException,
CMISObjectNotFoundException,
CMISInvalidArgumentException,
CMISPermissionDeniedException
CMISServicesmoveObject in interface CMISServicesobjectId - 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 deniedpublic boolean setContentStream(java.lang.String objectId,
org.alfresco.service.namespace.QName propertyQName,
boolean overwriteFlag,
java.io.InputStream contentStream,
java.lang.String mimeType)
throws CMISConstraintException,
CMISVersioningException,
CMISObjectNotFoundException,
CMISContentAlreadyExistsException,
CMISStreamNotSupportedException,
CMISInvalidArgumentException,
CMISPermissionDeniedException
CMISServicessetContentStream in interface CMISServicesobjectId - the object idpropertyQName - the property q nameoverwriteFlag - the overwrite flagcontentStream - the content streammimeType - the mime typetrue if content was overwrittenCMISConstraintException - if an object isn't of the right typeCMISVersioningException - if an object's versioning state isn't as expectedCMISObjectNotFoundException - if an object does not existCMISContentAlreadyExistsException - if overwrite was false and content already existedCMISStreamNotSupportedException - if the object's type definition does not allow a content streamCMISInvalidArgumentException - if an argument is invalidCMISPermissionDeniedException - if access to an object is deniedpublic java.lang.String createPolicy(java.util.Map properties,
java.lang.String folderId,
java.util.List policies)
throws CMISConstraintException,
CMISRuntimeException,
CMISInvalidArgumentException
CMISServicescreatePolicy in interface CMISServicesproperties - CMIS propertiesfolderId - parent folder for this new policypolicies - the policiesCMISConstraintException - if there is a problem with the supplied propertiesCMISRuntimeException - on other exceptionsCMISInvalidArgumentException - if an argument is invalidpublic void applyPolicy(java.lang.String policyId,
java.lang.String objectId)
throws CMISConstraintException,
CMISVersioningException,
CMISObjectNotFoundException,
CMISInvalidArgumentException,
CMISPermissionDeniedException
CMISServicesapplyPolicy in interface CMISServicespolicyId - 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 deniedpublic java.util.List getAppliedPolicies(java.lang.String objectId,
java.lang.String filter)
throws CMISConstraintException,
CMISVersioningException,
CMISObjectNotFoundException,
CMISInvalidArgumentException,
CMISPermissionDeniedException,
CMISFilterNotValidException
CMISServicesgetAppliedPolicies in interface CMISServicesobjectId - 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 invalidpublic void removePolicy(java.lang.String policyId,
java.lang.String objectId)
throws CMISConstraintException,
CMISVersioningException,
CMISObjectNotFoundException,
CMISInvalidArgumentException,
CMISPermissionDeniedException
CMISServicesremovePolicy in interface CMISServicespolicyId - 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 - 2010 Alfresco Software, Inc. All Rights Reserved.