Class ItemSynchronizationController
java.lang.Object
de.hybris.platform.cmswebservices.synchronization.controller.ItemSynchronizationController
@Controller
@RequestMapping("/v1/sites/{siteId}/catalogs/{catalogId}/versions/{versionId}/synchronizations/versions/{targetCatalogVersion}")
public class ItemSynchronizationController
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 TypeMethodDescriptiongetComponentSynchronizationStatus(String catalogId, String versionId, String targetCatalogVersion, String componentId) protected DataMapperprotected ItemSynchronizationDatagetItemSynchronizationData(String itemId, String itemType) Returns the Item Synchronization Data for a given itemId and item typeprotected ItemSynchronizationFacadegetPageSynchronizationStatus(String catalogId, String versionId, String targetCatalogVersion, String pageId) getSlotSynchronizationStatus(String catalogId, String versionId, String targetCatalogVersion, String slotId) protected SyncRequestDatagetSyncRequestData(String catalogId, String sourceCatalogVersion, String targetCatalogVersion) Returns the synchronization request datavoidperformSync(SynchronizationWsDTO synchronizationWsDTO, String catalogId, String versionId, String targetCatalogVersion)
-
Constructor Details
-
ItemSynchronizationController
public ItemSynchronizationController()
-
-
Method Details
-
getPageSynchronizationStatus
@RequestMapping(value="/pages/{pageId}", method=GET) @ResponseBody public SyncItemStatusWsDTO getPageSynchronizationStatus(@PathVariable String catalogId, @PathVariable String versionId, @PathVariable String targetCatalogVersion, @PathVariable String pageId) -
getSlotSynchronizationStatus
@RequestMapping(value="/slots/{slotId}", method=GET) @ResponseBody public SyncItemStatusWsDTO getSlotSynchronizationStatus(@PathVariable String catalogId, @PathVariable String versionId, @PathVariable String targetCatalogVersion, @PathVariable String slotId) -
getComponentSynchronizationStatus
@RequestMapping(value="/items/{componentId}", method=GET) @ResponseBody public SyncItemStatusWsDTO getComponentSynchronizationStatus(@PathVariable String catalogId, @PathVariable String versionId, @PathVariable String targetCatalogVersion, @PathVariable String componentId) -
performSync
@RequestMapping(method=POST) @ResponseStatus(NO_CONTENT) @ResponseBody public void performSync(@RequestBody SynchronizationWsDTO synchronizationWsDTO, @PathVariable String catalogId, @PathVariable String versionId, @PathVariable String targetCatalogVersion) -
getSyncRequestData
protected SyncRequestData getSyncRequestData(@PathVariable String catalogId, @PathVariable String sourceCatalogVersion, @PathVariable String targetCatalogVersion) Returns the synchronization request data- Parameters:
catalogId- the content catalog to be synchronizedsourceCatalogVersion- the source catalog versiontargetCatalogVersion- the target catalog version- Returns:
- the synch request data
-
getItemSynchronizationData
Returns the Item Synchronization Data for a given itemId and item type- Parameters:
itemId- the item id that will be used as a root for synchronizationitemType- the item type- Returns:
- the item synch data
-
getItemSynchronizationFacade
-
getDataMapper
-