Package com.adobe.cq.testing.client
Class CQConfigManagerClient.CQConfig
java.lang.Object
com.adobe.cq.testing.client.CQConfigManagerClient.CQConfig
- Enclosing class:
CQConfigManagerClient
Helper class to update or delete an existing config.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete the path of current config.getPath()importContentFragmentTemplate(String jsonString) Imports the Template for ContentFragment into the current configvoidSets the require permissions for template-authors, content-authors and everyone group so that content-authors and everyone group can read templates and policies of current config and template-authors can update the templates and policies of the current configvoidupdateTitle(String newTitle) Updates the title of config.
-
Constructor Details
-
CQConfig
-
-
Method Details
-
getPath
- Returns:
- path of the config
-
delete
public void delete() throws org.apache.sling.testing.clients.ClientExceptionDelete the path of current config.- Throws:
org.apache.sling.testing.clients.ClientException- if the request fails
-
updateTitle
public void updateTitle(String newTitle) throws org.apache.sling.testing.clients.ClientException, IOException Updates the title of config.- Parameters:
newTitle- title to update- Throws:
org.apache.sling.testing.clients.ClientException- if the request failsIOException- if json parsing fails
-
importContentFragmentTemplate
public String importContentFragmentTemplate(String jsonString) throws org.apache.sling.testing.clients.ClientException, InterruptedException Imports the Template for ContentFragment into the current config- Parameters:
jsonString- Structure of the the template to be imported into json format- Returns:
- created template path
- Throws:
org.apache.sling.testing.clients.ClientException- if the request failsInterruptedException- if waiting was interrupted
-
setWcmTemplatesPermissions
public void setWcmTemplatesPermissions() throws org.apache.sling.testing.clients.ClientException, TimeoutException, InterruptedExceptionSets the require permissions for template-authors, content-authors and everyone group so that content-authors and everyone group can read templates and policies of current config and template-authors can update the templates and policies of the current config- Throws:
org.apache.sling.testing.clients.ClientException- if the request failsTimeoutException- if a timeout happensInterruptedException- on interrupt
-