public class DefaultSynchronizationStatusService extends java.lang.Object implements SynchronizationStatusService
| Constructor and Description |
|---|
DefaultSynchronizationStatusService() |
| Modifier and Type | Method and Description |
|---|---|
protected CatalogVersionModel |
getCatalogVersionForItem(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.
|
java.util.List<SyncItemInfo> |
getSyncInfo(ItemModel item,
java.util.List<SyncItemJobModel> syncItemJobs)
Gets the
SyncItemStatus from the all sources of the synchronization side defined by
syncItemJobs for a given item. |
SyncItemInfo |
getSyncInfo(ItemModel item,
SyncItemJobModel syncItemJob)
Gets the
SyncItemStatus from the source of the synchronization side defined by syncItemJob
for a given item. |
java.util.List<SyncItemInfo> |
getSyncInfo(java.util.List<ItemModel> givenItems,
SyncItemJobModel syncItemJob)
Gets the list of
SyncItemStatus from the source of the synchronization side defined by
syncItemJob for a given items givenItems. |
boolean |
matchesSyncStatus(java.util.List<ItemModel> givenItems,
java.util.List<SyncItemJobModel> syncItemJobs,
SyncItemStatus syncStatus)
Convenient method that check whether given items are in one particular
SyncItemStatus for all the sources
of the synchronization side defined by syncItemJobs |
void |
setCatalogSynchronizationService(CatalogSynchronizationService catalogSynchronizationService) |
void |
setCatalogTypeService(CatalogTypeService catalogTypeService) |
void |
setModelService(ModelService modelService) |
void |
setSyncJobApplicableTypesStrategy(SyncJobApplicableTypesStrategy syncJobApplicableTypesStrategy) |
public java.util.List<SyncItemInfo> getSyncInfo(ItemModel item, java.util.List<SyncItemJobModel> syncItemJobs)
SynchronizationStatusServiceSyncItemStatus from the all sources of the synchronization side defined by
syncItemJobs for a given item.getSyncInfo in interface SynchronizationStatusServiceitem - given itemsyncItemJobs - all synchronization jobsSyncItemStatuspublic SyncItemInfo getSyncInfo(ItemModel item, SyncItemJobModel syncItemJob)
SynchronizationStatusServiceSyncItemStatus from the source of the synchronization side defined by syncItemJob
for a given item.getSyncInfo in interface SynchronizationStatusServiceitem - given itemsyncItemJob - synchronization jobsSyncItemStatuspublic java.util.List<SyncItemJobModel> getOutboundSynchronizations(ItemModel item)
SynchronizationStatusServicegetOutboundSynchronizations in interface SynchronizationStatusServicepublic java.util.List<SyncItemJobModel> getInboundSynchronizations(ItemModel item)
SynchronizationStatusServicegetInboundSynchronizations in interface SynchronizationStatusServicepublic boolean matchesSyncStatus(java.util.List<ItemModel> givenItems, java.util.List<SyncItemJobModel> syncItemJobs, SyncItemStatus syncStatus)
SynchronizationStatusServiceSyncItemStatus for all the sources
of the synchronization side defined by syncItemJobsmatchesSyncStatus in interface SynchronizationStatusServicegivenItems - list of given itemsyncItemJobs - synchronization jobssyncStatus - SyncItemStatuspublic java.util.List<SyncItemInfo> getSyncInfo(java.util.List<ItemModel> givenItems, SyncItemJobModel syncItemJob)
SynchronizationStatusServiceSyncItemStatus from the source of the synchronization side defined by
syncItemJob for a given items givenItems.getSyncInfo in interface SynchronizationStatusServicegivenItems - list of given itemsyncItemJob - synchronization jobsSyncItemStatusprotected CatalogVersionModel getCatalogVersionForItem(ItemModel item)
public void setModelService(ModelService modelService)
public void setCatalogTypeService(CatalogTypeService catalogTypeService)
public void setCatalogSynchronizationService(CatalogSynchronizationService catalogSynchronizationService)
public void setSyncJobApplicableTypesStrategy(SyncJobApplicableTypesStrategy syncJobApplicableTypesStrategy)
Copyright © 2018 SAP SE. All Rights Reserved.