public class TogglesClient extends CQClient
CQClient.Builder, CQClient.InternalBuilder<T extends CQClient>LOG, STATISTICS_ROOT, wcmCommands| Constructor and Description |
|---|
TogglesClient(org.apache.http.impl.client.CloseableHttpClient http,
org.apache.sling.testing.clients.SlingClientConfig config) |
TogglesClient(URI serverUrl,
String user,
String password) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getEnabledToggles()
Retrieves a list of all the enabled toggles on the instance.
|
boolean |
isToggleEnabled(String toggle)
Checks whether a toggle is enabled or not.
|
copyLanguages, copyPage, createPage, createPageWithRetry, createVersion, deletePage, deletePageWithRetry, getAuthorSitesPage, lockPage, movePage, movePage, pageExists, pageExistsWithRetry, pageExistsWithRetry, resetPageStatistics, restoreTree, restoreVersion, rolloutPage, searchAndReplaceInPages, searchInPages, setPageProperties, setPageProperty, setPagePropertyImage, unlockPage, uploadFileCQStylecreateFolder, createNode, createNodeRecursive, deletePath, doGetJson, endImpersonation, exists, getJsonNode, getJsonNode, getNodeNameFromPath, getParentPath, getUser, getUUId, getUUID, impersonate, importContent, importContent, importJson, move, setPropertiesString, setPropertyString, setPropertyStringArray, upload, waitExists, waitUntilExistsadaptTo, addValue, close, doDelete, doGet, doGet, doGet, doHead, doPatch, doPost, doPost, doPut, doRawRequest, doRequest, doStreamGet, doStreamPost, doStreamRequest, execute, execute, execute, execute, execute, execute, execute, execute, getClientId, getConnectionManager, getCookieStore, getCredentialsProvider, getParams, getPassword, getPath, getPath, getUrl, getUrl, getUrl, getValue, getValues, hasValuepublic TogglesClient(org.apache.http.impl.client.CloseableHttpClient http,
org.apache.sling.testing.clients.SlingClientConfig config)
throws org.apache.sling.testing.clients.ClientException
org.apache.sling.testing.clients.ClientExceptionpublic List<String> getEnabledToggles() throws org.apache.sling.testing.clients.ClientException
org.apache.sling.testing.clients.ClientException - if the toggles state cannot be retrievedpublic boolean isToggleEnabled(String toggle) throws org.apache.sling.testing.clients.ClientException
toggle - the toggle to checkorg.apache.sling.testing.clients.ClientException - if the toggles state cannot be retrievedCopyright © 2022. All rights reserved.