Class ExperienceFragmentsClient.ExperienceFragment

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

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

  • Constructor Details

    • ExperienceFragment

      public ExperienceFragment(ExperienceFragmentsClient client, String xfPath) throws org.apache.sling.testing.clients.ClientException
      Throws:
      org.apache.sling.testing.clients.ClientException
  • Method Details

    • update

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

      public String getTitle()
    • getName

      public String getName()
    • getPath

      public String getPath()
    • getTags

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

      @Nullable public String getDescription()
    • getVariants

    • getFacebookSpace

      @Nullable public String getFacebookSpace()
    • getPinterestSpace

      @Nullable public String getPinterestSpace()
    • getProperty

      public com.google.gson.JsonElement getProperty(String property)
    • 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