Interface ItemSynchronizationFacade
-
- All Known Implementing Classes:
DefaultItemSynchronizationFacade
public interface ItemSynchronizationFacadeTheItemSynchronizationFacadefacade is responsible for providing methods for getting the synchronization status of a specificItemModel.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SyncItemStatusDatagetSynchronizationItemStatus(SyncRequestData syncRequestData, ItemSynchronizationData itemSynchronizationData)Retrieves the synchronization status for a givenItemModel.SyncItemStatusDatagetSynchronizationItemStatus(SyncRequestData syncRequestData, ItemSynchronizationData itemSynchronizationData, SyncItemStatusConfig config)Retrieves the synchronization status for a givenItemModel.voidperformItemSynchronization(SyncRequestData syncRequestData, SynchronizationData synchronizationData)Performs the synchronization for a list ofItemModel.voidperformItemSynchronization(SyncRequestData syncRequestData, SynchronizationData synchronizationData, SyncConfig config)Performs the synchronization for a list ofItemModel.
-
-
-
Method Detail
-
getSynchronizationItemStatus
SyncItemStatusData getSynchronizationItemStatus(SyncRequestData syncRequestData, ItemSynchronizationData itemSynchronizationData)
Retrieves the synchronization status for a givenItemModel. In the method signature the client needs to provide theSyncRequestDatawhich contains the source and target catalog versions. The implementation should provide a default maximum depth property to prevent the mechanism to crawl too many items.- Parameters:
syncRequestData- the synchronization request containing the source and target catalog versionsitemSynchronizationData- the pair of identifier/type to retrieve theItemModelof which we want to get the synchronization status- Returns:
- the synchronization status details for a given
ItemModel. - Throws:
java.lang.IllegalArgumentException- when the default maximum depth configuration is not greater than zero.
-
getSynchronizationItemStatus
SyncItemStatusData getSynchronizationItemStatus(SyncRequestData syncRequestData, ItemSynchronizationData itemSynchronizationData, SyncItemStatusConfig config)
Retrieves the synchronization status for a givenItemModel. In the method signature the client needs to provide theSyncRequestDatawhich contains the source and target catalog versions. This method lets the client decide what is the maximum depth level to navigate on the item's dependencies.- Parameters:
syncRequestData- the synchronization request containing the source and target catalog versionsitemSynchronizationData- the pair of identifier/type to retrieve theItemModelof which we want to get the synchronization statusconfig- the get status configuration. SeeSyncItemStatusConfigfor more details.- Returns:
- the synchronization status details for a given
ItemModel. - Throws:
java.lang.IllegalArgumentException- when the maximum depth configuration is not greater than zero.
-
performItemSynchronization
void performItemSynchronization(SyncRequestData syncRequestData, SynchronizationData synchronizationData)
Performs the synchronization for a list ofItemModel. In the method signature the client needs to provide theSyncRequestDatawhich contains the source and target catalog versions.- Parameters:
syncRequestData- the synchronization request containing the source and target catalog versionssynchronizationData- contains the list ofItemSynchronizationDatapairs of itemId/itemType that we want to synchronize
-
performItemSynchronization
void performItemSynchronization(SyncRequestData syncRequestData, SynchronizationData synchronizationData, SyncConfig config)
Performs the synchronization for a list ofItemModel. In the method signature the client needs to provide theSyncRequestDatawhich contains the source and target catalog versions.- Parameters:
syncRequestData- the synchronization request containing the source and target catalog versionssynchronizationData- contains the list of pairs ofItemSynchronizationDataitemId/itemType that we want to synchronizeconfig- the synchronization configuration . SeeSyncConfigfor more details.
-
-