public static final class CQConfigManagerClient.CQConfig extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
CQConfig(CQClient client,
String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete the path of current config.
|
String |
getPath() |
String |
importContentFragmentTemplate(String jsonString)
Imports the Template for ContentFragment into the current config
|
void |
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 config
|
void |
updateTitle(String newTitle)
Updates the title of config.
|
public String getPath()
public void delete()
throws org.apache.sling.testing.clients.ClientException
org.apache.sling.testing.clients.ClientException - if the request failspublic void updateTitle(String newTitle) throws org.apache.sling.testing.clients.ClientException, IOException
newTitle - title to updateorg.apache.sling.testing.clients.ClientException - if the request failsIOException - if json parsing failspublic String importContentFragmentTemplate(String jsonString) throws org.apache.sling.testing.clients.ClientException, InterruptedException
jsonString - Structure of the the template to be imported into json formatorg.apache.sling.testing.clients.ClientException - if the request failsInterruptedException - if waiting was interruptedpublic void setWcmTemplatesPermissions()
throws org.apache.sling.testing.clients.ClientException
org.apache.sling.testing.clients.ClientException - if the request failsCopyright © 2022. All rights reserved.