Interface CMSVersionHelper

All Known Implementing Classes:
DefaultCMSVersionHelper

public interface CMSVersionHelper
Interface for AttributeDescriptorModel helper functions related to versioning.
  • Method Details

    • isCollectionAttribute

      @Deprecated(since="1811", forRemoval=true) boolean isCollectionAttribute(AttributeDescriptorModel attribute)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 1811, please use IsCollectionAttributePredicate
      Will return true if this property is a collection (localized or not) as per our platform type system.
      Parameters:
      attribute - the AttributeDescriptorModel describing the metadata of the property of a class.
      Returns:
      a boolean
    • getSerializableAttributes

      List<AttributeDescriptorModel> getSerializableAttributes(ItemModel itemModel)
      Returns a list of all local and super attributes for a given ItemModel.
      Parameters:
      itemModel - the ItemModel.
      Returns:
      List of attributes
    • getAttributesNotVersion

      default List<String> getAttributesNotVersion(ItemModel itemModel)
      Return itemModel's attributes which should not been versioned
      Parameters:
      itemModel - ItemModel to be searched for.
      Returns:
      List of attributes will not been versioned