Interface CMSDynamicAttributeService
- All Known Implementing Classes:
CMSSmartEditDynamicAttributeService,CxCMSDynamicAttributeService,DefaultCMSDynamicAttributeService,PersonalizationDynamicAttributeService
public interface CMSDynamicAttributeService
Service interface providing methods to resolve dynamic attributes for CMS components and content slots.
-
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.
-
Method Details
-
getDynamicComponentAttributes
Map<String,String> getDynamicComponentAttributes(AbstractCMSComponentModel component, ContentSlotModel contentSlot) Resolves dynamic attributes for the provided CMS component.- 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
Map<String,String> getDynamicContentSlotAttributes(ContentSlotModel contentSlot, javax.servlet.jsp.PageContext pageContext, Map<String, String> initialMaps) Resolves dynamic attributes for the provided content slot.- 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
void afterAllItems(javax.servlet.jsp.PageContext pageContext) - Parameters:
pageContext- the current page context
-
getFallbackElement
Decides a fallback element if no element was provided.- Parameters:
cmsItemModel- the CMS item model- Returns:
- the element to create if none provided
-