org.weborganic.bastille.security
Interface Authorizer

All Known Implementing Classes:
LoggedInAuthorizer

public interface Authorizer

Defines whether is allowed to access specific resources.

Since:
0.6.2

Method Summary
 AuthorizationResult isUserAuthorized(User user, String uri)
          Indicates whether a user is allowed to access a given resource.
 

Method Detail

isUserAuthorized

AuthorizationResult isUserAuthorized(User user,
                                     String uri)
Indicates whether a user is allowed to access a given resource.

Parameters:
user - A user.
uri - The URI the user is trying to access.
Returns:
true is the user can access the resource; false otherwise.