public class CMSSmartEditDynamicAttributeService extends java.lang.Object implements CMSDynamicAttributeService
CMSDynamicAttributeService.| Constructor and Description |
|---|
CMSSmartEditDynamicAttributeService() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterAllItems(PageContext pageContext) |
protected CMSComponentContainerRegistry |
getCmsComponentContainerRegistry() |
java.util.Map<java.lang.String,java.lang.String> |
getDynamicComponentAttributes(AbstractCMSComponentModel component,
ContentSlotModel contentSlot) |
java.util.Map<java.lang.String,java.lang.String> |
getDynamicContentSlotAttributes(ContentSlotModel contentSlot,
PageContext pageContext,
java.util.Map<java.lang.String,java.lang.String> initialMaps) |
java.lang.String |
getFallbackElement(CMSItemModel cmsItemModel)
will wrapp in a div any smarteditcomponent that is neither a NavigationBarComponent nor
NavigationBarCollectionComponent
|
protected SessionService |
getSessionService() |
protected UniqueItemIdentifierService |
getUniqueItemIdentifierService() |
protected boolean |
isEnabled()
Checks if smarteditaddon is enabled by checking the presence of a cmsTicketId in session.
|
void |
setCmsComponentContainerRegistry(CMSComponentContainerRegistry cmsComponentContainerRegistry) |
void |
setSessionService(SessionService sessionService) |
void |
setUniqueItemIdentifierService(UniqueItemIdentifierService uniqueItemIdentifierService) |
protected boolean |
shouldTheComponentBeWrapped(AbstractCMSComponentModel component,
ContentSlotModel contentSlot)
Checks if the current component is neither the direct child of the containing contentSlot not the child of a
AbstractCMSComponentContainerModel, and instead is nested within other CMS component. |
public java.util.Map<java.lang.String,java.lang.String> getDynamicComponentAttributes(AbstractCMSComponentModel component, ContentSlotModel contentSlot)
getDynamicComponentAttributes in interface CMSDynamicAttributeServicecomponent - the CMS component to resolve dynamic attributes forcontentSlot - the content slot holding the componentMap of dynamic attributes for the given CMS componentpublic java.util.Map<java.lang.String,java.lang.String> getDynamicContentSlotAttributes(ContentSlotModel contentSlot, PageContext pageContext, java.util.Map<java.lang.String,java.lang.String> initialMaps)
getDynamicContentSlotAttributes in interface CMSDynamicAttributeServicecontentSlot - the content slot to resolve dynamic attributes forpageContext - the current page contextinitialMaps - the initial mapsMap of dynamic attributes for the given CMS content slotpublic void afterAllItems(PageContext pageContext)
afterAllItems in interface CMSDynamicAttributeServicepageContext - the current page contextpublic java.lang.String getFallbackElement(CMSItemModel cmsItemModel)
getFallbackElement in interface CMSDynamicAttributeServicecmsItemModel - protected boolean isEnabled()
protected boolean shouldTheComponentBeWrapped(AbstractCMSComponentModel component, ContentSlotModel contentSlot)
AbstractCMSComponentContainerModel, and instead is nested within other CMS component.component - The component to verify.contentSlot - The slot containing the current component.AbstractCMSComponentContainerModel, false otherwise.protected SessionService getSessionService()
public void setSessionService(SessionService sessionService)
protected CMSComponentContainerRegistry getCmsComponentContainerRegistry()
public void setCmsComponentContainerRegistry(CMSComponentContainerRegistry cmsComponentContainerRegistry)
protected UniqueItemIdentifierService getUniqueItemIdentifierService()
public void setUniqueItemIdentifierService(UniqueItemIdentifierService uniqueItemIdentifierService)
Copyright © 2018 SAP SE. All Rights Reserved.