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 java.lang.ObjectController to retrieve complex synchronization status for and to perform a synchronization on a givenAbstractPageModel
-
-
Constructor Summary
Constructors Constructor Description ItemSynchronizationController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SyncItemStatusWsDTOgetComponentSynchronizationStatus(java.lang.String catalogId, java.lang.String versionId, java.lang.String targetCatalogVersion, java.lang.String componentId)protected DataMappergetDataMapper()protected ItemSynchronizationDatagetItemSynchronizationData(java.lang.String itemId, java.lang.String itemType)Returns the Item Synchronization Data for a given itemId and item typeprotected ItemSynchronizationFacadegetItemSynchronizationFacade()SyncItemStatusWsDTOgetPageSynchronizationStatus(java.lang.String catalogId, java.lang.String versionId, java.lang.String targetCatalogVersion, java.lang.String pageId)SyncItemStatusWsDTOgetSlotSynchronizationStatus(java.lang.String catalogId, java.lang.String versionId, java.lang.String targetCatalogVersion, java.lang.String slotId)protected SyncRequestDatagetSyncRequestData(java.lang.String catalogId, java.lang.String sourceCatalogVersion, java.lang.String targetCatalogVersion)Returns the synchronization request datavoidperformSync(SynchronizationWsDTO synchronizationWsDTO, java.lang.String catalogId, java.lang.String versionId, java.lang.String targetCatalogVersion)
-
-
-
Method Detail
-
getPageSynchronizationStatus
@RequestMapping(value="/pages/{pageId}", method=GET) @ResponseBody public SyncItemStatusWsDTO getPageSynchronizationStatus(@PathVariable java.lang.String catalogId, @PathVariable java.lang.String versionId, @PathVariable java.lang.String targetCatalogVersion, @PathVariable java.lang.String pageId)
-
getSlotSynchronizationStatus
@RequestMapping(value="/slots/{slotId}", method=GET) @ResponseBody public SyncItemStatusWsDTO getSlotSynchronizationStatus(@PathVariable java.lang.String catalogId, @PathVariable java.lang.String versionId, @PathVariable java.lang.String targetCatalogVersion, @PathVariable java.lang.String slotId)
-
getComponentSynchronizationStatus
@RequestMapping(value="/items/{componentId}", method=GET) @ResponseBody public SyncItemStatusWsDTO getComponentSynchronizationStatus(@PathVariable java.lang.String catalogId, @PathVariable java.lang.String versionId, @PathVariable java.lang.String targetCatalogVersion, @PathVariable java.lang.String componentId)
-
performSync
@RequestMapping(method=POST) @ResponseStatus(NO_CONTENT) @ResponseBody public void performSync(@RequestBody SynchronizationWsDTO synchronizationWsDTO, @PathVariable java.lang.String catalogId, @PathVariable java.lang.String versionId, @PathVariable java.lang.String targetCatalogVersion)
-
getSyncRequestData
protected SyncRequestData getSyncRequestData(@PathVariable java.lang.String catalogId, @PathVariable java.lang.String sourceCatalogVersion, @PathVariable java.lang.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
protected ItemSynchronizationData getItemSynchronizationData(java.lang.String itemId, java.lang.String itemType)
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
protected ItemSynchronizationFacade getItemSynchronizationFacade()
-
getDataMapper
protected DataMapper getDataMapper()
-
-