public interface StaticPolicyEvaluator extends VersionFixedPolicyEvaluator
Modifier and Type | Method and Description |
---|---|
Optional<PolicyRefsMetadata> |
getPolicyRefsMetadata()
Get (static/context-independent) metadata about policy references within the evaluated policy.
|
default Optional<PolicyRefsMetadata> |
getPolicyRefsMetadata(EvaluationContext context)
Get metadata about the child policy references of the evaluated policy, present iff there is any (e.g.
|
getPolicyVersion, getPolicyVersion
evaluate, getEnclosedPolicies, getPolicyElementType, getPolicyId, isApplicableByTarget
Optional<PolicyRefsMetadata> getPolicyRefsMetadata()
default Optional<PolicyRefsMetadata> getPolicyRefsMetadata(EvaluationContext context)
PolicyEvaluator
PolicyProvider
that resolve policy references at evaluation time based on the context,
especially if the policy reference does not specify the version or use non-literal version match rules (with wildcards).
Implementations must still guarantee that the result - once computed in a given request context - remains constant over the lifetime of this request context. This is required for consistent
evaluation. The result may only change from one request to the other. For that purpose, implementations may use EvaluationContext.putOther(String, Object)
to cache the result in the
request context and EvaluationContext.getOther(String)
to retrieve it later.
getPolicyRefsMetadata
in interface PolicyEvaluator
context
- request evaluation contextCopyright © 2012–2020. All rights reserved.