Class DefaultCMSDynamicAttributeService
java.lang.Object
de.hybris.platform.acceleratorcms.services.impl.DefaultCMSDynamicAttributeService
- All Implemented Interfaces:
CMSDynamicAttributeService
- Direct Known Subclasses:
CxCMSDynamicAttributeService,PersonalizationDynamicAttributeService
Default implementation of
CMSDynamicAttributeService.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterAllItems(javax.servlet.jsp.PageContext pageContext) getDynamicComponentAttributes(AbstractCMSComponentModel component, ContentSlotModel contentSlot) Resolves dynamic attributes for the provided CMS component.getDynamicContentSlotAttributes(ContentSlotModel contentSlot, javax.servlet.jsp.PageContext pageContext, Map<String, String> initialMaps) Resolves dynamic attributes for the provided content slot.getFallbackElement(CMSItemModel cmsItemModel) Decides a fallback element if no element was provided.
-
Constructor Details
-
DefaultCMSDynamicAttributeService
public DefaultCMSDynamicAttributeService()
-
-
Method Details
-
getDynamicComponentAttributes
public Map<String,String> getDynamicComponentAttributes(AbstractCMSComponentModel component, ContentSlotModel contentSlot) Description copied from interface:CMSDynamicAttributeServiceResolves dynamic attributes for the provided CMS component.- Specified by:
getDynamicComponentAttributesin interfaceCMSDynamicAttributeService- Parameters:
component- the CMS component to resolve dynamic attributes forcontentSlot- the content slot holding the component- Returns:
Mapof dynamic attributes for the given CMS component
-
getDynamicContentSlotAttributes
public Map<String,String> getDynamicContentSlotAttributes(ContentSlotModel contentSlot, javax.servlet.jsp.PageContext pageContext, Map<String, String> initialMaps) Description copied from interface:CMSDynamicAttributeServiceResolves dynamic attributes for the provided content slot.- Specified by:
getDynamicContentSlotAttributesin interfaceCMSDynamicAttributeService- Parameters:
contentSlot- the content slot to resolve dynamic attributes forpageContext- the current page contextinitialMaps- the initial maps- Returns:
Mapof dynamic attributes for the given CMS content slot
-
afterAllItems
public void afterAllItems(javax.servlet.jsp.PageContext pageContext) - Specified by:
afterAllItemsin interfaceCMSDynamicAttributeService- Parameters:
pageContext- the current page context
-
getFallbackElement
Description copied from interface:CMSDynamicAttributeServiceDecides a fallback element if no element was provided.- Specified by:
getFallbackElementin interfaceCMSDynamicAttributeService- Parameters:
cmsItemModel- the CMS item model- Returns:
- the element to create if none provided
-