Class DefaultSynchronizationStatusService
- java.lang.Object
-
- de.hybris.platform.catalog.synchronization.DefaultSynchronizationStatusService
-
- All Implemented Interfaces:
SynchronizationStatusService
public class DefaultSynchronizationStatusService extends java.lang.Object implements SynchronizationStatusService
-
-
Constructor Summary
Constructors Constructor Description DefaultSynchronizationStatusService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CatalogVersionModelgetCatalogVersionForItem(ItemModel item)java.util.List<SyncItemJobModel>getInboundSynchronizations(ItemModel item)Returns all defined inbound synchronization sync jobs for a given item.java.util.List<SyncItemJobModel>getOutboundSynchronizations(ItemModel item)Returns all defined outbound synchronization sync jobs for a given item.SyncItemInfogetSyncInfo(ItemModel item, SyncItemJobModel syncItemJob)Gets theSyncItemStatusfrom the source of the synchronization side defined bysyncItemJobfor a given item.java.util.List<SyncItemInfo>getSyncInfo(ItemModel item, java.util.List<SyncItemJobModel> syncItemJobs)Gets theSyncItemStatusfrom the all sources of the synchronization side defined bysyncItemJobsfor a given item.java.util.List<SyncItemInfo>getSyncInfo(java.util.List<ItemModel> givenItems, SyncItemJobModel syncItemJob)Gets the list ofSyncItemStatusfrom the source of the synchronization side defined bysyncItemJobfor a given itemsgivenItems.booleanmatchesSyncStatus(java.util.List<ItemModel> givenItems, java.util.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)
-
-
-
Method Detail
-
getSyncInfo
public java.util.List<SyncItemInfo> getSyncInfo(ItemModel item, java.util.List<SyncItemJobModel> syncItemJobs)
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
public SyncItemInfo getSyncInfo(ItemModel item, SyncItemJobModel syncItemJob)
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
public java.util.List<SyncItemJobModel> getOutboundSynchronizations(ItemModel item)
Description copied from interface:SynchronizationStatusServiceReturns all defined outbound synchronization sync jobs for a given item.- Specified by:
getOutboundSynchronizationsin interfaceSynchronizationStatusService
-
getInboundSynchronizations
public java.util.List<SyncItemJobModel> getInboundSynchronizations(ItemModel item)
Description copied from interface:SynchronizationStatusServiceReturns all defined inbound synchronization sync jobs for a given item.- Specified by:
getInboundSynchronizationsin interfaceSynchronizationStatusService
-
matchesSyncStatus
public boolean matchesSyncStatus(java.util.List<ItemModel> givenItems, java.util.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
public java.util.List<SyncItemInfo> getSyncInfo(java.util.List<ItemModel> givenItems, SyncItemJobModel syncItemJob)
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
protected CatalogVersionModel getCatalogVersionForItem(ItemModel item)
-
setModelService
public void setModelService(ModelService modelService)
-
setCatalogTypeService
public void setCatalogTypeService(CatalogTypeService catalogTypeService)
-
setCatalogSynchronizationService
public void setCatalogSynchronizationService(CatalogSynchronizationService catalogSynchronizationService)
-
setSyncJobApplicableTypesStrategy
public void setSyncJobApplicableTypesStrategy(SyncJobApplicableTypesStrategy syncJobApplicableTypesStrategy)
-
-