Class ExperienceFragmentsClient.ExperienceFragmentVariant

java.lang.Object
com.adobe.cq.testing.client.ExperienceFragmentsClient.ExperienceFragmentVariant
Enclosing class:
ExperienceFragmentsClient

public static class ExperienceFragmentsClient.ExperienceFragmentVariant extends Object
Representation of the Experience Fragment Variant NOTE: All properties are cached. If any change is made in the repository you need to call ExperienceFragmentVariant.update().
  • Field Details

  • Constructor Details

    • ExperienceFragmentVariant

      public ExperienceFragmentVariant(ExperienceFragmentsClient xfClient, String variantPath) throws org.apache.sling.testing.clients.ClientException
      Throws:
      org.apache.sling.testing.clients.ClientException
  • Method Details

    • isMasterVariant

      public boolean isMasterVariant()
    • isSocialVariant

      public boolean isSocialVariant()
    • isLiveCopy

      public boolean isLiveCopy()
    • getTemplateType

      public ExperienceFragmentsClient.XF_TEMPLATE getTemplateType()
    • getTemplatePath

      public String getTemplatePath()
    • getVariantType

      public String getVariantType()
    • getPath

      public String getPath()
    • getResourceType

      public String getResourceType()
    • showInEditor

      public boolean showInEditor()
    • getParentXFPath

      public String getParentXFPath()
    • getTitle

      public String getTitle()
    • getName

      public String getName()
    • getDescription

      @Nullable public String getDescription()
    • getTags

      @Nullable public List<String> getTags()
    • getFacebookSpace

      @Nullable public String getFacebookSpace()
    • getPinterestSpace

      @Nullable public String getPinterestSpace()
    • getProperty

      public com.google.gson.JsonElement getProperty(String propertyName)
    • getComponents

      public <T extends ExperienceFragmentsClient.VariantComponents> T getComponents()
    • update

      public void update() throws org.apache.sling.testing.clients.ClientException
      Throws:
      org.apache.sling.testing.clients.ClientException
    • setFacebookSpace

      public void setFacebookSpace(String facebookSpace) throws org.apache.sling.testing.clients.ClientException
      Throws:
      org.apache.sling.testing.clients.ClientException
    • setPinterestSpace

      public void setPinterestSpace(String pinterestSpace) throws org.apache.sling.testing.clients.ClientException
      Throws:
      org.apache.sling.testing.clients.ClientException
    • publish

      public org.apache.sling.testing.clients.SlingHttpResponse publish(int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
      Throws:
      org.apache.sling.testing.clients.ClientException
    • unpublish

      public org.apache.sling.testing.clients.SlingHttpResponse unpublish(int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
      Throws:
      org.apache.sling.testing.clients.ClientException