Class DefaultComponentItemFacade
- java.lang.Object
-
- de.hybris.platform.cmsfacades.items.impl.DefaultComponentItemFacade
-
- All Implemented Interfaces:
ComponentItemFacade
public class DefaultComponentItemFacade extends java.lang.Object implements ComponentItemFacade
Default implementation ofComponentItemFacade
.
-
-
Constructor Summary
Constructors Constructor Description DefaultComponentItemFacade()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.protected ComponentRenderingService
getComponentRenderingService()
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
.void
setComponentRenderingService(ComponentRenderingService componentRenderingService)
-
-
-
Method Detail
-
getComponentById
public AbstractCMSComponentData getComponentById(java.lang.String componentId, java.lang.String categoryCode, java.lang.String productCode, java.lang.String catalogCode) throws CMSItemNotFoundException
Description copied from interface:ComponentItemFacade
Returns theAbstractCMSComponentData
object by component id restricted by categoryCode or productCode or catalogCode.- Specified by:
getComponentById
in interfaceComponentItemFacade
- 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
public SearchPageData<AbstractCMSComponentData> getComponentsByIds(java.util.Collection<java.lang.String> componentIds, java.lang.String categoryCode, java.lang.String productCode, java.lang.String catalogCode, SearchPageData searchPageData)
Description copied from interface:ComponentItemFacade
Returns the list of foundAbstractCMSComponentData
inSearchPageData
. WhencomponentIds
is empty, this method search for all components instead. The result is restricted by categoryCode or productCode or catalogCode.- Specified by:
getComponentsByIds
in interfaceComponentItemFacade
- 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.
-
getComponentRenderingService
protected ComponentRenderingService getComponentRenderingService()
-
setComponentRenderingService
public void setComponentRenderingService(ComponentRenderingService componentRenderingService)
-
-