Interface CMSItemPropertiesSupplier
-
- All Known Implementing Classes:
AbstractSmarteditItemPropertiesSupplier
,CxCMSDynamicAttributeService
,CxScriptPropertiesSupplier
,SmartEditComponentPropertiesSupplier
,SmartEditContentSlotPropertiesSupplier
,SmartEditPagePropertiesSupplier
public interface CMSItemPropertiesSupplier
Supplier to provide aMap
of properties forCMSItemModel
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.function.Predicate<CMSItemModel>
getConstrainedBy()
ThePredicate
to test whether this supplier can be applied to providedCMSItemModel
java.util.Map<java.lang.String,java.lang.Object>
getProperties(CMSItemModel itemModel)
Returns aMap
of properties.java.lang.String
groupName()
Method to provide the properties' group name.default boolean
isEnabled(CMSItemModel itemModel)
Method to verify whether properties should be applied or not toCMSItemModel
.
-
-
-
Method Detail
-
getConstrainedBy
java.util.function.Predicate<CMSItemModel> getConstrainedBy()
ThePredicate
to 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 aMap
of properties.- Parameters:
itemModel
- theCMSItemModel
- Returns:
- the
Map
of 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.
-
-