Interface ContentFragmentList
-
- All Superinterfaces:
ComponentExporter
@ConsumerType public interface ContentFragmentList extends ComponentExporter
Defines a Sling model used for the/apps/core/wcm/components/contentfragmentlistcomponent.- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PN_ITEMSName of the property (in JSON export) that provides the content fragment items.static java.lang.StringPN_ELEMENT_NAMESName of the optional resource property that stores the names of the elements to be used.static java.lang.StringPN_MAX_ITEMSName of the optional resource property that sets the query limit for the number of results to return.static java.lang.StringPN_MODEL_PATHPath of the model resource.static java.lang.StringPN_ORDER_BYName of the optional resource property that stores the model element the list is sorted by.static java.lang.StringPN_PARENT_PATHName of the optional resource property that stores the parent path of the content fragments.static java.lang.StringPN_SORT_ORDERName of the optional resource property that sets the sort order of the list (ascending / descending).static java.lang.StringPN_TAG_NAMESName of the optional resource property that stores the tag names for filtering the result.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default @NotNull java.lang.StringgetExportedType()Returns the type of the resource for which the export is performed.default @NotNull java.util.Collection<DAMContentFragment>getListItems()Returns a list ofcontent fragments.
-
-
-
Field Detail
-
JSON_PN_ITEMS
static final java.lang.String 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:
- Constant Field Values
-
PN_ELEMENT_NAMES
static final java.lang.String 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:
- Constant Field Values
-
PN_MODEL_PATH
static final java.lang.String 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:
- Constant Field Values
-
PN_TAG_NAMES
static final java.lang.String 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:
- Constant Field Values
-
PN_PARENT_PATH
static final java.lang.String 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:
- Constant Field Values
-
PN_MAX_ITEMS
static final java.lang.String 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:
- Constant Field Values
-
PN_ORDER_BY
static final java.lang.String 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:
- Constant Field Values
-
PN_SORT_ORDER
static final java.lang.String 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:
- Constant Field Values
-
-
Method Detail
-
getListItems
@NotNull default @NotNull java.util.Collection<DAMContentFragment> 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
@NotNull default @NotNull java.lang.String getExportedType()
Returns the type of the resource for which the export is performed.- Specified by:
getExportedTypein interfaceComponentExporter- Returns:
- the type of the component
- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0
-
-