public final class JavaxElPolicyExecutor extends Object implements PolicyExecutor
PolicyExecutor for Java EE Expression Language (EL).
See tutorial for details of the EL: https://docs
.oracle.com/javaee/7/tutorial/jsf-el005.htm#BNAIK| Modifier and Type | Class and Description |
|---|---|
static class |
JavaxElPolicyExecutor.Builder
A fluent API builder for
JavaxElPolicyExecutor. |
| Modifier and Type | Method and Description |
|---|---|
static JavaxElPolicyExecutor.Builder |
builder()
Creates a fluent API builder to build new instances of this class.
|
static JavaxElPolicyExecutor |
create()
Create a new instance configured with defaults.
|
static JavaxElPolicyExecutor |
create(Config config)
Create an instance based on configuration.
|
void |
executePolicy(String policyStatement,
Errors.Collector collector,
ProviderRequest request)
Execute a policy based on a policy statement.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportspublic static JavaxElPolicyExecutor.Builder builder()
public static JavaxElPolicyExecutor create(Config config)
config - configuration located on the key provided by JavaxElPolicyExecutorService.configKey()public static JavaxElPolicyExecutor create()
public void executePolicy(String policyStatement, Errors.Collector collector, ProviderRequest request)
PolicyExecutorexecutePolicy in interface PolicyExecutorpolicyStatement - statement to evaluatecollector - register Errors.Collector#fatal(Object, String) in case the policy statement denies the
request,
do nothing for successful execution. Errors.Collector#warn(Object, String) and
Errors.Collector#hint(Object, String) may be used for troubleshooting/debugging purposesrequest - request providing access to subject, service subject, environment and object (s)Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.