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 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 synchronized
      sourceCatalogVersion - the source catalog version
      targetCatalogVersion - the target catalog version
      Returns:
      the synch request data
    • getItemSynchronizationData

      protected ItemSynchronizationData getItemSynchronizationData(String itemId, 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 synchronization
      itemType - the item type
      Returns:
      the item synch data
    • getItemSynchronizationFacade

      protected ItemSynchronizationFacade getItemSynchronizationFacade()
    • getDataMapper

      protected DataMapper getDataMapper()