|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.talika.tarsis.service.AbstractService org.talika.tarsis.security.AuthorizatorService
public abstract class AuthorizatorService
Base implementation of Authorizator
interface.
Authorizator plugs in system like a service by extending AbstractService
.
Constructor Summary | |
---|---|
AuthorizatorService()
Creates a new AuthorizatorService . |
Method Summary | |
---|---|
abstract void |
authorize(User user,
Command command)
Checks if User has authorizations to access Command . |
abstract boolean |
isRestricted(Command command)
Returns true if Command has access restrited. |
Methods inherited from class org.talika.tarsis.service.AbstractService |
---|
destroy, getContext, getLogger, getName, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuthorizatorService()
AuthorizatorService
.
Method Detail |
---|
public abstract void authorize(User user, Command command) throws ForbiddenAccessException
User
has authorizations to access Command
.
If not throws a ForbiddenAccessException
.
authorize
in interface Authorizator
user
- User user to be checked.command
- Command command to be checked.
ForbiddenAccessException
- if User
has not authorization.Authorizator.authorize(User, Command)
public abstract boolean isRestricted(Command command)
true
if Command
has access restrited.
isRestricted
in interface Authorizator
command
- Command command to be checked.
true
if Command
has access restrited.Authorizator.isRestricted(Command)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |