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 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkRightInContext(step.framework.server.Session session, String right)
boolean
checkRightInRole(String roleName, 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, String right)
- 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(String roleName, 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>>
-
-