Class CxCMSDynamicAttributeService
java.lang.Object
de.hybris.platform.acceleratorcms.services.impl.DefaultCMSDynamicAttributeService
de.hybris.platform.personalizationcms.service.CxCMSDynamicAttributeService
- All Implemented Interfaces:
CMSDynamicAttributeService,CMSItemPropertiesSupplier
public class CxCMSDynamicAttributeService
extends DefaultCMSDynamicAttributeService
implements CMSItemPropertiesSupplier
CxCMS service extending the
DefaultCMSDynamicAttributeService.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final CxCMSDynamicAttributeService.AttributeNamesprotected static final CxCMSDynamicAttributeService.AttributeNames -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThePredicateto test whether this supplier can be applied to providedCMSItemModelgetDynamicComponentAttributes(AbstractCMSComponentModel component, ContentSlotModel contentSlot) Resolves dynamic attributes for the provided CMS component.getProperties(CMSItemModel itemModel) Returns aMapof properties.protected SessionServiceMethod to provide the properties' group name.booleanisEnabled(CMSItemModel itemModel) Method to verify whether properties should be applied or not toCMSItemModel.protected voidpopulatePropertiesMap(Map<String, ? super String> result, CMSItemModel itemModel, CxCMSDynamicAttributeService.AttributeNames names) voidsetSessionService(SessionService sessionService) Methods inherited from class de.hybris.platform.acceleratorcms.services.impl.DefaultCMSDynamicAttributeService
afterAllItems, getDynamicContentSlotAttributes, getFallbackElement
-
Field Details
-
GROUP_NAME
- See Also:
-
JSP_NAMES
-
SPA_NAMES
-
-
Constructor Details
-
CxCMSDynamicAttributeService
public CxCMSDynamicAttributeService()
-
-
Method Details
-
groupName
Description copied from interface:CMSItemPropertiesSupplierMethod to provide the properties' group name.- Specified by:
groupNamein interfaceCMSItemPropertiesSupplier- Returns:
- the properties' group name.
-
getConstrainedBy
Description copied from interface:CMSItemPropertiesSupplierThePredicateto test whether this supplier can be applied to providedCMSItemModel- Specified by:
getConstrainedByin interfaceCMSItemPropertiesSupplier- Returns:
- the
Predicate
-
getProperties
Description copied from interface:CMSItemPropertiesSupplierReturns aMapof properties.- Specified by:
getPropertiesin interfaceCMSItemPropertiesSupplier- Parameters:
itemModel- theCMSItemModel- Returns:
- the
Mapof properties.
-
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- Overrides:
getDynamicComponentAttributesin classDefaultCMSDynamicAttributeService- 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
-
populatePropertiesMap
protected void populatePropertiesMap(Map<String, ? super String> result, CMSItemModel itemModel, CxCMSDynamicAttributeService.AttributeNames names) -
isEnabled
Description copied from interface:CMSItemPropertiesSupplierMethod to verify whether properties should be applied or not toCMSItemModel.- Specified by:
isEnabledin interfaceCMSItemPropertiesSupplier- Parameters:
itemModel- theCMSItemModel.- Returns:
- true if properties should be applied, false otherwise; default is true.
-
setSessionService
-
getSessionService
-