Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService

        org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.Progress
    • 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 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
    • Constructor Detail

      • CmisUserAuthenticator

        public CmisUserAuthenticator​(org.apache.chemistry.opencmis.commons.server.CmisService service)
    • Method Detail

      • setCallContext

        public void setCallContext​(org.apache.chemistry.opencmis.commons.server.CallContext callContext)
        Specified by:
        setCallContext in interface org.apache.chemistry.opencmis.server.support.wrapper.CallContextAwareCmisService
        Overrides:
        setCallContext in class org.apache.chemistry.opencmis.server.support.wrapper.AbstractCmisServiceWrapper
      • beforeServiceCall

        public org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.Progress beforeServiceCall()
        Specified by:
        beforeServiceCall in interface org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService
        Overrides:
        beforeServiceCall in class org.apache.chemistry.opencmis.server.support.wrapper.AbstractCmisServiceWrapper