Interface PersonService.Validator

    • 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