Class SharedAbstractPageItemCollector
- java.lang.Object
-
- de.hybris.platform.cmsfacades.synchronization.itemcollector.SharedAbstractPageItemCollector
-
- All Implemented Interfaces:
ItemCollector<AbstractPageModel>
public class SharedAbstractPageItemCollector extends java.lang.Object implements ItemCollector<AbstractPageModel>
Collects the shared content slots of a givenAbstractPageModel. Returns only those content slots that are from catalog version in the active session.
-
-
Constructor Summary
Constructors Constructor Description SharedAbstractPageItemCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<ItemModel>collect(AbstractPageModel item)Collects the items that are related to a givenItemModelprotected booleancontentSlotAndVersionExist(ContentSlotData contentSlotData)Verifies that the content slot is available inContentSlotDataobject.CMSAdminSiteServicegetCmsAdminSiteService()protected java.util.function.Predicate<java.lang.String>getContentSlotExistsPredicate()Deprecated, for removal: This API element is subject to removal in a future version.protected CMSAdminContentSlotServicegetContentSlotService()SynchronizationCacheServicegetSynchronizationCacheService()voidsetCmsAdminSiteService(CMSAdminSiteService cmsAdminSiteService)voidsetContentSlotExistsPredicate(java.util.function.Predicate<java.lang.String> contentSlotExistsPredicate)Deprecated, for removal: This API element is subject to removal in a future version.voidsetContentSlotService(CMSAdminContentSlotService contentSlotService)voidsetSynchronizationCacheService(SynchronizationCacheService synchronizationCacheService)protected booleanslotFromActiveCatalogVersion(ContentSlotModel slot)Verifies that the content slot is from active catalog version.
-
-
-
Method Detail
-
collect
public java.util.List<ItemModel> collect(AbstractPageModel item)
Description copied from interface:ItemCollectorCollects the items that are related to a givenItemModel- Specified by:
collectin interfaceItemCollector<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 inContentSlotDataobject.- 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 java.util.function.Predicate<java.lang.String> getContentSlotExistsPredicate()Deprecated, for removal: This API element is subject to removal in a future version.
-
setContentSlotExistsPredicate
@Deprecated(since="2105", forRemoval=true) public void setContentSlotExistsPredicate(java.util.function.Predicate<java.lang.String> contentSlotExistsPredicate)Deprecated, for removal: This API element is subject to removal in a future version.
-
getSynchronizationCacheService
public SynchronizationCacheService getSynchronizationCacheService()
-
setSynchronizationCacheService
public void setSynchronizationCacheService(SynchronizationCacheService synchronizationCacheService)
-
getCmsAdminSiteService
public CMSAdminSiteService getCmsAdminSiteService()
-
setCmsAdminSiteService
public void setCmsAdminSiteService(CMSAdminSiteService cmsAdminSiteService)
-
-