Interface AccessRightValidator


  • @ConsumerType
    public interface AccessRightValidator
    Performs an access right validation on a given resource.
    Author:
    Roland Gruber
    • Method Detail

      • validate

        ValidationResult validate​(boolean simulate)
        Performs the provided check.
        Parameters:
        simulate - turn on simulation
        Returns:
        result
      • getLabel

        String getLabel()
        Returns a descriptive label for the check.
        Returns:
        label
      • getGroupId

        String getGroupId()
        Returns the user or group to check.
        Returns:
        user/group
      • getResource

        org.apache.sling.api.resource.Resource getResource()
        Returns the resource to check.
        Returns:
        resource