Class CQConfigManagerClient.CQConfig

  • Enclosing class:
    CQConfigManagerClient

    public static final class CQConfigManagerClient.CQConfig
    extends Object
    Helper class to update or delete an existing config.
    • Constructor Detail

    • 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 fails
        IOException - 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 fails
        InterruptedException - 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 fails
        TimeoutException - if a timeout happens
        InterruptedException - on interrupt