Class ExtendedCQPermissions


public class ExtendedCQPermissions extends CQPermissions
  • Constructor Details

    • ExtendedCQPermissions

      public ExtendedCQPermissions(T client)
  • Method Details

    • changePermissionsWithRetry

      public com.fasterxml.jackson.databind.JsonNode changePermissionsWithRetry(PermissionConfig config, long timeout, long delay, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException, InterruptedException
      Changes permissions for an authorizable with retry in case an exception is thrown. The operation is retried until successful, or until the {timeout} is reached
      Parameters:
      config - The PermissionConfig to be used
      timeout - the timeout for retries, in milliseconds
      delay - the delay between retries, in milliseconds
      expectedStatus - list of allowed HTTP statuses to be returned. If not set, http status 200 (OK) is assumed.
      Returns:
      Json node containing resulting permissions
      Throws:
      org.apache.sling.testing.clients.ClientException - If something fails during the request/response cycle after timeout was reached
      InterruptedException - on interrupt
    • getPermissionsWithRetry

      public com.fasterxml.jackson.databind.JsonNode getPermissionsWithRetry(String authorizableId, String path, int depth, long timeout, long delay, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException, InterruptedException
      Get permissions for an authorizable with retry in case an exception is thrown.* The operation is retried until successful, or until the {timeout} is reached
      Parameters:
      authorizableId - the Id of the authorizable
      path - path
      depth - depth
      timeout - the timeout for retries, in milliseconds
      delay - the delay between retries, in milliseconds
      expectedStatus - list of allowed HTTP statuses to be returned. If not set, http status 200 (OK) is assumed.
      Returns:
      the root JsonNode
      Throws:
      org.apache.sling.testing.clients.ClientException - If something fails during request/response cycle after timeout was reached
      InterruptedException - on interrupt