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.
getPermission
AuthorizationPolicy.Permission getPermission(RiotUser user,
String action,
Object object)
- Returns the permission for the given user, action and object.
- Parameters:
subject
- The useraction
- The action to be performedobject
- The object on which the action is to be performed