Interface ItemSynchronizationService
- All Known Implementing Classes:
DefaultItemSynchronizationService
public interface ItemSynchronizationService
The
ItemSynchronizationService is responsible for getting the synchronization status details for an item.-
Method Summary
Modifier and TypeMethodDescriptiongetSynchronizationItemStatus(SyncRequestData syncRequestData, ItemModel item) Gets the synchronization item status for a givenItemModeltaking in consideration the source and target catalog versions.voidperformItemSynchronization(SyncRequestData syncRequestData, List<ItemModel> items, SyncConfig config) performs the synchronization of a list ofItemModeltaking in consideration the source and target catalog versions.
-
Method Details
-
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:
IllegalArgumentException- when any of the given parameters isnull.
-
performItemSynchronization
void performItemSynchronization(SyncRequestData syncRequestData, 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.
-