org.apache.myfaces.extensions.cdi.core.impl.security.spi
Interface EditableAccessDecisionVoterContext

All Superinterfaces:
AccessDecisionVoterContext, Serializable

public interface EditableAccessDecisionVoterContext
extends AccessDecisionVoterContext

Interface which allows to provide a custom AccessDecisionVoterContext implementation


Method Summary
 void addMetaData(String key, Object metaData)
          Allows to add custom meta-data.
 void addViolation(SecurityViolation securityViolation)
          Adds a new SecurityViolation to the context
 void setState(AccessDecisionState accessDecisionVoterState)
          Updates the state of the context
 
Methods inherited from interface org.apache.myfaces.extensions.cdi.core.api.security.AccessDecisionVoterContext
getMetaData, getMetaDataFor, getState, getViolations
 

Method Detail

addMetaData

void addMetaData(String key,
                 Object metaData)
Allows to add custom meta-data. The default security strategy adds custom annotations of the intercepted method as well as class-level annotations. (Currently inherited annotations aren't supported)

Parameters:
key - key for the meta-data
metaData - meta-data which should be added

setState

void setState(AccessDecisionState accessDecisionVoterState)
Updates the state of the context

Parameters:
accessDecisionVoterState - current state

addViolation

void addViolation(SecurityViolation securityViolation)
Adds a new SecurityViolation to the context

Parameters:
securityViolation - security-violation which should be added


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