Package com.adobe.cq.xf
Interface ExperienceFragmentsService
Service that provides methods to work with the Experience Fragments objects
-
Method Summary
Modifier and TypeMethodDescriptionfindReferences(String experienceFragmentPath, String... referenceType) Returns a list of references for an experience fragment at a given pathlistPagesUsingVariation(ExperienceFragmentVariation... variation) Finds all the pages that use one or more experience fragment variationslistUsedVariations(Page page) Finds all the experience fragments variations in a given content page.
-
Method Details
-
listUsedVariations
Finds all the experience fragments variations in a given content page.- Parameters:
page- the content page- Returns:
- a list of variations used in the given page
-
listPagesUsingVariation
Finds all the pages that use one or more experience fragment variations- Parameters:
variation- one or moreExperienceFragmentVariationobjects- Returns:
- a list of pages that contain components pointing to those experience fragments variations
-
findReferences
Returns a list of references for an experience fragment at a given path- Parameters:
experienceFragmentPath- the path to the experience fragment. This path must point to the actual experience fragment page, not the "jcr:content" node.referenceType- an optional reference type which indicates which reference provider(s) to use. If this parameter is not supplied then all the references are returned- Returns:
- a list of
Referenceobject. The "source" of the reference will be the page that uses the experience fragment and the "target" of the reference will be specific variation that the page embeds.
-