Class DefaultSynchronizationStatusService
java.lang.Object
de.hybris.platform.catalog.synchronization.DefaultSynchronizationStatusService
- All Implemented Interfaces:
SynchronizationStatusService
public class DefaultSynchronizationStatusService
extends Object
implements SynchronizationStatusService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CatalogVersionModelReturns all defined inbound synchronization sync jobs for a given item.Returns all defined outbound synchronization sync jobs for a given item.getSyncInfo(ItemModel item, SyncItemJobModel syncItemJob) Gets theSyncItemStatusfrom the source of the synchronization side defined bysyncItemJobfor a given item.getSyncInfo(ItemModel item, List<SyncItemJobModel> syncItemJobs) Gets theSyncItemStatusfrom the all sources of the synchronization side defined bysyncItemJobsfor a given item.getSyncInfo(List<ItemModel> givenItems, SyncItemJobModel syncItemJob) Gets the list ofSyncItemStatusfrom the source of the synchronization side defined bysyncItemJobfor a given itemsgivenItems.booleanmatchesSyncStatus(List<ItemModel> givenItems, List<SyncItemJobModel> syncItemJobs, SyncItemStatus syncStatus) Convenient method that check whether given items are in one particularSyncItemStatusfor all the sources of the synchronization side defined bysyncItemJobsvoidsetCatalogSynchronizationService(CatalogSynchronizationService catalogSynchronizationService) voidsetCatalogTypeService(CatalogTypeService catalogTypeService) voidsetModelService(ModelService modelService) voidsetSyncJobApplicableTypesStrategy(SyncJobApplicableTypesStrategy syncJobApplicableTypesStrategy)
-
Constructor Details
-
DefaultSynchronizationStatusService
public DefaultSynchronizationStatusService()
-
-
Method Details
-
getSyncInfo
Description copied from interface:SynchronizationStatusServiceGets theSyncItemStatusfrom the all sources of the synchronization side defined bysyncItemJobsfor a given item.- Specified by:
getSyncInfoin interfaceSynchronizationStatusService- Parameters:
item- given itemsyncItemJobs- all synchronization jobs- Returns:
SyncItemStatus
-
getSyncInfo
Description copied from interface:SynchronizationStatusServiceGets theSyncItemStatusfrom the source of the synchronization side defined bysyncItemJobfor a given item.- Specified by:
getSyncInfoin interfaceSynchronizationStatusService- Parameters:
item- given itemsyncItemJob- synchronization jobs- Returns:
SyncItemStatus
-
getOutboundSynchronizations
Description copied from interface:SynchronizationStatusServiceReturns all defined outbound synchronization sync jobs for a given item.- Specified by:
getOutboundSynchronizationsin interfaceSynchronizationStatusService
-
getInboundSynchronizations
Description copied from interface:SynchronizationStatusServiceReturns all defined inbound synchronization sync jobs for a given item.- Specified by:
getInboundSynchronizationsin interfaceSynchronizationStatusService
-
matchesSyncStatus
public boolean matchesSyncStatus(List<ItemModel> givenItems, List<SyncItemJobModel> syncItemJobs, SyncItemStatus syncStatus) Description copied from interface:SynchronizationStatusServiceConvenient method that check whether given items are in one particularSyncItemStatusfor all the sources of the synchronization side defined bysyncItemJobs- Specified by:
matchesSyncStatusin interfaceSynchronizationStatusService- Parameters:
givenItems- list of given itemsyncItemJobs- synchronization jobssyncStatus-SyncItemStatus- Returns:
- true when all items match given status false otherwise
-
getSyncInfo
Description copied from interface:SynchronizationStatusServiceGets the list ofSyncItemStatusfrom the source of the synchronization side defined bysyncItemJobfor a given itemsgivenItems.- Specified by:
getSyncInfoin interfaceSynchronizationStatusService- Parameters:
givenItems- list of given itemsyncItemJob- synchronization jobs- Returns:
SyncItemStatus
-
getCatalogVersionForItem
-
setModelService
-
setCatalogTypeService
-
setCatalogSynchronizationService
public void setCatalogSynchronizationService(CatalogSynchronizationService catalogSynchronizationService) -
setSyncJobApplicableTypesStrategy
public void setSyncJobApplicableTypesStrategy(SyncJobApplicableTypesStrategy syncJobApplicableTypesStrategy)
-