public class SyncTask
extends DefaultCockpitContext
| Constructor and Description |
|---|
SyncTask(java.util.List<? extends ItemModel> items,
SyncItemJobModel syncItemJob)
Creates items sync task
|
SyncTask(SyncItemJobModel syncItemJob)
Creates full catalog version sync
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<? extends ItemModel> |
getItems()
Items to be synchronised.
|
SyncConfig |
getSyncConfig()
Optional configuration for synchronisation
SyncConfig |
SyncItemJobModel |
getSyncItemJob() |
boolean |
isCatalogVersionSync()
Tells if sync is for entire catalog version.
|
void |
setSyncConfig(SyncConfig syncConfig) |
public SyncTask(java.util.List<? extends ItemModel> items, SyncItemJobModel syncItemJob)
items - - items to be synchronised - see getItems() for more details.syncItemJob - - job which will be used to perform sync.public SyncTask(SyncItemJobModel syncItemJob)
syncItemJob - - job which will be used to perform sync.public SyncItemJobModel getSyncItemJob()
public java.util.List<? extends ItemModel> getItems()
getSyncItemJob().public SyncConfig getSyncConfig()
SyncConfigpublic void setSyncConfig(SyncConfig syncConfig)
public boolean isCatalogVersionSync()
getItems() is empty or has only one
catalog version.Copyright © 2018 SAP SE. All Rights Reserved.