Class AccessPermissionValidator
java.lang.Object
ch.tocco.nice2.persist.security.impl.AccessPermissionValidator
- All Implemented Interfaces:
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setExcludedModules
(List<String> excludedModules) validatePolicy
(Policy policy) Validates the given policy.
-
Constructor Details
-
AccessPermissionValidator
public AccessPermissionValidator()
-
-
Method Details
-
setExcludedModules
-
validatePolicy
Description copied from interface:PolicyValidator
Validates the given policy.- Specified by:
validatePolicy
in interfacePolicyValidator
- Parameters:
policy
- the policy to validate- Returns:
- the validation result
-