Class PageContentSlotComponentController
java.lang.Object
de.hybris.platform.cmswebservices.pagescontentslotscomponents.controller.PageContentSlotComponentController
@Controller
@RequestMapping("/v1/sites/{siteId}/catalogs/{catalogId}/versions/{versionId}/pagescontentslotscomponents")
public class PageContentSlotComponentController
extends Object
Controller that provides an API to update components either between slots, or within a single slot.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddComponentToSlot(PageContentSlotComponentData pageContentSlotComponentData, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) getComponentsByPage(String pageId) protected DataMapperprotected LocationHeaderResourceprotected PageContentSlotComponentFacademoveComponent(String pageId, String slotId, String componentId, PageContentSlotComponentData pageContentSlotComponent) voidremoveComponent(String slotId, String componentId) voidsetDataMapper(DataMapper dataMapper) voidsetLocationHeaderResource(LocationHeaderResource locationHeaderResource) voidsetPageContentSlotComponentFacade(PageContentSlotComponentFacade contentSlotFacade)
-
Constructor Details
-
PageContentSlotComponentController
public PageContentSlotComponentController()
-
-
Method Details
-
getComponentsByPage
@RequestMapping(method=GET, params="pageId") @ResponseStatus(OK) @ResponseBody public PageContentSlotComponentListData getComponentsByPage(@RequestParam("pageId") String pageId) -
moveComponent
@RequestMapping(value="/pages/{pageId}/contentslots/{slotId}/components/{componentId}", method=PUT) @ResponseStatus(OK) @ResponseBody public PageContentSlotComponentData moveComponent(@PathVariable("pageId") String pageId, @PathVariable("slotId") String slotId, @PathVariable("componentId") String componentId, @RequestBody PageContentSlotComponentData pageContentSlotComponent) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
addComponentToSlot
@RequestMapping(method=POST) @ResponseStatus(CREATED) @ResponseBody public PageContentSlotComponentData addComponentToSlot(@RequestBody PageContentSlotComponentData pageContentSlotComponentData, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
removeComponent
@RequestMapping(value="/contentslots/{slotId}/components/{componentId}", method=DELETE) @ResponseStatus(NO_CONTENT) public void removeComponent(@PathVariable("slotId") String slotId, @PathVariable("componentId") String componentId) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
getPageContentSlotComponentFacade
-
setPageContentSlotComponentFacade
-
getLocationHeaderResource
-
setLocationHeaderResource
-
getDataMapper
-
setDataMapper
-