Class DefaultComponentItemFacade
java.lang.Object
de.hybris.platform.cmsfacades.items.impl.DefaultComponentItemFacade
- All Implemented Interfaces:
ComponentItemFacade
Default implementation of
ComponentItemFacade.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComponentById(String componentId, String categoryCode, String productCode, String catalogCode) Returns theAbstractCMSComponentDataobject by component id restricted by categoryCode or productCode or catalogCode.protected ComponentRenderingServicegetComponentsByIds(Collection<String> componentIds, String categoryCode, String productCode, String catalogCode, SearchPageData searchPageData) Returns the list of foundAbstractCMSComponentDatainSearchPageData.voidsetCmsVersionSessionContextProvider(CMSVersionSessionContextProvider cmsVersionSessionContextProvider) voidsetComponentRenderingService(ComponentRenderingService componentRenderingService) voidsetPermissionCachedCRUDService(PermissionCachedCRUDService permissionCachedCRUDService)
-
Constructor Details
-
DefaultComponentItemFacade
public DefaultComponentItemFacade()
-
-
Method Details
-
getComponentById
public AbstractCMSComponentData getComponentById(String componentId, String categoryCode, String productCode, String catalogCode) throws CMSItemNotFoundException Description copied from interface:ComponentItemFacadeReturns theAbstractCMSComponentDataobject by component id restricted by categoryCode or productCode or catalogCode.- Specified by:
getComponentByIdin interfaceComponentItemFacade- Parameters:
componentId- the component idcategoryCode- the optional category codeproductCode- the optional product codecatalogCode- the optional catalog code- Returns:
- the
AbstractCMSComponentDataobject - Throws:
CMSItemNotFoundException- if the component is restricted or not visible.
-
getComponentsByIds
public SearchPageData<AbstractCMSComponentData> getComponentsByIds(Collection<String> componentIds, String categoryCode, String productCode, String catalogCode, SearchPageData searchPageData) Description copied from interface:ComponentItemFacadeReturns the list of foundAbstractCMSComponentDatainSearchPageData. WhencomponentIdsis empty, this method search for all components instead. The result is restricted by categoryCode or productCode or catalogCode.- Specified by:
getComponentsByIdsin 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
AbstractCMSComponentDatainSearchPageData. If nothing is found the empty list is returned.
-
getComponentRenderingService
-
setComponentRenderingService
-
getPermissionCachedCRUDService
-
setPermissionCachedCRUDService
-
getCmsVersionSessionContextProvider
-
setCmsVersionSessionContextProvider
public void setCmsVersionSessionContextProvider(CMSVersionSessionContextProvider cmsVersionSessionContextProvider)
-