|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Authorizator
Interface that defines an authorizator component in Tarsis MVC Framework.
Authorizator component is responsible of manage authorizations. It checks if a
given User
has authorization to access a given Command
.
Method Summary | |
---|---|
void |
authorize(User user,
Command command)
Checks if User has authorizations to access Command . |
boolean |
isRestricted(Command command)
Returns true if Command has access restrited. |
Method Detail |
---|
void authorize(User user, Command command) throws ForbiddenAccessException
User
has authorizations to access Command
.
If not throws a ForbiddenAccessException
.
user
- User user to be checked.command
- Command command to be checked.
ForbiddenAccessException
- if User
has not authorization.boolean isRestricted(Command command)
true
if Command
has access restrited.
command
- Command command to be checked.
true
if Command
has access restrited.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |