Package com.adobe.cq.testing.client
Class ExperienceFragmentsClient.ExperienceFragementsConfigurationBuilder
java.lang.Object
com.adobe.cq.testing.client.ExperienceFragmentsClient.ExperienceFragementsConfigurationBuilder
- Enclosing class:
ExperienceFragmentsClient
public static class ExperienceFragmentsClient.ExperienceFragementsConfigurationBuilder
extends Object
Experience Fragments configuration builder as it can be done from the UI
-
Constructor Summary
ConstructorDescriptionConstructor -
Method Summary
Modifier and TypeMethodDescriptionDo the configurationwithAllowedTemplates
(List<String> allowedTemplates) Set the allowed templates
-
Constructor Details
-
ExperienceFragementsConfigurationBuilder
public ExperienceFragementsConfigurationBuilder(ExperienceFragmentsClient client) throws org.apache.sling.testing.clients.ClientException Constructor- Parameters:
client
- client to be used- Throws:
org.apache.sling.testing.clients.ClientException
- if the builder cannot be created
-
-
Method Details
-
withAllowedTemplates
public ExperienceFragmentsClient.ExperienceFragementsConfigurationBuilder withAllowedTemplates(List<String> allowedTemplates) Set the allowed templates- Parameters:
allowedTemplates
- the complete list of allowed templates.- Returns:
- this
-
configure
public ExperienceFragmentsClient.ExperienceFragmentsConfiguration configure() throws org.apache.sling.testing.clients.ClientExceptionDo the configuration- Returns:
- The new configuration
- Throws:
org.apache.sling.testing.clients.ClientException
- if the configuration can not be created
-