Class GroovyScriptingPolicyProcessor
java.lang.Object
ch.tocco.nice2.scripting.impl.policyprocessor.GroovyScriptingPolicyProcessor
- All Implemented Interfaces:
PolicyProcessor
@Component
@ConditionalOnProperty(value="nice2.scripting.grantAccessLegacyGroovyScripting",
havingValue="true")
public class GroovyScriptingPolicyProcessor
extends Object
implements PolicyProcessor
This policy processor creates the acl rules for creating and editing Dynamic_batch_job and Dynamic_listener.
The application property `nice2.scripting.grantAccessLegacyGroovyScripting` must be set to true
that the groovy script feature can be still used.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
processPolicy
(PolicyBuilder policy, Object target) Post-process the given policy.
-
Constructor Details
-
GroovyScriptingPolicyProcessor
-
-
Method Details
-
processPolicy
Description copied from interface:PolicyProcessor
Post-process the given policy. On phase `LOGIN`, the `target` is the principal being logged in, on phase `GUARD`, it's the object being guarded. On phase `LOGIN` the `policy` is the entire policy containing all rules that affect the current user, on phase `GUARD` the policy only contains the rules that are relevant to the guarded objects (the entire policy, if needed, can be retrieved from theSecurityContext
).- Specified by:
processPolicy
in interfacePolicyProcessor
-