Class ModuleAccessValidator
java.lang.Object
overit.geocall.platform.grants.validators.ModuleAccessValidator
- All Implemented Interfaces:
AccessPrivilegeValidator
@Service
@Qualifier("module")
public class ModuleAccessValidator
extends Object
implements AccessPrivilegeValidator
ModuleAccessValidator is an implementation of the AccessPrivilegeValidator interface that validates access
based on the license modules. It checks if a user has a valid license for the required modules to access
the requested class.-
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
-
ModuleAccessValidator
public ModuleAccessValidator()
-
-
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
-