Class SyncConfig
java.lang.Object
de.hybris.platform.catalog.synchronization.SyncConfig
Configuration container for starting a new catalog synchronization. Allows to override several settings of the
underlying
SyncItemCronJobModel and CatalogVersionSyncCronJobModel.
In addition it allows to schedule individual items to be synchronized and make the sync process running in partial mode. If no items are specified always a full sync is performed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItemToDelete(PK copyItemPK) Adds a specific item from the target catalog version to be removed within the sync process.voidaddItemToSync(PK originalItemPK) Adds a specific item from the source catalog to be copied or updated.voidaddItemToSync(PK originalItemPK, PK copyItemPK) Adds a specific item from the source catalog to be copied or updated.booleanDeprecated, for removal: This API element is subject to removal in a future version.Returns the partial sync schedule or an empty list if a full sync is intended.booleanTells whether items have been added to the configuration and therefore the sync process is running in partial sync mode.voidsetAbortWhenCollidingSyncIsRunning(boolean abortWhenCollidingSyncIsRunning) voidsetCreateSavedValues(Boolean createSavedValues) voidsetErrorMode(ErrorMode errorMode) voidsetForceUpdate(Boolean forceUpdate) voidsetFullSync(Boolean fullSync) Deprecated, for removal: This API element is subject to removal in a future version.since 6.3.0 - not used any morevoidsetKeepCronJob(Boolean keepCronJob) voidsetLogLevelDatabase(JobLogLevel logLevelDatabase) voidsetLogLevelFile(JobLogLevel logLevelFile) voidsetLogToDatabase(Boolean logToDatabase) voidsetLogToFile(Boolean logToFile) voidsetSynchronous(Boolean synchronous)
-
Constructor Details
-
SyncConfig
public SyncConfig()
-
-
Method Details
-
getAbortWhenCollidingSyncIsRunning
public boolean getAbortWhenCollidingSyncIsRunning() -
setAbortWhenCollidingSyncIsRunning
public void setAbortWhenCollidingSyncIsRunning(boolean abortWhenCollidingSyncIsRunning) -
getLogToFile
-
setLogToFile
-
getLogToDatabase
-
setLogToDatabase
-
getForceUpdate
-
setForceUpdate
-
getKeepCronJob
-
setKeepCronJob
-
getLogLevelFile
-
setLogLevelFile
-
getLogLevelDatabase
-
setLogLevelDatabase
-
getCreateSavedValues
-
setCreateSavedValues
-
getErrorMode
-
setErrorMode
-
getSynchronous
-
setSynchronous
-
getFullSync
Deprecated, for removal: This API element is subject to removal in a future version.since 6.3.0 - usehasPartialSyncSchedule()instead to determine whether a partial or full sync is to be executed -
hasPartialSyncSchedule
public boolean hasPartialSyncSchedule()Tells whether items have been added to the configuration and therefore the sync process is running in partial sync mode. -
setFullSync
Deprecated, for removal: This API element is subject to removal in a future version.since 6.3.0 - not used any more -
addItemToSync
Adds a specific item from the source catalog to be copied or updated. Even if no target item is specified here the process will detect the potentially existing copy.- See Also:
-
addItemToSync
Adds a specific item from the source catalog to be copied or updated. This method allows to specify the existing copy of the item as well. Note that if the copy is omitted the sync process will perform a lookup for the copy any way.- See Also:
-
addItemToDelete
Adds a specific item from the target catalog version to be removed within the sync process. Use this to schedule removal of items which no longer exists in the source catalog version. However, be aware of the sync not checking whether there's really no original left and just deletes the scheduled item! -
getPartialSyncSchedule
Returns the partial sync schedule or an empty list if a full sync is intended.- See Also:
-
hasPartialSyncSchedule()instead to determine whether a partial or full sync is to be executed