Interface SetupSyncJobService
- All Known Implementing Classes:
DefaultSetupSyncJobService,MarketplaceSetupSyncJobService
public interface SetupSyncJobService
Service that handles creating synchronization jobs.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignDependentSyncJobs(String catalogId, Set<String> dependentCatalogIds) Sets up a dependency relationship between the CatalogVersionSyncJob for a catalog and the CatalogVersionSyncJobs for a set of dependant catalogs.voidcreateContentCatalogSyncJob(String catalogId) Ensure that a cms content catalog sync job exists for the specified catalog id.voidcreateProductCatalogSyncJob(String catalogId) Ensure that a product catalog sync job exists for the specified catalog id.executeCatalogSyncJob(String catalogId) Run the catalog sync for the specified catalog.
-
Method Details
-
createProductCatalogSyncJob
Ensure that a product catalog sync job exists for the specified catalog id. The sync job is created between the Staged and Online catalog versions only if there is no existing sync job.- Parameters:
catalogId- the catalog id to search sync job for.
-
createContentCatalogSyncJob
Ensure that a cms content catalog sync job exists for the specified catalog id. The sync job is created between the Staged and Online catalog versions only if there is no existing sync job.- Parameters:
catalogId- the catalog id
-
assignDependentSyncJobs
Sets up a dependency relationship between the CatalogVersionSyncJob for a catalog and the CatalogVersionSyncJobs for a set of dependant catalogs.- Parameters:
catalogId- the catalog iddependentCatalogIds- the dependant catalog ids
-
executeCatalogSyncJob
Run the catalog sync for the specified catalog.- Parameters:
catalogId- the catalog id- Returns:
- an instance of
PerformResultcontaining the sync job result and status
-