Interface ContentFragmentList
- All Superinterfaces:
Component,ComponentExporter
Defines a Sling model used for the
/apps/core/wcm/components/contentfragmentlist component.- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the property (in JSON export) that provides the content fragment items.static final StringName of the optional resource property that stores the names of the elements to be used.static final StringName of the optional resource property that sets the query limit for the number of results to return.static final StringPath of the model resource.static final StringName of the optional resource property that stores the model element the list is sorted by.static final StringName of the optional resource property that stores the parent path of the content fragments.static final StringName of the optional resource property that sets the sort order of the list (ascending / descending).static final StringName of the optional resource property that stores the tag names for filtering the result. -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull StringReturns the type of the resource for which the export is performed.default @NotNull Collection<DAMContentFragment> Returns a list ofcontent fragments.Methods inherited from interface com.adobe.cq.wcm.core.components.models.Component
getAppliedCssClasses, getData, getId
-
Field Details
-
JSON_PN_ITEMS
Name of the property (in JSON export) that provides the content fragment items.- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0
- See Also:
-
PN_ELEMENT_NAMES
Name of the optional resource property that stores the names of the elements to be used.- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0
- See Also:
-
PN_MODEL_PATH
Path of the model resource. Property is required.- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0
- See Also:
-
PN_TAG_NAMES
Name of the optional resource property that stores the tag names for filtering the result.- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0
- See Also:
-
PN_PARENT_PATH
Name of the optional resource property that stores the parent path of the content fragments.- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0
- See Also:
-
PN_MAX_ITEMS
Name of the optional resource property that sets the query limit for the number of results to return.- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.1.0
- See Also:
-
PN_ORDER_BY
Name of the optional resource property that stores the model element the list is sorted by.- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.2.0
- See Also:
-
PN_SORT_ORDER
Name of the optional resource property that sets the sort order of the list (ascending / descending).- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.2.0
- See Also:
-
-
Method Details
-
getListItems
Returns a list ofcontent fragments.- Returns:
- the list of content fragments
- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0
-
getExportedType
Returns the type of the resource for which the export is performed.- Specified by:
getExportedTypein interfaceComponent- Specified by:
getExportedTypein interfaceComponentExporter- Returns:
- the type of the component
- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0
- See Also:
-