Class ExtendedCQPermissions
java.lang.Object
com.adobe.cq.testing.client.security.Permissions
com.adobe.cq.testing.client.security.CQPermissions
com.adobe.cq.testing.client.security.ExtendedCQPermissions
-
Field Summary
Fields inherited from class com.adobe.cq.testing.client.security.Permissions
client
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
changePermissionsWithRetry
(PermissionConfig config, long timeout, long delay, int... expectedStatus) Changes permissions for an authorizable with retry in case an exception is thrown.com.fasterxml.jackson.databind.JsonNode
getPermissionsWithRetry
(String authorizableId, String path, int depth, long timeout, long delay, int... expectedStatus) Get permissions for an authorizable with retry in case an exception is thrown.* The operation is retried until successful, or until the {timeout} is reachedMethods inherited from class com.adobe.cq.testing.client.security.CQPermissions
changePermissions, getPermissions
-
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 usedtimeout
- the timeout for retries, in millisecondsdelay
- the delay between retries, in millisecondsexpectedStatus
- 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 reachedInterruptedException
- 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 authorizablepath
- pathdepth
- depthtimeout
- the timeout for retries, in millisecondsdelay
- the delay between retries, in millisecondsexpectedStatus
- 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 reachedInterruptedException
- on interrupt
-