Interface ItemCollector<T extends ItemModel>

Type Parameters:
T - the type parameter which extends the ItemModel type
All Known Implementing Classes:
BasicAbstractPageItemCollector, BasicContentSlotItemCollector, DependentAbstractPageItemCollector, SharedAbstractPageItemCollector

public interface ItemCollector<T extends ItemModel>
Interface definition for CMS Item Collectors. For generic purposes, this interface can be used to identify related items for a given item model.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<? extends ItemModel>
    collect(T item)
    Collects the items that are related to a given ItemModel
  • Method Details

    • collect

      List<? extends ItemModel> collect(T item)
      Collects the items that are related to a given ItemModel
      Parameters:
      item - the itemModel that will be inspected to return the related item models.
      Returns:
      a list with the related item models, never null.
      Throws:
      NullPointerException - if item is null.