Interface ComponentRenderingService
-
- All Known Implementing Classes:
DefaultComponentRenderingService
public interface ComponentRenderingService
Interface responsible for retrieving components for rendering purposes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SearchPageData<AbstractCMSComponentData>
getAllComponents(java.lang.String categoryCode, java.lang.String productCode, java.lang.String catalogCode, SearchPageData searchPageData)
Returns the list of allAbstractCMSComponentData
found inSearchPageData
.AbstractCMSComponentData
getComponentById(java.lang.String componentId, java.lang.String categoryCode, java.lang.String productCode, java.lang.String catalogCode)
Returns theAbstractCMSComponentData
object by component id restricted by categoryCode or productCode or catalogCode.SearchPageData<AbstractCMSComponentData>
getComponentsByIds(java.util.Collection<java.lang.String> componentIds, java.lang.String categoryCode, java.lang.String productCode, java.lang.String catalogCode, SearchPageData searchPageData)
Returns the list of foundAbstractCMSComponentData
inSearchPageData
.
-
-
-
Method Detail
-
getComponentById
AbstractCMSComponentData getComponentById(java.lang.String componentId, java.lang.String categoryCode, java.lang.String productCode, java.lang.String catalogCode) throws CMSItemNotFoundException
Returns theAbstractCMSComponentData
object by component id restricted by categoryCode or productCode or catalogCode.- Parameters:
componentId
- the component idcategoryCode
- the optional category codeproductCode
- the optional product codecatalogCode
- the optional catalog code- Returns:
- the
AbstractCMSComponentData
object - Throws:
CMSItemNotFoundException
- if the component is restricted or not visible.
-
getComponentsByIds
SearchPageData<AbstractCMSComponentData> getComponentsByIds(java.util.Collection<java.lang.String> componentIds, java.lang.String categoryCode, java.lang.String productCode, java.lang.String catalogCode, SearchPageData searchPageData)
Returns the list of foundAbstractCMSComponentData
inSearchPageData
. The result is restricted by categoryCode or productCode or catalogCode.- Parameters:
componentIds
- the list of component idcategoryCode
- the optional category codeproductCode
- the optional product codecatalogCode
- the optional catalog codesearchPageData
- the searchPageData contains requested pagination and sorting information- Returns:
- the list of found
AbstractCMSComponentData
inSearchPageData
. If nothing is found the empty list is returned.
-
getAllComponents
SearchPageData<AbstractCMSComponentData> getAllComponents(java.lang.String categoryCode, java.lang.String productCode, java.lang.String catalogCode, SearchPageData searchPageData)
Returns the list of allAbstractCMSComponentData
found inSearchPageData
. The result is restricted by categoryCode or productCode or catalogCode.- Parameters:
categoryCode
- the optional category codeproductCode
- the optional product codecatalogCode
- the optional catalog codesearchPageData
- the searchPageData contains requested pagination and sorting information- Returns:
- the list of found
AbstractCMSComponentData
inSearchPageData
. If nothing is found the empty list is returned.
-
-