Class AccessPermissionValidator

java.lang.Object
ch.tocco.nice2.persist.security.impl.AccessPermissionValidator
All Implemented Interfaces:
PolicyValidator

@Component public class AccessPermissionValidator extends Object implements PolicyValidator
Validates AccessPermission permissions: It is not allowed to define write access without read access. Therefore 'deny access(read)' and 'grant access(write)' are not accepted.
  • Constructor Details

    • AccessPermissionValidator

      public AccessPermissionValidator()
  • Method Details

    • setExcludedModules

      @Autowired public void setExcludedModules(List<String> excludedModules)
    • validatePolicy

      public List<PolicyError> validatePolicy(Policy policy)
      Description copied from interface: PolicyValidator
      Validates the given policy.
      Specified by:
      validatePolicy in interface PolicyValidator
      Parameters:
      policy - the policy to validate
      Returns:
      the validation result