Package step.core.access
Class AuthorizationManagerImpl
- java.lang.Object
-
- step.core.access.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)
-
-
-
Method Detail
-
setRoleResolver
public void setRoleResolver(step.core.access.RoleResolver roleResolver)
- Specified by:
setRoleResolver
in interfacestep.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 interfacestep.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 interfacestep.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 interfacestep.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 interfacestep.framework.server.access.AuthorizationManager<step.core.access.User,step.framework.server.Session<step.core.access.User>>
-
-