Class ItemSynchronizationController


  • @Controller
    @RequestMapping("/v1/sites/{siteId}/catalogs/{catalogId}/versions/{versionId}/synchronizations/versions/{targetCatalogVersion}")
    public class ItemSynchronizationController
    extends java.lang.Object
    Controller to retrieve complex synchronization status for and to perform a synchronization on a given AbstractPageModel
    • Constructor Detail

      • ItemSynchronizationController

        public ItemSynchronizationController()
    • 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 synchronized
        sourceCatalogVersion - the source catalog version
        targetCatalogVersion - 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 synchronization
        itemType - the item type
        Returns:
        the item synch data
      • getDataMapper

        protected DataMapper getDataMapper()