Interface ItemSynchronizationService
-
- All Known Implementing Classes:
DefaultItemSynchronizationService
public interface ItemSynchronizationServiceTheItemSynchronizationServiceis responsible for getting the synchronization status details for an item.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SynchronizationItemDetailsDatagetSynchronizationItemStatus(SyncRequestData syncRequestData, ItemModel item)Gets the synchronization item status for a givenItemModeltaking in consideration the source and target catalog versions.voidperformItemSynchronization(SyncRequestData syncRequestData, java.util.List<ItemModel> items, SyncConfig config)performs the synchronization of a list ofItemModeltaking in consideration the source and target catalog versions.
-
-
-
Method Detail
-
getSynchronizationItemStatus
SynchronizationItemDetailsData getSynchronizationItemStatus(SyncRequestData syncRequestData, ItemModel item)
Gets the synchronization item status for a givenItemModeltaking in consideration the source and target catalog versions. Implementations should be able to provide details of the synchronization status of related items as well.- Parameters:
syncRequestData- the synchronization request containing the source and target catalog versionsitem- the item model we are interested in getting the synchronization status- Returns:
- an instance of
SynchronizationItemDetailsData, nevernull. - Throws:
java.lang.IllegalArgumentException- when any of the given parameters isnull.
-
performItemSynchronization
void performItemSynchronization(SyncRequestData syncRequestData, java.util.List<ItemModel> items, SyncConfig config)
performs the synchronization of a list ofItemModeltaking in consideration the source and target catalog versions. Implementations should be able to provide details of the synchronization status of related items as well.- Parameters:
syncRequestData- the synchronization request containing the source and target catalog versionsitems- the list of item models that we want to synchronizeconfig- the synchronization configuration . SeeSyncConfigfor more details.
-
-