Class TravelAddOnCMSComponentRender<C extends AbstractCMSComponentModel>
java.lang.Object
de.hybris.platform.addonsupport.renderer.impl.DefaultAddOnCMSComponentRenderer<C>
de.hybris.platform.travelacceleratorstorefront.component.renderer.DefaultAddOnSubstitutingCMSComponentRenderer<C>
de.hybris.platform.travelacceleratorstorefront.component.renderer.TravelAddOnCMSComponentRender<C>
- Type Parameters:
C- The Item Type that we are handling - the item type is used to determine the correct extension so there may be a requirement to have multiple types that are the same, but in different extensions.
- All Implemented Interfaces:
de.hybris.platform.acceleratorcms.component.renderer.CMSComponentRenderer<C>
public class TravelAddOnCMSComponentRender<C extends AbstractCMSComponentModel>
extends DefaultAddOnSubstitutingCMSComponentRenderer<C>
Extends the standard so that when the standard page level variables are created
for a renderer, the 'extension' and 'experience' (desktop,mobile,etc) are added to the page variables. This is so
that the addon handling can locate additional view jsps and tags within the application as the standard renderers
expect everything to be in the acceleratoraddon's standard location - even though additional content is copied in
there from the other extensions.
This means that any standard OOTB template can now access non-OOTB resources. The limitation is that a new Item Type
needs to be created per extension, with the associated rendering / mapping wiring specified.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexposeVariables(javax.servlet.jsp.PageContext pageContext, C component) Methods inherited from class de.hybris.platform.travelacceleratorstorefront.component.renderer.DefaultAddOnSubstitutingCMSComponentRenderer
getAddonUiExtensionName, getExtensionSubstitutionService, getUIExperienceFolder, renderComponent, setExtensionSubstitutionServiceMethods inherited from class de.hybris.platform.addonsupport.renderer.impl.DefaultAddOnCMSComponentRenderer
getBean, getCmsComponentFolder, getCmsComponentService, getModelService, getRequestContextData, getScopeForVariableName, getTypeCode, getTypeService, getUiExperienceService, getUiExperienceViewPrefixMap, getUnknownUiExperiencePrefix, getVariablesToExpose, getView, getViewResourceName, setCmsComponentFolder, setCmsComponentService, setModelService, setTypeService, setUiExperienceService, setUiExperienceViewPrefixMap, setUnknownUiExperiencePrefix, unExposeVariables
-
Constructor Details
-
TravelAddOnCMSComponentRender
public TravelAddOnCMSComponentRender()
-
-
Method Details