public class ExtendedCQPermissions extends CQPermissions
client| Constructor and Description |
|---|
ExtendedCQPermissions(T client) |
| Modifier and Type | Method and Description |
|---|---|
com.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 reached
|
changePermissions, getPermissionspublic com.fasterxml.jackson.databind.JsonNode changePermissionsWithRetry(PermissionConfig config, long timeout, long delay, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException, InterruptedException
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.org.apache.sling.testing.clients.ClientException - If something fails during the request/response cycle after timeout was reachedInterruptedException - on interruptpublic 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
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.JsonNodeorg.apache.sling.testing.clients.ClientException - If something fails during request/response cycle after timeout was reachedInterruptedException - on interruptCopyright © 2022. All rights reserved.