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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollect(AbstractPageModel item) Collects the items that are related to a givenItemModelprotected booleancontentSlotAndVersionExist(ContentSlotData contentSlotData) Verifies that the content slot is available inContentSlotDataobject.Deprecated, for removal: This API element is subject to removal in a future version.(since = "2105", forRemoval = true)protected CMSAdminContentSlotServicevoidsetCmsAdminSiteService(CMSAdminSiteService cmsAdminSiteService) voidsetContentSlotExistsPredicate(Predicate<String> contentSlotExistsPredicate) Deprecated, for removal: This API element is subject to removal in a future version.(since = "2105", forRemoval = true)voidsetContentSlotService(CMSAdminContentSlotService contentSlotService) voidsetSynchronizationCacheService(SynchronizationCacheService synchronizationCacheService) protected booleanVerifies that the content slot is from active catalog version.
-
Constructor Details
-
SharedAbstractPageItemCollector
public SharedAbstractPageItemCollector()
-
-
Method Details
-
collect
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
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
Verifies that the content slot is available inContentSlotDataobject.- Parameters:
contentSlotData- the object to verify- Returns:
- true if content slot available, false otherwise.
-
getContentSlotService
-
setContentSlotService
-
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
-
setSynchronizationCacheService
-
getCmsAdminSiteService
-
setCmsAdminSiteService
-