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 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 for
      contentSlot - the content slot holding the component
      Returns:
      Map of 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 for
      pageContext - the current page context
      initialMaps - the initial maps
      Returns:
      Map of dynamic attributes for the given CMS content slot
    • afterAllItems

      void afterAllItems(javax.servlet.jsp.PageContext pageContext)
      Parameters:
      pageContext - the current page context
    • getFallbackElement

      String getFallbackElement(CMSItemModel cmsItemModel)
      Decides a fallback element if no element was provided.
      Parameters:
      cmsItemModel - the CMS item model
      Returns:
      the element to create if none provided