org.riotfamily.riot.security.policy
Interface AuthorizationPolicy

All Superinterfaces:
Ordered
All Known Subinterfaces:
AssertionPolicy
All Known Implementing Classes:
GrantAllPolicy, LoggingPolicy, ReflectionPolicy, SiteUserPolicy, SystemPagePolicy

public interface AuthorizationPolicy
extends Ordered

Interface to check if a user has the permission to perform a certain action.


Nested Class Summary
static class AuthorizationPolicy.Permission
           
 
Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Method Summary
 AuthorizationPolicy.Permission getPermission(RiotUser user, String action, Object object)
          Returns the permission for the given user, action and object.
 
Methods inherited from interface org.springframework.core.Ordered
getOrder
 

Method Detail

getPermission

AuthorizationPolicy.Permission getPermission(RiotUser user,
                                             String action,
                                             Object object)
Returns the permission for the given user, action and object.

Parameters:
subject - The user
action - The action to be performed
object - The object on which the action is to be performed