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 ValidationResultvalidateDelete(Person personToDelete)Validate that the current user has permissions to remove the given personValidationResultvalidateView()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.
-
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
-
-