Package org.silverpeas.cmis.security
Class CmisUserAuthenticator
- java.lang.Object
-
- org.apache.chemistry.opencmis.server.support.wrapper.AbstractCmisServiceWrapper
-
- org.silverpeas.cmis.security.CmisUserAuthenticator
-
- All Implemented Interfaces:
org.apache.chemistry.opencmis.commons.server.CmisService
,org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService
,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
,WebAuthenticationValidation
,WebAuthorizationValidation
public class CmisUserAuthenticator extends org.apache.chemistry.opencmis.server.support.wrapper.AbstractCmisServiceWrapper implements org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService, WebAuthenticationValidation, WebAuthorizationValidation
Authenticates and identifies the user requesting a CMIS service.It wraps the requested CMIS service in the chain of responsibilities that passes the control over each CMIS service wrapper in order they perform their own control on the user request before eventually invoke the asked CMIS service's functionality.
- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Constructor Description CmisUserAuthenticator(org.apache.chemistry.opencmis.commons.server.CmisService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.Progress
beforeServiceCall()
CmisRequestContext
getSilverpeasContext()
Gets the context of Silverpeas linked to the current request.void
setCallContext(org.apache.chemistry.opencmis.commons.server.CallContext callContext)
-
Methods inherited from class org.apache.chemistry.opencmis.server.support.wrapper.AbstractCmisServiceWrapper
addObjectToFolder, afterServiceCall, appendContentStream, applyAcl, applyAcl, applyPolicy, bulkUpdateProperties, cancelCheckOut, checkIn, checkOut, close, create, createDocument, createDocumentFromSource, createFolder, createItem, createPolicy, createRelationship, createType, deleteContentStream, deleteObject, deleteObjectOrCancelCheckOut, deleteTree, deleteType, getAcl, getAllowableActions, getAllVersions, getAppliedPolicies, getCallContext, getCheckedOutDocs, getChildren, getContentChanges, getContentStream, getDescendants, getFolderParent, getFolderTree, getObject, getObjectByPath, getObjectInfo, getObjectOfLatestVersion, getObjectParents, getObjectRelationships, getProperties, getPropertiesOfLatestVersion, getRenditions, getRepositoryInfo, getRepositoryInfos, getTypeChildren, getTypeDefinition, getTypeDescendants, getWrappedService, initialize, moveObject, query, removeObjectFromFolder, removePolicy, setContentStream, 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, getChildren, getDescendants, getFolderParent, getFolderTree, getObjectParents
-
Methods inherited from interface org.apache.chemistry.opencmis.commons.spi.ObjectService
appendContentStream, bulkUpdateProperties, createDocument, createDocumentFromSource, createFolder, createItem, createPolicy, createRelationship, deleteContentStream, deleteObject, deleteTree, getAllowableActions, getContentStream, getObject, getObjectByPath, getProperties, getRenditions, moveObject, setContentStream, updateProperties
-
Methods inherited from interface org.apache.chemistry.opencmis.commons.spi.PolicyService
applyPolicy, getAppliedPolicies, removePolicy
-
Methods inherited from interface org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService
afterServiceCall
-
Methods inherited from interface org.apache.chemistry.opencmis.commons.spi.RelationshipService
getObjectRelationships
-
Methods inherited from interface org.apache.chemistry.opencmis.commons.spi.RepositoryService
createType, deleteType, getRepositoryInfo, getRepositoryInfos, getTypeChildren, getTypeDefinition, getTypeDescendants, updateType
-
Methods inherited from interface org.apache.chemistry.opencmis.commons.spi.VersioningService
cancelCheckOut, checkIn, checkOut, getAllVersions, getObjectOfLatestVersion, getPropertiesOfLatestVersion
-
Methods inherited from interface org.silverpeas.core.web.rs.WebAuthenticationValidation
validateUserAuthentication
-
Methods inherited from interface org.silverpeas.core.web.rs.WebAuthorizationValidation
validateUserAuthorization
-
-
-
-
Method Detail
-
setCallContext
public void setCallContext(org.apache.chemistry.opencmis.commons.server.CallContext callContext)
- Specified by:
setCallContext
in interfaceorg.apache.chemistry.opencmis.server.support.wrapper.CallContextAwareCmisService
- Overrides:
setCallContext
in classorg.apache.chemistry.opencmis.server.support.wrapper.AbstractCmisServiceWrapper
-
getSilverpeasContext
public CmisRequestContext getSilverpeasContext()
Description copied from interface:WebAuthenticationValidation
Gets the context of Silverpeas linked to the current request. This context must be initialized before the functional request processing.- Specified by:
getSilverpeasContext
in interfaceWebAuthenticationValidation
- Specified by:
getSilverpeasContext
in interfaceWebAuthorizationValidation
- Returns:
SilverpeasRequestContext
instance.
-
beforeServiceCall
public org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.Progress beforeServiceCall()
- Specified by:
beforeServiceCall
in interfaceorg.apache.chemistry.opencmis.commons.server.ProgressControlCmisService
- Overrides:
beforeServiceCall
in classorg.apache.chemistry.opencmis.server.support.wrapper.AbstractCmisServiceWrapper
-
-