Interface CMSItemPropertiesSupplier
-
- All Known Implementing Classes:
AbstractSmarteditItemPropertiesSupplier,AbstractSmarteditItemPropertiesSupplier,CxCMSDynamicAttributeService,CxScriptPropertiesSupplier,SmartEditComponentPropertiesSupplier,SmartEditComponentPropertiesSupplier,SmartEditContentSlotPropertiesSupplier,SmartEditContentSlotPropertiesSupplier,SmartEditPagePropertiesSupplier,SmartEditPagePropertiesSupplier
public interface CMSItemPropertiesSupplierSupplier to provide aMapof properties forCMSItemModel.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.function.Predicate<CMSItemModel>getConstrainedBy()ThePredicateto test whether this supplier can be applied to providedCMSItemModeljava.util.Map<java.lang.String,java.lang.Object>getProperties(CMSItemModel itemModel)Returns aMapof properties.java.lang.StringgroupName()Method to provide the properties' group name.default booleanisEnabled(CMSItemModel itemModel)Method to verify whether properties should be applied or not toCMSItemModel.
-
-
-
Method Detail
-
getConstrainedBy
java.util.function.Predicate<CMSItemModel> getConstrainedBy()
ThePredicateto test whether this supplier can be applied to providedCMSItemModel- Returns:
- the
Predicate
-
getProperties
java.util.Map<java.lang.String,java.lang.Object> getProperties(CMSItemModel itemModel)
Returns aMapof properties.- Parameters:
itemModel- theCMSItemModel- Returns:
- the
Mapof properties.
-
groupName
java.lang.String groupName()
Method to provide the properties' group name.- Returns:
- the properties' group name.
-
isEnabled
default boolean isEnabled(CMSItemModel itemModel)
Method to verify whether properties should be applied or not toCMSItemModel.- Parameters:
itemModel- theCMSItemModel.- Returns:
- true if properties should be applied, false otherwise; default is true.
-
-