Class SharedAbstractPageItemCollector

java.lang.Object
de.hybris.platform.cmsfacades.synchronization.itemcollector.SharedAbstractPageItemCollector
All Implemented Interfaces:
ItemCollector<AbstractPageModel>

public class SharedAbstractPageItemCollector extends Object implements ItemCollector<AbstractPageModel>
Collects the shared content slots of a given AbstractPageModel. Returns only those content slots that are from catalog version in the active session.
  • Constructor Details

    • SharedAbstractPageItemCollector

      public SharedAbstractPageItemCollector()
  • Method Details

    • collect

      public List<ItemModel> collect(AbstractPageModel item)
      Description copied from interface: ItemCollector
      Collects the items that are related to a given ItemModel
      Specified by:
      collect in interface ItemCollector<AbstractPageModel>
      Parameters:
      item - the itemModel that will be inspected to return the related item models.
      Returns:
      a list with the related item models, never null.
    • slotFromActiveCatalogVersion

      protected boolean slotFromActiveCatalogVersion(ContentSlotModel slot)
      Verifies that the content slot is from active catalog version.
      Parameters:
      slot - the slot to verify
      Returns:
      true if slot from active catalog version, false otherwise.
    • contentSlotAndVersionExist

      protected boolean contentSlotAndVersionExist(ContentSlotData contentSlotData)
      Verifies that the content slot is available in ContentSlotData object.
      Parameters:
      contentSlotData - the object to verify
      Returns:
      true if content slot available, false otherwise.
    • getContentSlotService

      protected CMSAdminContentSlotService getContentSlotService()
    • setContentSlotService

      public void setContentSlotService(CMSAdminContentSlotService contentSlotService)
    • getContentSlotExistsPredicate

      @Deprecated(since="2105", forRemoval=true) protected Predicate<String> getContentSlotExistsPredicate()
      Deprecated, for removal: This API element is subject to removal in a future version.
      (since = "2105", forRemoval = true)
    • setContentSlotExistsPredicate

      @Deprecated(since="2105", forRemoval=true) public void setContentSlotExistsPredicate(Predicate<String> contentSlotExistsPredicate)
      Deprecated, for removal: This API element is subject to removal in a future version.
      (since = "2105", forRemoval = true)
    • getSynchronizationCacheService

      public SynchronizationCacheService getSynchronizationCacheService()
    • setSynchronizationCacheService

      public void setSynchronizationCacheService(SynchronizationCacheService synchronizationCacheService)
    • getCmsAdminSiteService

      public CMSAdminSiteService getCmsAdminSiteService()
    • setCmsAdminSiteService

      public void setCmsAdminSiteService(CMSAdminSiteService cmsAdminSiteService)