Class CmisServiceImpl
java.lang.Object
org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
org.ametys.plugins.workspaces.cmis.CmisServiceImpl
- All Implemented Interfaces:
CmisService,ObjectInfoHandler,AclService,DiscoveryService,MultiFilingService,NavigationService,ObjectService,PolicyService,RelationshipService,RepositoryService,VersioningService
AbstractCmisService implementation
-
Constructor Summary
ConstructorsConstructorDescriptionCmisServiceImpl(CallContext context, CmisServiceFactory factory) CmisServiceImpl implementation -
Method Summary
Modifier and TypeMethodDescriptioncreateDocument(String repositoryId, Properties properties, String folderId, ContentStream contentStream, VersioningState versioningState, List<String> policies, Acl addAces, Acl removeAces, ExtensionsData extension) createFolder(String repositoryId, Properties properties, String folderId, List<String> policies, Acl addAces, Acl removeAces, ExtensionsData extension) voiddeleteObjectOrCancelCheckOut(String repositoryId, String objectId, Boolean allVersions, ExtensionsData extension) deleteTree(String repositoryId, String folderId, Boolean allVersions, UnfileObject unfileObjects, Boolean continueOnFailure, ExtensionsData extension) Gets the call context.getChildren(String repositoryId, String folderId, String filter, String orderBy, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) getContentStream(String repositoryId, String objectId, String streamId, BigInteger offset, BigInteger length, ExtensionsData extension) getFolderParent(String repositoryId, String folderId, String filter, ExtensionsData extension) getObject(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, ExtensionsData extension) getObjectByPath(String repositoryId, String path, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, ExtensionsData extension) getObjectParents(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, Boolean includeRelativePathSegment, ExtensionsData extension) getRepositoryInfos(ExtensionsData extension) getTypeChildren(String repositoryId, String typeId, Boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) getTypeDefinition(String repositoryId, String typeId, ExtensionsData extension) voidmoveObject(String repositoryId, Holder<String> objectId, String targetFolderId, String sourceFolderId, ExtensionsData extension) voidsetCallContext(CallContext context) Sets the call context.voidsetContentStream(String repositoryId, Holder<String> objectId, Boolean overwriteFlag, Holder<String> changeToken, ContentStream contentStream, ExtensionsData extension) voidupdateProperties(String repositoryId, Holder<String> objectId, Holder<String> changeToken, Properties properties, ExtensionsData extension) Methods inherited from class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
addObjectInfo, addObjectToFolder, appendContentStream, applyAcl, applyAcl, applyPolicy, bulkUpdateProperties, cancelCheckOut, checkIn, checkOut, clearObjectInfos, close, create, createDocumentFromSource, createItem, createPolicy, createRelationship, createType, deleteContentStream, deleteObject, deleteType, getAcl, getAllowableActions, getAllVersions, getAppliedPolicies, getBooleanProperty, getCheckedOutDocs, getContentChanges, getDateTimeProperty, getDescendants, getFolderTree, getIdProperty, getIntegerProperty, getObjectInfo, getObjectInfoIntern, getObjectOfLatestVersion, getObjectRelationships, getProperties, getPropertiesOfLatestVersion, getRenditions, getRepositoryInfo, getStringProperty, getTypeDescendants, query, removeObjectFromFolder, removePolicy, updateType
-
Constructor Details
-
CmisServiceImpl
CmisServiceImpl implementation- Parameters:
context- the call contextfactory- the factory used to build this
-
-
Method Details
-
getRepositoryInfos
- Specified by:
getRepositoryInfosin interfaceRepositoryService- Specified by:
getRepositoryInfosin classAbstractCmisService
-
getTypeChildren
public TypeDefinitionList getTypeChildren(String repositoryId, String typeId, Boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) - Specified by:
getTypeChildrenin interfaceRepositoryService- Specified by:
getTypeChildrenin classAbstractCmisService
-
getTypeDefinition
public TypeDefinition getTypeDefinition(String repositoryId, String typeId, ExtensionsData extension) - Specified by:
getTypeDefinitionin interfaceRepositoryService- Specified by:
getTypeDefinitionin classAbstractCmisService
-
getChildren
public ObjectInFolderList getChildren(String repositoryId, String folderId, String filter, String orderBy, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) - Specified by:
getChildrenin interfaceNavigationService- Specified by:
getChildrenin classAbstractCmisService
-
getObjectParents
public List<ObjectParentData> getObjectParents(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, Boolean includeRelativePathSegment, ExtensionsData extension) - Specified by:
getObjectParentsin interfaceNavigationService- Specified by:
getObjectParentsin classAbstractCmisService
-
getObject
public ObjectData getObject(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, ExtensionsData extension) - Specified by:
getObjectin interfaceObjectService- Specified by:
getObjectin classAbstractCmisService
-
getContentStream
public ContentStream getContentStream(String repositoryId, String objectId, String streamId, BigInteger offset, BigInteger length, ExtensionsData extension) - Specified by:
getContentStreamin interfaceObjectService- Overrides:
getContentStreamin classAbstractCmisService
-
getObjectByPath
public ObjectData getObjectByPath(String repositoryId, String path, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, ExtensionsData extension) - Specified by:
getObjectByPathin interfaceObjectService- Overrides:
getObjectByPathin classAbstractCmisService
-
createFolder
public String createFolder(String repositoryId, Properties properties, String folderId, List<String> policies, Acl addAces, Acl removeAces, ExtensionsData extension) - Specified by:
createFolderin interfaceObjectService- Overrides:
createFolderin classAbstractCmisService
-
createDocument
public String createDocument(String repositoryId, Properties properties, String folderId, ContentStream contentStream, VersioningState versioningState, List<String> policies, Acl addAces, Acl removeAces, ExtensionsData extension) - Specified by:
createDocumentin interfaceObjectService- Overrides:
createDocumentin classAbstractCmisService
-
deleteObjectOrCancelCheckOut
public void deleteObjectOrCancelCheckOut(String repositoryId, String objectId, Boolean allVersions, ExtensionsData extension) - Specified by:
deleteObjectOrCancelCheckOutin interfaceCmisService- Overrides:
deleteObjectOrCancelCheckOutin classAbstractCmisService
-
deleteTree
public FailedToDeleteData deleteTree(String repositoryId, String folderId, Boolean allVersions, UnfileObject unfileObjects, Boolean continueOnFailure, ExtensionsData extension) - Specified by:
deleteTreein interfaceObjectService- Overrides:
deleteTreein classAbstractCmisService
-
getFolderParent
public ObjectData getFolderParent(String repositoryId, String folderId, String filter, ExtensionsData extension) - Specified by:
getFolderParentin interfaceNavigationService- Overrides:
getFolderParentin classAbstractCmisService
-
updateProperties
public void updateProperties(String repositoryId, Holder<String> objectId, Holder<String> changeToken, Properties properties, ExtensionsData extension) - Specified by:
updatePropertiesin interfaceObjectService- Overrides:
updatePropertiesin classAbstractCmisService
-
setContentStream
public void setContentStream(String repositoryId, Holder<String> objectId, Boolean overwriteFlag, Holder<String> changeToken, ContentStream contentStream, ExtensionsData extension) - Specified by:
setContentStreamin interfaceObjectService- Overrides:
setContentStreamin classAbstractCmisService
-
moveObject
public void moveObject(String repositoryId, Holder<String> objectId, String targetFolderId, String sourceFolderId, ExtensionsData extension) - Specified by:
moveObjectin interfaceObjectService- Overrides:
moveObjectin classAbstractCmisService
-
setCallContext
Sets the call context. This method should only be called by the service factory.- Parameters:
context- context
-
getCallContext
Gets the call context.- Returns:
- CallContext
-