@ConsumerType public interface ExperienceFragment extends Component, ContainerExporter
ExperienceFragment Sling Model used for the
/apps/core/wcm/components/experiencefragment component.| Modifier and Type | Field and Description |
|---|---|
static String |
PN_FRAGMENT_VARIATION_PATH
Name of the configuration policy property that specifies the experience fragment variation path.
|
| Modifier and Type | Method and Description |
|---|---|
default String |
getCssClassNames()
Generates some container class names (needed for SPA framework)
|
default @NotNull Map<String,? extends ComponentExporter> |
getExportedItems()
Returns the map of all exported child items (resource names from Sling Model classes).
|
default @NotNull String[] |
getExportedItemsOrder()
Returns the order of items in the map.
|
default @NotNull String |
getExportedType()
Returns the type of the resource for which the export is performed.
|
default String |
getLocalizedFragmentVariationPath()
Returns the localized path of the experience fragment variation if the experience fragment resource is defined
in the template.
|
default String |
getName()
Returns the technical name of the experience fragment.
|
default boolean |
isConfigured()
Simple boolean flag to check if the experience fragment variation and its underlying experience fragment is configured.
|
static final String PN_FRAGMENT_VARIATION_PATH
String value.default String getLocalizedFragmentVariationPath()
null otherwise.
If both the content page and the experience fragment have a localized root (language, live copy or blueprint),
- it is then assumed that the content pages and the experience fragments follow the same structure patterns -
this method returns the localized path of the experience fragment based on the localization of the content page
if it exists, otherwise it returns the fragment path that is configured, suffixed with "/jcr:content".default String getName()
@Nullable default String getCssClassNames()
default boolean isConfigured()
@NotNull default @NotNull String getExportedType()
ComponentExporterReturns the type of the resource for which the export is performed.
NOTE: methods whose JSON serialization would lead to the same JSON property name (":type") will not be serialized.
getExportedType in interface ComponentgetExportedType in interface ComponentExporterComponentExporter.getExportedType()@NotNull default @NotNull String[] getExportedItemsOrder()
ContainerExporterReturns the order of items in the map.
NOTE: This information is required because the JSON specification and most implementations don't provide a stable order of items in JSON objects. Methods whose JSON serialization would lead to the same JSON property name (":order") will not be serialized.
getExportedItemsOrder in interface ContainerExporterContainerExporter.getExportedItemsOrder()@NotNull default @NotNull Map<String,? extends ComponentExporter> getExportedItems()
ContainerExporterReturns the map of all exported child items (resource names from Sling Model classes).
NOTE: Methods whose JSON serialization would lead to the same JSON property name (":items") will not be serialized.
getExportedItems in interface ContainerExporterContainerExporter.getExportedItems()Copyright © 2010 - 2020 Adobe. All Rights Reserved