Class AuthorizationManagerImpl

  • All Implemented Interfaces:
    step.framework.server.access.AuthorizationManager<step.core.access.User,​step.framework.server.Session<step.core.access.User>>

    public class AuthorizationManagerImpl
    extends java.lang.Object
    implements step.framework.server.access.AuthorizationManager<step.core.access.User,​step.framework.server.Session<step.core.access.User>>
    • Constructor Summary

      Constructors 
      Constructor Description
      AuthorizationManagerImpl​(step.core.access.RoleProvider roleProvider, step.core.access.RoleResolver roleResolver, step.core.access.UserAccessor userAccessor)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean checkRightInContext​(step.framework.server.Session session, java.lang.String right)  
      boolean checkRightInContext​(step.framework.server.Session session, java.lang.String right, java.lang.String usernameOnBehalfOf)  
      boolean checkRightInRole​(java.lang.String roleName, java.lang.String right)  
      step.core.access.Role getRoleInContext​(step.framework.server.Session session)  
      void setRoleResolver​(step.core.access.RoleResolver roleResolver)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AuthorizationManagerImpl

        public AuthorizationManagerImpl​(step.core.access.RoleProvider roleProvider,
                                        step.core.access.RoleResolver roleResolver,
                                        step.core.access.UserAccessor userAccessor)
    • Method Detail

      • setRoleResolver

        public void setRoleResolver​(step.core.access.RoleResolver roleResolver)
        Specified by:
        setRoleResolver in interface step.framework.server.access.AuthorizationManager<step.core.access.User,​step.framework.server.Session<step.core.access.User>>
      • checkRightInContext

        public boolean checkRightInContext​(step.framework.server.Session session,
                                           java.lang.String right)
        Specified by:
        checkRightInContext in interface step.framework.server.access.AuthorizationManager<step.core.access.User,​step.framework.server.Session<step.core.access.User>>
      • checkRightInContext

        public boolean checkRightInContext​(step.framework.server.Session session,
                                           java.lang.String right,
                                           java.lang.String usernameOnBehalfOf)
        Specified by:
        checkRightInContext in interface step.framework.server.access.AuthorizationManager<step.core.access.User,​step.framework.server.Session<step.core.access.User>>
      • checkRightInRole

        public boolean checkRightInRole​(java.lang.String roleName,
                                        java.lang.String right)
        Specified by:
        checkRightInRole in interface step.framework.server.access.AuthorizationManager<step.core.access.User,​step.framework.server.Session<step.core.access.User>>
      • getRoleInContext

        public step.core.access.Role getRoleInContext​(step.framework.server.Session session)
        Specified by:
        getRoleInContext in interface step.framework.server.access.AuthorizationManager<step.core.access.User,​step.framework.server.Session<step.core.access.User>>