Interface CMSItemPropertiesSupplier

All Known Implementing Classes:
AbstractSmarteditItemPropertiesSupplier, AbstractSmarteditItemPropertiesSupplier, CxCMSDynamicAttributeService, CxScriptPropertiesSupplier, SmartEditComponentPropertiesSupplier, SmartEditComponentPropertiesSupplier, SmartEditContentSlotPropertiesSupplier, SmartEditContentSlotPropertiesSupplier, SmartEditPagePropertiesSupplier, SmartEditPagePropertiesSupplier

public interface CMSItemPropertiesSupplier
Supplier to provide a Map of properties for CMSItemModel.
  • Method Details

    • getConstrainedBy

      Predicate<CMSItemModel> getConstrainedBy()
      The Predicate to test whether this supplier can be applied to provided CMSItemModel
      Returns:
      the Predicate
    • getProperties

      Map<String,Object> getProperties(CMSItemModel itemModel)
      Returns a Map of properties.
      Parameters:
      itemModel - the CMSItemModel
      Returns:
      the Map of properties.
    • groupName

      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 to CMSItemModel.
      Parameters:
      itemModel - the CMSItemModel.
      Returns:
      true if properties should be applied, false otherwise; default is true.