public class DefaultComponentRenderingService extends java.lang.Object implements ComponentRenderingService
ComponentRenderingService.| Constructor and Description |
|---|
DefaultComponentRenderingService() |
public AbstractCMSComponentData getComponentById(java.lang.String componentId, java.lang.String categoryCode, java.lang.String productCode, java.lang.String catalogCode) throws CMSItemNotFoundException
ComponentRenderingServiceAbstractCMSComponentData object by component id restricted by categoryCode or productCode or catalogCode.getComponentById in interface ComponentRenderingServicecomponentId - the component idcategoryCode - the optional category codeproductCode - the optional product codecatalogCode - the optional catalog codeAbstractCMSComponentData objectCMSItemNotFoundException - if the component is restricted or not visible.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)
ComponentRenderingServiceAbstractCMSComponentData in SearchPageData. The result is restricted by categoryCode or productCode or catalogCode.getComponentsByIds in interface ComponentRenderingServicecomponentIds - the list of component idcategoryCode - the optional category codeproductCode - the optional product codecatalogCode - the optional catalog codesearchPageData - the searchPageData contains requested pagination and sorting informationAbstractCMSComponentData in SearchPageData. If nothing is found the empty list is returned.protected void validateParameters(java.lang.String categoryCode,
java.lang.String productCode,
java.lang.String catalogCode)
protected SearchPageData<AbstractCMSComponentData> getComponentsData(SearchPageData<AbstractCMSComponentModel> componentsSearchData, RestrictionData restrictionData)
AbstractCMSComponentData in SearchPageData based on
RestrictionData object. If nothing is found then the empty list is returned.componentsSearchData - restrictionData - AbstractCMSComponentData in SearchPageData.protected java.util.Optional<AbstractCMSComponentData> getComponentData(AbstractCMSComponentModel componentModel, RestrictionData restrictionData)
AbstractCMSComponentData dto based on AbstractCMSComponentModel and
RestrictionData. When the component is not visible based on the restriction, an empty Optional is
returned.componentModel - the AbstractCMSComponentModel object.restrictionData - the RestrictionData object determining whether the component is visible or not.Optional of AbstractCMSComponentData object; return Optional#empty() when the
component is not visibleprotected CMSDataFactory getCmsDataFactory()
public void setCmsDataFactory(CMSDataFactory cmsDataFactory)
protected CMSComponentService getCmsComponentService()
public void setCmsComponentService(CMSComponentService cmsComponentService)
protected Converter<AbstractCMSComponentModel,AbstractCMSComponentData> getComponentRenderingConverter()
public void setComponentRenderingConverter(Converter<AbstractCMSComponentModel,AbstractCMSComponentData> componentRenderingConverter)
protected RestrictionAwareService getRestrictionAwareService()
public void setRestrictionAwareService(RestrictionAwareService restrictionAwareService)
protected FacadeValidationService getFacadeValidationService()
public void setFacadeValidationService(FacadeValidationService facadeValidationService)
protected Validator getRenderingComponentValidator()
public void setRenderingComponentValidator(Validator renderingComponentValidator)
protected RenderingVisibilityService getRenderingVisibilityService()
public void setRenderingVisibilityService(RenderingVisibilityService renderingVisibilityService)
Copyright © 2018 SAP SE. All Rights Reserved.