org.apache.myfaces.extensions.cdi.core.api.security
Interface AccessDecisionVoter

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractAccessDecisionVoter

public interface AccessDecisionVoter
extends Serializable

Interface for implementing concrete voters. A voter has to add an instance of SecurityViolation to the given result-set, if a restriction is detected.

A voter has to be used in combination with Secured.

A voter can use every scope which is active. It's recommended to use ApplicationScoped for stateless voters and e.g. RequestScoped otherwise.


Method Summary
 Set<SecurityViolation> checkPermission(javax.interceptor.InvocationContext invocationContext)
          Checks the permission for the given InvocationContext.
 

Method Detail

checkPermission

Set<SecurityViolation> checkPermission(javax.interceptor.InvocationContext invocationContext)
Checks the permission for the given InvocationContext. If a violation is detected, it should be added to a set which gets returned by the method.

Parameters:
invocationContext - current invocationContext
Returns:
a set which contains violations which have been detected


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.