Class CQConfigManagerClient

    • Constructor Detail

      • CQConfigManagerClient

        public CQConfigManagerClient​(org.apache.http.impl.client.CloseableHttpClient http,
                                     org.apache.sling.testing.clients.SlingClientConfig config)
                              throws org.apache.sling.testing.clients.ClientException
        Throws:
        org.apache.sling.testing.clients.ClientException
      • CQConfigManagerClient

        public CQConfigManagerClient​(URI serverUrl,
                                     String user,
                                     String password)
                              throws org.apache.sling.testing.clients.ClientException
        Throws:
        org.apache.sling.testing.clients.ClientException
    • Method Detail

      • create

        public CQConfigManagerClient.CQConfig create​(String configTitle,
                                                     CQConfigManagerClient.CQConfigCapability... capabilities)
                                              throws org.apache.sling.testing.clients.ClientException
        Creates a config on default config path /conf
        Parameters:
        configTitle - title of the config to be created
        capabilities - capabilities of the configs eg Editable Templates
        Returns:
        created config
        Throws:
        org.apache.sling.testing.clients.ClientException - if the request fails
      • create

        public CQConfigManagerClient.CQConfig create​(String parentPath,
                                                     String configTitle,
                                                     CQConfigManagerClient.CQConfigCapability... capabilities)
                                              throws org.apache.sling.testing.clients.ClientException
        Creates a CQConfig on the given path
        Parameters:
        parentPath - path below which config should be created
        configTitle - title of the config to be created
        capabilities - capabilities of the configs eg Editable Templates
        Returns:
        created config
        Throws:
        org.apache.sling.testing.clients.ClientException - if the request fails
      • create

        public CQConfigManagerClient.CQConfig create​(String parentPath,
                                                     String configTitle,
                                                     String configName,
                                                     CQConfigManagerClient.CQConfigCapability... capabilities)
                                              throws org.apache.sling.testing.clients.ClientException
        Created a Config on the given path and with given name
        Parameters:
        parentPath - path below which config should be created
        configTitle - title of the config to be created
        configName - node name for the config
        capabilities - capabilities of the configs eg Editable Templates
        Returns:
        created config
        Throws:
        org.apache.sling.testing.clients.ClientException - if the request fails