Interface GroupService.Validator
-
- All Known Implementing Classes:
GroupServiceImpl.GroupValidator
- Enclosing interface:
- GroupService
public static interface GroupService.Validator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ValidationResultvalidateCreate(String groupName)Validate that the logged-in user has permission to create a group with the given name.ValidationResultvalidateDelete(String groupName)Validate that the logged-in user has permission to delete a group with the given name.ValidationResultvalidateView()Validate that the logged-in user has permission to view groups.
-
-
-
Method Detail
-
validateView
ValidationResult validateView()
Validate that the logged-in user has permission to view groups.- Returns:
- an immutable validation result
-
validateCreate
ValidationResult validateCreate(String groupName)
Validate that the logged-in user has permission to create a group with the given name.- Returns:
- an immutable validation result
- Since:
- 8.2.0
-
validateDelete
ValidationResult validateDelete(String groupName)
Validate that the logged-in user has permission to delete a group with the given name.- Returns:
- an immutable validation result
- Since:
- 8.2.0
-
-