Class SilverpeasCmisService
- java.lang.Object
-
- org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
- org.silverpeas.cmis.SilverpeasCmisService
-
- All Implemented Interfaces:
org.apache.chemistry.opencmis.commons.server.CmisService
,org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler
,org.apache.chemistry.opencmis.commons.spi.AclService
,org.apache.chemistry.opencmis.commons.spi.DiscoveryService
,org.apache.chemistry.opencmis.commons.spi.MultiFilingService
,org.apache.chemistry.opencmis.commons.spi.NavigationService
,org.apache.chemistry.opencmis.commons.spi.ObjectService
,org.apache.chemistry.opencmis.commons.spi.PolicyService
,org.apache.chemistry.opencmis.commons.spi.RelationshipService
,org.apache.chemistry.opencmis.commons.spi.RepositoryService
,org.apache.chemistry.opencmis.commons.spi.VersioningService
,org.apache.chemistry.opencmis.server.support.wrapper.CallContextAwareCmisService
@WebService public class SilverpeasCmisService extends org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService implements org.apache.chemistry.opencmis.server.support.wrapper.CallContextAwareCmisService
A web service implementing all the services defined in the CMIS specification and that a CMIS-compliant web application must satisfy as well as some additional services of optional CMIS capabilities. It requires the user to be authenticated; it validates then its credentials.This implementation of the CMIS services is returned to the OpenCMIS framework to perform the CMIS operations requested by a client through one of the supported protocol binding (SOAP-based Web Service, AtomPub or web browser specific). Behind the scene, the processing of the operation is delegated to the CMIS repository targeted by the request. The service will build
ObjectInfo
data from the CMIS objects returned by the repository for AtomPub requests. In the current implementation for Silverpeas, only one repository is defined and that repository is the entry point to the whole resources handled and stored in Silverpeas. If the targeted CMIS repository doesn't match this single repository, then aCmisObjectNotFoundException
exception is thrown.- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Constructor Description SilverpeasCmisService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
createDocument(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, String folderId, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
String
createFolder(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, String folderId, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
CmisRequestContext
getCallContext()
org.apache.chemistry.opencmis.commons.data.ObjectInFolderList
getChildren(String repositoryId, String folderId, String filter, String orderBy, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
org.apache.chemistry.opencmis.commons.data.ContentStream
getContentStream(String repositoryId, String objectId, String streamId, BigInteger offset, BigInteger length, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
List<org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer>
getDescendants(String repositoryId, String folderId, BigInteger depth, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
org.apache.chemistry.opencmis.commons.data.ObjectData
getFolderParent(String repositoryId, String folderId, String filter, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
List<org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer>
getFolderTree(String repositoryId, String folderId, BigInteger depth, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
org.apache.chemistry.opencmis.commons.data.ObjectData
getObject(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
org.apache.chemistry.opencmis.commons.data.ObjectData
getObjectByPath(String repositoryId, String path, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
List<org.apache.chemistry.opencmis.commons.data.ObjectParentData>
getObjectParents(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includeRelativePathSegment, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
List<org.apache.chemistry.opencmis.commons.data.RepositoryInfo>
getRepositoryInfos(org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList
getTypeChildren(String repositoryId, String typeId, Boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
org.apache.chemistry.opencmis.commons.definitions.TypeDefinition
getTypeDefinition(String repositoryId, String typeId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
void
setCallContext(org.apache.chemistry.opencmis.commons.server.CallContext callContext)
Sets the current CMIS call context.void
setContentStream(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId, Boolean overwriteFlag, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeToken, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, org.apache.chemistry.opencmis.commons.data.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, deleteObjectOrCancelCheckOut, deleteTree, deleteType, getAcl, getAllowableActions, getAllVersions, getAppliedPolicies, getBooleanProperty, getCheckedOutDocs, getContentChanges, getDateTimeProperty, getIdProperty, getIntegerProperty, getObjectInfo, getObjectInfoIntern, getObjectOfLatestVersion, getObjectRelationships, getProperties, getPropertiesOfLatestVersion, getRenditions, getRepositoryInfo, getStringProperty, getTypeDescendants, moveObject, query, removeObjectFromFolder, removePolicy, updateProperties, updateType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.chemistry.opencmis.commons.spi.AclService
applyAcl, getAcl
-
Methods inherited from interface org.apache.chemistry.opencmis.commons.server.CmisService
applyAcl, close, create, deleteObjectOrCancelCheckOut, getObjectInfo
-
Methods inherited from interface org.apache.chemistry.opencmis.commons.spi.DiscoveryService
getContentChanges, query
-
Methods inherited from interface org.apache.chemistry.opencmis.commons.spi.MultiFilingService
addObjectToFolder, removeObjectFromFolder
-
Methods inherited from interface org.apache.chemistry.opencmis.commons.spi.NavigationService
getCheckedOutDocs
-
Methods inherited from interface org.apache.chemistry.opencmis.commons.spi.ObjectService
appendContentStream, bulkUpdateProperties, createDocumentFromSource, createItem, createPolicy, createRelationship, deleteContentStream, deleteObject, deleteTree, getAllowableActions, getProperties, getRenditions, moveObject, updateProperties
-
Methods inherited from interface org.apache.chemistry.opencmis.commons.spi.PolicyService
applyPolicy, getAppliedPolicies, removePolicy
-
Methods inherited from interface org.apache.chemistry.opencmis.commons.spi.RelationshipService
getObjectRelationships
-
-
-
-
Method Detail
-
getCallContext
public CmisRequestContext getCallContext()
- Specified by:
getCallContext
in interfaceorg.apache.chemistry.opencmis.server.support.wrapper.CallContextAwareCmisService
-
setCallContext
public void setCallContext(org.apache.chemistry.opencmis.commons.server.CallContext callContext)
Sets the current CMIS call context.- Specified by:
setCallContext
in interfaceorg.apache.chemistry.opencmis.server.support.wrapper.CallContextAwareCmisService
- Parameters:
callContext
- aCmisRequestContext
instance.
-
getRepositoryInfos
public List<org.apache.chemistry.opencmis.commons.data.RepositoryInfo> getRepositoryInfos(org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getRepositoryInfos
in interfaceorg.apache.chemistry.opencmis.commons.spi.RepositoryService
- Specified by:
getRepositoryInfos
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getTypeChildren
public org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList getTypeChildren(String repositoryId, String typeId, Boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getTypeChildren
in interfaceorg.apache.chemistry.opencmis.commons.spi.RepositoryService
- Specified by:
getTypeChildren
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getTypeDefinition
public org.apache.chemistry.opencmis.commons.definitions.TypeDefinition getTypeDefinition(String repositoryId, String typeId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getTypeDefinition
in interfaceorg.apache.chemistry.opencmis.commons.spi.RepositoryService
- Specified by:
getTypeDefinition
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getChildren
public org.apache.chemistry.opencmis.commons.data.ObjectInFolderList getChildren(String repositoryId, String folderId, String filter, String orderBy, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getChildren
in interfaceorg.apache.chemistry.opencmis.commons.spi.NavigationService
- Specified by:
getChildren
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getDescendants
public List<org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer> getDescendants(String repositoryId, String folderId, BigInteger depth, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getDescendants
in interfaceorg.apache.chemistry.opencmis.commons.spi.NavigationService
- Overrides:
getDescendants
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getFolderTree
public List<org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer> getFolderTree(String repositoryId, String folderId, BigInteger depth, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getFolderTree
in interfaceorg.apache.chemistry.opencmis.commons.spi.NavigationService
- Overrides:
getFolderTree
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getFolderParent
public org.apache.chemistry.opencmis.commons.data.ObjectData getFolderParent(String repositoryId, String folderId, String filter, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getFolderParent
in interfaceorg.apache.chemistry.opencmis.commons.spi.NavigationService
- Overrides:
getFolderParent
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getObjectParents
public List<org.apache.chemistry.opencmis.commons.data.ObjectParentData> getObjectParents(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includeRelativePathSegment, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getObjectParents
in interfaceorg.apache.chemistry.opencmis.commons.spi.NavigationService
- Specified by:
getObjectParents
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getObject
public org.apache.chemistry.opencmis.commons.data.ObjectData getObject(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getObject
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Specified by:
getObject
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getObjectByPath
public org.apache.chemistry.opencmis.commons.data.ObjectData getObjectByPath(String repositoryId, String path, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getObjectByPath
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
getObjectByPath
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getContentStream
public org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream(String repositoryId, String objectId, String streamId, BigInteger offset, BigInteger length, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getContentStream
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
getContentStream
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
createFolder
public String createFolder(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, String folderId, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
createFolder
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
createFolder
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
createDocument
public String createDocument(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, String folderId, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
createDocument
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
createDocument
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
setContentStream
public void setContentStream(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId, Boolean overwriteFlag, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeToken, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
setContentStream
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
setContentStream
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
-