Interface CMSItemPropertiesSupplier

    • Method Detail

      • getConstrainedBy

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

        java.util.Map<java.lang.String,​java.lang.Object> getProperties​(CMSItemModel itemModel)
        Returns a Map of properties.
        Parameters:
        itemModel - the CMSItemModel
        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 to CMSItemModel.
        Parameters:
        itemModel - the CMSItemModel.
        Returns:
        true if properties should be applied, false otherwise; default is true.