org.apache.myfaces.extensions.cdi.core.api.security
Class AbstractAccessDecisionVoter
java.lang.Object
org.apache.myfaces.extensions.cdi.core.api.security.AbstractDecisionVoter
org.apache.myfaces.extensions.cdi.core.api.security.AbstractAccessDecisionVoter
- All Implemented Interfaces:
- Serializable, AccessDecisionVoter
public abstract class AbstractAccessDecisionVoter
- extends AbstractDecisionVoter
- implements AccessDecisionVoter
Base implementation which provides helper methods.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAccessDecisionVoter
public AbstractAccessDecisionVoter()
checkPermission
public Set<SecurityViolation> checkPermission(javax.interceptor.InvocationContext invocationContext)
- It should be final - but proxy-libs won't support it.
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.
- Specified by:
checkPermission
in interface AccessDecisionVoter
- Parameters:
invocationContext
- current invocationContext
- Returns:
- a set which contains violations which have been detected
checkPermission
protected abstract void checkPermission(javax.interceptor.InvocationContext invocationContext,
Set<SecurityViolation> violations)
- Allows an easier implementation in combination with
AbstractDecisionVoter.newSecurityViolation(String)
.
- Parameters:
invocationContext
- current invocationContextviolations
- set for adding violations
Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.