public interface CatalogSynchronizationService
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSynchronize(SyncItemJobModel syncJob,
PrincipalModel principal)
Returns true if the principal has sync permissions to synchronize between catalog versions from given sync job.
|
java.util.List<ItemModel> |
getApplicableItems(java.util.List<ItemModel> givenItems,
SyncItemJobModel syncItemJob)
Filters given items returning only the ones being applicable to the given sync job.
|
<T extends ItemModel> |
getSynchronizationSourceFor(SyncItemJobModel theSyncJob,
ItemModel target)
Returns the counterpart for the
target item against given sync job theSyncJob. |
ItemSyncTimestampModel |
getSynchronizationSourceTimestampFor(SyncItemJobModel theSyncJob,
ItemModel source)
Returns the existing
ItemSyncTimestampModel for the source item in the scope of the given
sync job. |
<T extends ItemModel> |
getSynchronizationTargetFor(SyncItemJobModel theSyncJob,
ItemModel source)
Returns the counterpart for the
source item against given sync job theSyncJob. |
ItemSyncTimestampModel |
getSynchronizationTargetTimestampFor(SyncItemJobModel theSyncJob,
ItemModel target)
Returns the existing
ItemSyncTimestampModel for the target item in the scope of the given sync job. |
SyncItemJobModel |
getSyncJob(CatalogVersionModel source,
CatalogVersionModel target,
java.lang.String qualifier)
Returns the publication rule (as
SyncItemJobModel item) between a specified source catalog version and target
catalog version. |
boolean |
isInProgress(SyncItemJobModel theSyncJob)
Checks whether the given
givenSyncJob is currently in progress. |
java.util.Collection<SyncResult> |
lookupCurrentSynchronizations(SyncItemJobModel theSyncJob)
Returns the current executions for the given
theSyncJob. |
java.util.List<SyncResult> |
performSynchronization(java.util.List<ItemModel> givenItems,
java.util.List<SyncItemJobModel> syncItemJobs,
SyncConfig syncConfig)
Performs the synchronization for given items against given sync jobs.
|
SyncResult |
performSynchronization(java.util.List<ItemModel> givenItems,
SyncItemJobModel syncItemJob,
SyncConfig syncConfig)
Performs the synchronization for given items.
|
SyncResult |
synchronize(SyncItemJobModel syncJob,
SyncConfig syncConfig)
Starts synchronization for an existing
SyncItemJobModel. |
void |
synchronizeFully(CatalogVersionModel source,
CatalogVersionModel target)
For the given catalog version pair a new
CatalogVersionSyncJobModel is being created configured to sync
all default catalog item types. |
void |
synchronizeFully(CatalogVersionModel source,
CatalogVersionModel target,
int numberOfThreads)
For the given catalog version pair a new
CatalogVersionSyncJobModel is being created configured to sync
all default catalog item types. |
void |
synchronizeFullyInBackground(CatalogVersionModel source,
CatalogVersionModel target)
For the given catalog version pair a new
CatalogVersionSyncJobModel is being created configured to sync
all default catalog item types. |
void synchronizeFully(CatalogVersionModel source, CatalogVersionModel target)
CatalogVersionSyncJobModel is being created configured to sync
all default catalog item types.
The actual sync process is backed by a also new CatalogVersionSyncCronJobModel which is performed
synchronously.void synchronizeFully(CatalogVersionModel source, CatalogVersionModel target, int numberOfThreads)
CatalogVersionSyncJobModel is being created configured to sync
all default catalog item types.
The actual sync process is backed by a also new CatalogVersionSyncCronJobModel which is started
synchronously.numberOfThreads - specifies the number of sync workers to be used - overrides the number configured in
catalog.sync.workersvoid synchronizeFullyInBackground(CatalogVersionModel source, CatalogVersionModel target)
CatalogVersionSyncJobModel is being created configured to sync
all default catalog item types.
The actual sync process is backed by a also new CatalogVersionSyncCronJobModel which is started
asynchronously.SyncResult synchronize(SyncItemJobModel syncJob, SyncConfig syncConfig)
SyncItemJobModel. The configuration parameter allows to
configure/override a number of synchronization job settings.
The returned SyncResult gives both access to the execution result or, in case the process was started
asynchronously, to observe the running processjava.util.List<SyncResult> performSynchronization(java.util.List<ItemModel> givenItems, java.util.List<SyncItemJobModel> syncItemJobs, SyncConfig syncConfig)
SyncResult performSynchronization(java.util.List<ItemModel> givenItems, SyncItemJobModel syncItemJob, SyncConfig syncConfig)
java.util.List<ItemModel> getApplicableItems(java.util.List<ItemModel> givenItems, SyncItemJobModel syncItemJob)
ItemSyncTimestampModel getSynchronizationSourceTimestampFor(SyncItemJobModel theSyncJob, ItemModel source)
ItemSyncTimestampModel for the source item in the scope of the given
sync job. In case of the item never been synchronized before NULL is returned.ItemSyncTimestampModel getSynchronizationTargetTimestampFor(SyncItemJobModel theSyncJob, ItemModel target)
ItemSyncTimestampModel for the target item in the scope of the given sync job. In
case of the original source item being deleted this methods will return NULL.<T extends ItemModel> T getSynchronizationSourceFor(SyncItemJobModel theSyncJob, ItemModel target)
target item against given sync job theSyncJob.<T extends ItemModel> T getSynchronizationTargetFor(SyncItemJobModel theSyncJob, ItemModel source)
source item against given sync job theSyncJob.boolean isInProgress(SyncItemJobModel theSyncJob)
givenSyncJob is currently in progress.java.util.Collection<SyncResult> lookupCurrentSynchronizations(SyncItemJobModel theSyncJob)
theSyncJob.SyncItemJobModel getSyncJob(CatalogVersionModel source, CatalogVersionModel target, java.lang.String qualifier)
SyncItemJobModel item) between a specified source catalog version and target
catalog version.boolean canSynchronize(SyncItemJobModel syncJob, PrincipalModel principal)
syncJob - the sync jobprincipal - the principalCopyright © 2018 SAP SE. All Rights Reserved.