public class PPSPolicySetFinderModule extends PolicySetFinderModule
| Modifier and Type | Field and Description |
|---|---|
protected List<Policy> |
policies |
protected List<PolicySet> |
policySets |
policyFinder| Constructor and Description |
|---|
PPSPolicySetFinderModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Policy p) |
void |
add(PolicySet ps) |
PolicyFinderResult |
findPolicy(EvaluationCtx context)
Finds the applicable policy (if there is one) for the given context.
|
PolicyFinderResult |
findPolicy(URI idReference,
int type,
VersionConstraints constraints,
PolicyMetaData parentMetaData)
Tries to find one and only one matching policy given the idReference
If more than one policy is found, this is an error and must be reported
as such.
|
init, isIdReferenceSupported, isRequestSupported, setgetIdentifier, invalidateCachepublic void add(PolicySet ps)
public void add(Policy p)
public PolicyFinderResult findPolicy(EvaluationCtx context)
PolicySetFinderModulefindPolicy in class PolicySetFinderModulecontext - the evaluation contextpublic PolicyFinderResult findPolicy(URI idReference, int type, VersionConstraints constraints, PolicyMetaData parentMetaData)
PolicyFinderModulefindPolicy in class PolicySetFinderModuleidReference - an identifier specifying some policytype - type of reference (policy or policySet) as identified by
the fields in PolicyReferenceconstraints - any optional constraints on the version of the
referenced policy (this will never be null, but
it may impose no constraints, and in fact will
never impose constraints when used from a pre-2.0
XACML policy)parentMetaData - the meta-data from the parent policy, which
provides XACML version, factories, etc.Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.