Class DenyCounterWriteAccessPolicyProcessor
java.lang.Object
ch.tocco.nice2.persist.security.impl.policyprocessor.DenyCounterWriteAccessPolicyProcessor
- All Implemented Interfaces:
PolicyProcessor
@Component
public class DenyCounterWriteAccessPolicyProcessor
extends Object
implements PolicyProcessor
This policy processor creates an acl rule to deny the write access on the fields of the type counter.
Before there must be an acl rule like `entityPath(Event, event_nr): deny access(write);`.
The qualifier @AllowCounterWriteAccess can be used if no such rule should be created for an entity.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
processPolicy
(PolicyBuilder policy, Object target) Post-process the given policy.void
setExcludedModules
(List<String> excludedModels)
-
Constructor Details
-
DenyCounterWriteAccessPolicyProcessor
-
-
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
- Throws:
Exception
-
setExcludedModules
-