org.talika.tarsis.security
Interface Authorizator

All Known Implementing Classes:
AuthorizatorService, MemoryAuthorizator

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.

Version:
$Revision: 124 $
Author:
Jose M. Palomar

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

authorize

void authorize(User user,
               Command command)
               throws ForbiddenAccessException
Checks if User has authorizations to access Command. If not throws a ForbiddenAccessException.

Parameters:
user - User user to be checked.
command - Command command to be checked.
Throws:
ForbiddenAccessException - if User has not authorization.

isRestricted

boolean isRestricted(Command command)
Returns true if Command has access restrited.

Parameters:
command - Command command to be checked.
Returns:
boolean true if Command has access restrited.


Copyright © 2002-2012 Talika Open Source Group. All Rights Reserved.