Interface PersonService.Validator
-
- All Known Implementing Classes:
PersonServiceImpl.ValidatorImpl
- Enclosing interface:
- PersonService
public static interface PersonService.ValidatorProvides methods for validating the view method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ValidationResultvalidateAddMembership(String username, String groupName)Validate that the requesting user has permission to add the given user to the given group.ValidationResultvalidateDelete(Person personToDelete)Validate that the current user has permissions to remove the given personValidationResultvalidateDisable(String username)Validate that the requesting user has permission to disable the given user.ValidationResultvalidateEnable(String username)Validate that the requesting user has permission to enable the given user.ValidationResultvalidateRemoveMembership(String username, String groupName)Validate that the requesting user has permission to remove the given user from the given group.ValidationResultvalidateView()Validate that current user can view user profiles
-
-
-
Method Detail
-
validateView
ValidationResult validateView()
Validate that current user can view user profiles- Returns:
- an immutable Validation result.
-
validateDisable
ValidationResult validateDisable(String username)
Validate that the requesting user has permission to disable the given user.- Parameters:
username- The username identifying the given user.- Since:
- 8.2.0
-
validateEnable
ValidationResult validateEnable(String username)
Validate that the requesting user has permission to enable the given user.- Parameters:
username- The username identifying the given user.- Since:
- 8.2.0
-
validateDelete
ValidationResult validateDelete(Person personToDelete)
Validate that the current user has permissions to remove the given person- Parameters:
personToDelete-- Returns:
- an immutable Validation result
- Since:
- 6.13.0
-
validateAddMembership
ValidationResult validateAddMembership(String username, String groupName)
Validate that the requesting user has permission to add the given user to the given group.- Parameters:
username- The username identifying the given user.groupName- The group name identifying the given group.- Returns:
- ValidationResult
- Since:
- 8.2.0
-
validateRemoveMembership
ValidationResult validateRemoveMembership(String username, String groupName)
Validate that the requesting user has permission to remove the given user from the given group.- Parameters:
username- The username identifying the given user.groupName- The group name identifying the given group.- Returns:
- ValidationResult
- Since:
- 8.2.0
-
-