public class BulkEditorClient extends CQClient
CQClient.Builder, CQClient.InternalBuilder<T extends CQClient>
LOG, STATISTICS_ROOT, wcmCommands
Constructor and Description |
---|
BulkEditorClient(org.apache.http.impl.client.CloseableHttpClient http,
org.apache.sling.testing.clients.SlingClientConfig config) |
BulkEditorClient(URI serverUrl,
String user,
String password) |
Modifier and Type | Method and Description |
---|---|
org.apache.sling.testing.clients.SlingHttpResponse |
changePropertyValue(String nodePath,
String newValue,
int... expectedStatus)
Update property value.
|
String |
exportContent(String rootPath,
String queryParams,
String[] cols)
Export content to TSV file.
|
org.apache.sling.testing.clients.SlingHttpResponse |
importContent(String rootPath,
String fileName,
InputStream inputStream,
int... expectedStatus)
Import content from a TSV file.
|
org.apache.sling.testing.clients.SlingHttpResponse |
importContent(String rootPath,
String fileName,
String resourceFile,
int... expectedStatus)
Import content from a TSV file.
|
org.codehaus.jackson.JsonNode |
search(String rootPath,
String queryParams,
String[] cols)
Search with bulk editor.
|
copyLanguages, copyPage, createPage, createPageWithRetry, createVersion, deletePage, deletePageWithRetry, lockPage, movePage, movePage, resetPageStatistics, restoreTree, restoreVersion, rolloutPage, searchAndReplaceInPages, searchInPages, setPageProperties, setPageProperty, setPagePropertyImage, unlockPage, uploadAsset, uploadFileCQStyle
createFolder, createNode, createNodeRecursive, deletePath, doGetJson, exists, getJsonNode, getJsonNode, getNodeNameFromPath, getParentPath, getUUId, getUUID, importContent, importJson, move, setPropertiesString, setPropertyString, setPropertyStringArray, upload, waitExists, waitUntilExists
adaptTo, 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, getUser, getValue, getValues, hasValue
public BulkEditorClient(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.ClientException
public org.codehaus.jackson.JsonNode search(String rootPath, String queryParams, String[] cols) throws org.apache.sling.testing.clients.ClientException
rootPath
- The search root path.queryParams
- GQL query parameters.cols
- List of columns to be displayed.org.apache.sling.testing.clients.ClientException
- if the request failspublic org.apache.sling.testing.clients.SlingHttpResponse importContent(String rootPath, String fileName, String resourceFile, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
importContent
in class org.apache.sling.testing.clients.SlingClient
rootPath
- where to importfileName
- the file to importresourceFile
- resource fileexpectedStatus
- list of expected http status codesorg.apache.sling.testing.clients.ClientException
- if the request failspublic org.apache.sling.testing.clients.SlingHttpResponse importContent(String rootPath, String fileName, InputStream inputStream, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
rootPath
- where to importfileName
- the file nameinputStream
- the document input streamexpectedStatus
- list of expected http status codesorg.apache.sling.testing.clients.ClientException
- if the request failspublic String exportContent(String rootPath, String queryParams, String[] cols) throws org.apache.sling.testing.clients.ClientException
rootPath
- Content root path.queryParams
- GQL query parameters.cols
- List of columns to be exported.org.apache.sling.testing.clients.ClientException
- if the request failspublic org.apache.sling.testing.clients.SlingHttpResponse changePropertyValue(String nodePath, String newValue, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
nodePath
- The path to the property.newValue
- The value for the property.expectedStatus
- list of expected http status codesorg.apache.sling.testing.clients.ClientException
- if the request failsCopyright © 2018. All rights reserved.