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 AbstractCMSComponentDatagetComponentById(java.lang.String componentId, java.lang.String categoryCode, java.lang.String productCode, java.lang.String catalogCode)Returns theAbstractCMSComponentDataobject by component id restricted by categoryCode or productCode or catalogCode.protected ComponentRenderingServicegetComponentRenderingService()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 foundAbstractCMSComponentDatainSearchPageData.PermissionCachedCRUDServicegetPermissionCachedCRUDService()voidsetComponentRenderingService(ComponentRenderingService componentRenderingService)voidsetPermissionCachedCRUDService(PermissionCachedCRUDService permissionCachedCRUDService)
-
-
-
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: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(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: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
protected ComponentRenderingService getComponentRenderingService()
-
setComponentRenderingService
public void setComponentRenderingService(ComponentRenderingService componentRenderingService)
-
getPermissionCachedCRUDService
public PermissionCachedCRUDService getPermissionCachedCRUDService()
-
setPermissionCachedCRUDService
public void setPermissionCachedCRUDService(PermissionCachedCRUDService permissionCachedCRUDService)
-
-