org.apache.deltaspike.security.spi.authorization
Interface EditableAccessDecisionVoterContext

All Superinterfaces:
AccessDecisionVoterContext

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 setSource(Object source)
          TODO review it (this method is new)
 void setState(AccessDecisionState accessDecisionVoterState)
          Updates the state of the context
 
Methods inherited from interface org.apache.deltaspike.security.api.authorization.AccessDecisionVoterContext
getMetaData, getMetaDataFor, getSource, 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

setSource

void setSource(Object source)
TODO review it (this method is new)

Parameters:
source - e.g. the invocation-context

addViolation

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

Parameters:
securityViolation - security-violation which should be added


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