Class SynchronizationController
java.lang.Object
de.hybris.platform.cmssmarteditwebservices.synchronization.controller.SynchronizationController
@Controller
@RequestMapping("/v1/sites/{baseSiteId}/catalogs/{catalogId}/versions/{versionId}/synchronizations/versions/{targetCatalogVersion}")
public class SynchronizationController
extends Object
Controller to retrieve complex synchronization status for and to perform a synchronization on a given
AbstractPageModel-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SyncRequestDatabuildSyncRequestData(String catalogId, String versionId, String targetCatalogVersion) protected SyncItemStatusConfigprotected DataMapperprotected ItemSynchronizationFacadegetSyncStatus(String catalogId, String versionId, String targetCatalogVersion, String pageId) voidperformSync(SynchronizationWsDTO synchronizationWsDTO, String catalogId, String versionId, String targetCatalogVersion)
-
Constructor Details
-
SynchronizationController
public SynchronizationController()
-
-
Method Details
-
getSyncStatus
@GetMapping("/pages/{pageId}") @ResponseBody public SyncItemStatusWsDTO getSyncStatus(@PathVariable String catalogId, @PathVariable String versionId, @PathVariable String targetCatalogVersion, @PathVariable String pageId) -
performSync
@PostMapping @ResponseStatus(NO_CONTENT) @ResponseBody public void performSync(@RequestBody SynchronizationWsDTO synchronizationWsDTO, @PathVariable String catalogId, @PathVariable String versionId, @PathVariable String targetCatalogVersion) -
buildSyncRequestData
protected SyncRequestData buildSyncRequestData(String catalogId, String versionId, String targetCatalogVersion) -
getDataMapper
-
getCmsSyncItemStatusConfig
-
getItemSynchronizationFacade
-