Package com.adobe.cq.testing.client
Class CQConfigManagerClient.CQConfig
- java.lang.Object
-
- com.adobe.cq.testing.client.CQConfigManagerClient.CQConfig
-
- Enclosing class:
- CQConfigManagerClient
public static final class CQConfigManagerClient.CQConfig extends Object
Helper class to update or delete an existing config.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
Delete the path of current config.String
getPath()
String
importContentFragmentTemplate(String jsonString)
Imports the Template for ContentFragment into the current configvoid
setWcmTemplatesPermissions()
Sets 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 configvoid
updateTitle(String newTitle)
Updates the title of config.
-
-
-
Method Detail
-
getPath
public String getPath()
- Returns:
- path of the config
-
delete
public void delete() throws org.apache.sling.testing.clients.ClientException
Delete 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, InterruptedException
Sets 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
-
-