Class NavigationController
- java.lang.Object
-
- de.hybris.platform.cmswebservices.navigations.controller.NavigationController
-
@Controller @RequestMapping("/v1/sites/{siteId}/catalogs/{catalogId}/versions/{versionId}/navigations") public class NavigationController extends java.lang.ObjectController to deal with Navigation Nodes objects
-
-
Constructor Summary
Constructors Constructor Description NavigationController()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description NavigationNodeDatacreateNavigationNodeById(NavigationNodeData navigationNode, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Deprecated, for removal: This API element is subject to removal in a future version.since 1811, please useCMSItemController.createCMSItem(Map, HttpServletRequest, HttpServletResponse)instead.voiddeleteNavigationNodeById(java.lang.String uid)Deprecated, for removal: This API element is subject to removal in a future version.since 1811, please useCMSItemController.removeCMSItembyUUid(String)instead.NavigationNodeListDatafindAllNavigationAncestorsAndSelf(java.lang.String navigationNodeUid)NavigationNodeListDatafindAllNavigationNodes()Deprecated, for removal: This API element is subject to removal in a future version.since 1811, please useCMSItemController.findCmsItems(CMSItemSearchWsDTO, PageableWsDTO)instead.NavigationNodeListDatafindAllNavigationNodesByParentUid(java.lang.String parentUid)NavigationNodeDatafindNavigationNodeById(java.lang.String uid)Deprecated, for removal: This API element is subject to removal in a future version.since 1811, please useCMSItemController.getCMSItemByUUid(String)instead.protected DataMappergetDataMapper()protected LocationHeaderResourcegetLocationHeaderResource()protected NavigationFacadegetNavigationFacade()voidsetDataMapper(DataMapper dataMapper)voidsetLocationHeaderResource(LocationHeaderResource locationHeaderResource)voidsetNavigationFacade(NavigationFacade navigationFacade)NavigationNodeDataupdateNavigationNodeById(java.lang.String uid, NavigationNodeData navigationNode)Deprecated, for removal: This API element is subject to removal in a future version.since 1811, please useCMSItemController.updateCMSItem(String, Map)instead.
-
-
-
Method Detail
-
findAllNavigationNodesByParentUid
@RequestMapping(method=GET, params="parentUid") @ResponseBody public NavigationNodeListData findAllNavigationNodesByParentUid(@RequestParam("parentUid") java.lang.String parentUid)
-
findAllNavigationNodes
@RequestMapping(method=GET) @ResponseBody @Deprecated(since="1811", forRemoval=true) public NavigationNodeListData findAllNavigationNodes()Deprecated, for removal: This API element is subject to removal in a future version.since 1811, please useCMSItemController.findCmsItems(CMSItemSearchWsDTO, PageableWsDTO)instead.
-
findNavigationNodeById
@RequestMapping(value="/{uid}", method=GET) @ResponseBody @Deprecated(since="1811", forRemoval=true) public NavigationNodeData findNavigationNodeById(@PathVariable("uid") java.lang.String uid) throws CMSItemNotFoundExceptionDeprecated, for removal: This API element is subject to removal in a future version.since 1811, please useCMSItemController.getCMSItemByUUid(String)instead.- Throws:
CMSItemNotFoundException
-
updateNavigationNodeById
@Deprecated(since="1811", forRemoval=true) @RequestMapping(value="/{uid}", method=PUT) @ResponseStatus(OK) @ResponseBody public NavigationNodeData updateNavigationNodeById(@PathVariable("uid") java.lang.String uid, @RequestBody NavigationNodeData navigationNode) throws CMSItemNotFoundExceptionDeprecated, for removal: This API element is subject to removal in a future version.since 1811, please useCMSItemController.updateCMSItem(String, Map)instead.- Throws:
CMSItemNotFoundException
-
deleteNavigationNodeById
@Deprecated(since="1811", forRemoval=true) @RequestMapping(value="/{uid}", method=DELETE) @ResponseStatus(NO_CONTENT) public void deleteNavigationNodeById(@PathVariable("uid") java.lang.String uid) throws CMSItemNotFoundExceptionDeprecated, for removal: This API element is subject to removal in a future version.since 1811, please useCMSItemController.removeCMSItembyUUid(String)instead.- Throws:
CMSItemNotFoundException
-
createNavigationNodeById
@RequestMapping(method=POST) @ResponseBody @ResponseStatus(CREATED) @Deprecated(since="1811", forRemoval=true) public NavigationNodeData createNavigationNodeById(@RequestBody NavigationNodeData navigationNode, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws CMSItemNotFoundExceptionDeprecated, for removal: This API element is subject to removal in a future version.since 1811, please useCMSItemController.createCMSItem(Map, HttpServletRequest, HttpServletResponse)instead.- Throws:
CMSItemNotFoundException
-
findAllNavigationAncestorsAndSelf
@RequestMapping(method=GET, params="ancestorTrailFrom") @ResponseBody public NavigationNodeListData findAllNavigationAncestorsAndSelf(@RequestParam("ancestorTrailFrom") java.lang.String navigationNodeUid) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
getNavigationFacade
protected NavigationFacade getNavigationFacade()
-
setNavigationFacade
public void setNavigationFacade(NavigationFacade navigationFacade)
-
getLocationHeaderResource
protected LocationHeaderResource getLocationHeaderResource()
-
setLocationHeaderResource
public void setLocationHeaderResource(LocationHeaderResource locationHeaderResource)
-
getDataMapper
protected DataMapper getDataMapper()
-
setDataMapper
public void setDataMapper(DataMapper dataMapper)
-
-