Class RoleSynchronizer
java.lang.Object
ch.tocco.nice2.userbase.impl.roles.RoleSynchronizer
- All Implemented Interfaces:
Runnable
@ConditionalOnProperty(value="ch.tocco.nice2.disableRoleSync",
havingValue="false",
matchIfMissing=true)
public class RoleSynchronizer
extends Object
implements Runnable
Compares the roles gathered from the ACL policy files with the existing
roles in the database.
If a new role is found in the ACL files which is not in the database,
an error is logged. If a role in the database is not used in any of the
ACL files, a warning is logged.
-
Constructor Summary
ConstructorDescriptionRoleSynchronizer
(org.slf4j.Logger log, Context context, SecurityManager securityManager, QueryBuilderFactory queryBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
void
setIgnoredRoles
(List<String> ignoredRoles) void
setRoleTypes
(List<String> roleTypes)
-
Constructor Details
-
RoleSynchronizer
public RoleSynchronizer(org.slf4j.Logger log, Context context, SecurityManager securityManager, QueryBuilderFactory queryBuilderFactory)
-
-
Method Details