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

All Superinterfaces:
Serializable

public interface AccessDecisionVoterContext
extends Serializable

Optional context which allows to get the current state as well as the results of the security check. (Optional because it requires a useful scope which depends on the environment.)


Method Summary
 Map<String,Object> getMetaData()
          Exposes the found meta-data
<T> T
getMetaDataFor(String key, Class<T> targetType)
          Exposes meta-data for the given key
 AccessDecisionState getState()
          Exposes the current state
 List<SecurityViolation> getViolations()
          Exposes the found violations
 

Method Detail

getState

AccessDecisionState getState()
Exposes the current state

Returns:
current state

getViolations

List<SecurityViolation> getViolations()
Exposes the found violations

Returns:
found violations

getMetaData

Map<String,Object> getMetaData()
Exposes the found meta-data

Returns:
found meta-data

getMetaDataFor

<T> T getMetaDataFor(String key,
                     Class<T> targetType)
Exposes meta-data for the given key

Type Parameters:
T - target type
Parameters:
key - meta-data key
targetType - target type
Returns:
meta-data for the given key or null if there is no value for the given key


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