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 Details

  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • setRoleTypes

      @Autowired public void setRoleTypes(List<String> roleTypes)
    • setIgnoredRoles

      @Autowired(required=false) public void setIgnoredRoles(List<String> ignoredRoles)