Class ACLPolicyProvider
java.lang.Object
ch.tocco.nice2.security.impl.compiler.ACLPolicyProvider
- All Implemented Interfaces:
PolicyProvider
Global ACL policy provider that compiles the main ACL file from the
customer module. It handles a special include syntax only valid in
the customer ACL file to trigger loading of all module ACLs.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionACLPolicyProvider
(org.slf4j.Logger log, ModuleManager moduleManager, PolicyCompiler compiler, ModuleAclPolicyProvider moduleProvider) -
Method Summary
Modifier and TypeMethodDescriptiongetAcl()
void
getPolicy
(PolicyBuilder builder) void
setAcl
(ModelResource acl) void
setCompileExceptionHandler
(CompileExceptionHandler compileExceptionHandler) Set a compile exception handler.
-
Field Details
-
MODULE_ACL_KEYWORD
- See Also:
-
-
Constructor Details
-
ACLPolicyProvider
public ACLPolicyProvider(org.slf4j.Logger log, ModuleManager moduleManager, @Lazy PolicyCompiler compiler, ModuleAclPolicyProvider moduleProvider)
-
-
Method Details
-
setAcl
-
setCompileExceptionHandler
Set a compile exception handler. By default, allCompileExceptions
are simply logged.- Parameters:
compileExceptionHandler
- custom implementation of aCompileExceptionHandler
-
getAcl
-
getPolicy
- Specified by:
getPolicy
in interfacePolicyProvider
-