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
ConstructorDescriptionCmisServiceImpl
(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) void
deleteObjectOrCancelCheckOut
(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) void
moveObject
(String repositoryId, Holder<String> objectId, String targetFolderId, String sourceFolderId, ExtensionsData extension) void
setCallContext
(CallContext context) Sets the call context.void
setContentStream
(String repositoryId, Holder<String> objectId, Boolean overwriteFlag, Holder<String> changeToken, ContentStream contentStream, ExtensionsData extension) void
updateProperties
(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:
getRepositoryInfos
in interfaceRepositoryService
- Specified by:
getRepositoryInfos
in classAbstractCmisService
-
getTypeChildren
public TypeDefinitionList getTypeChildren(String repositoryId, String typeId, Boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) - Specified by:
getTypeChildren
in interfaceRepositoryService
- Specified by:
getTypeChildren
in classAbstractCmisService
-
getTypeDefinition
public TypeDefinition getTypeDefinition(String repositoryId, String typeId, ExtensionsData extension) - Specified by:
getTypeDefinition
in interfaceRepositoryService
- Specified by:
getTypeDefinition
in 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:
getChildren
in interfaceNavigationService
- Specified by:
getChildren
in classAbstractCmisService
-
getObjectParents
public List<ObjectParentData> getObjectParents(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, Boolean includeRelativePathSegment, ExtensionsData extension) - Specified by:
getObjectParents
in interfaceNavigationService
- Specified by:
getObjectParents
in 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:
getObject
in interfaceObjectService
- Specified by:
getObject
in classAbstractCmisService
-
getContentStream
public ContentStream getContentStream(String repositoryId, String objectId, String streamId, BigInteger offset, BigInteger length, ExtensionsData extension) - Specified by:
getContentStream
in interfaceObjectService
- Overrides:
getContentStream
in 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:
getObjectByPath
in interfaceObjectService
- Overrides:
getObjectByPath
in classAbstractCmisService
-
createFolder
public String createFolder(String repositoryId, Properties properties, String folderId, List<String> policies, Acl addAces, Acl removeAces, ExtensionsData extension) - Specified by:
createFolder
in interfaceObjectService
- Overrides:
createFolder
in 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:
createDocument
in interfaceObjectService
- Overrides:
createDocument
in classAbstractCmisService
-
deleteObjectOrCancelCheckOut
public void deleteObjectOrCancelCheckOut(String repositoryId, String objectId, Boolean allVersions, ExtensionsData extension) - Specified by:
deleteObjectOrCancelCheckOut
in interfaceCmisService
- Overrides:
deleteObjectOrCancelCheckOut
in classAbstractCmisService
-
deleteTree
public FailedToDeleteData deleteTree(String repositoryId, String folderId, Boolean allVersions, UnfileObject unfileObjects, Boolean continueOnFailure, ExtensionsData extension) - Specified by:
deleteTree
in interfaceObjectService
- Overrides:
deleteTree
in classAbstractCmisService
-
getFolderParent
public ObjectData getFolderParent(String repositoryId, String folderId, String filter, ExtensionsData extension) - Specified by:
getFolderParent
in interfaceNavigationService
- Overrides:
getFolderParent
in classAbstractCmisService
-
updateProperties
public void updateProperties(String repositoryId, Holder<String> objectId, Holder<String> changeToken, Properties properties, ExtensionsData extension) - Specified by:
updateProperties
in interfaceObjectService
- Overrides:
updateProperties
in classAbstractCmisService
-
setContentStream
public void setContentStream(String repositoryId, Holder<String> objectId, Boolean overwriteFlag, Holder<String> changeToken, ContentStream contentStream, ExtensionsData extension) - Specified by:
setContentStream
in interfaceObjectService
- Overrides:
setContentStream
in classAbstractCmisService
-
moveObject
public void moveObject(String repositoryId, Holder<String> objectId, String targetFolderId, String sourceFolderId, ExtensionsData extension) - Specified by:
moveObject
in interfaceObjectService
- Overrides:
moveObject
in 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
-