Class PermissionAccessValidator
java.lang.Object
overit.geocall.platform.grants.validators.PermissionAccessValidator
- All Implemented Interfaces:
AccessPrivilegeValidator
@Service
@Qualifier("permission")
public class PermissionAccessValidator
extends Object
implements AccessPrivilegeValidator
Represents a permission grant validator.
This class implements the
AccessPrivilegeValidator interface and provides functionality to determine if access to
the passed class is granted based on the Permission linked to the current
Identity.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines whether the given bean class can be handled by this validator.Determines whether access to the given object class is granted based on specific criteria.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocall.platform.grants.validators.AccessPrivilegeValidator
canHandle, validate
-
Field Details
-
QUALIFIER
- See Also:
-
-
Constructor Details
-
PermissionAccessValidator
public PermissionAccessValidator()
-
-
Method Details
-
canHandle
Description copied from interface:AccessPrivilegeValidatorDetermines whether the given bean class can be handled by this validator.- Specified by:
canHandlein interfaceAccessPrivilegeValidator- Parameters:
cls- the class to be checked (might be null)- Returns:
- true if the bean can be handled, false otherwise
-
validate
Description copied from interface:AccessPrivilegeValidatorDetermines whether access to the given object class is granted based on specific criteria.- Specified by:
validatein interfaceAccessPrivilegeValidator- Parameters:
cls- the class to be checked for access (might be null)- Returns:
- a
PrivilegeViolationinstance if there is any violation ornullotherwise
-