diff options
author | 2020-04-24 17:01:43 +0530 | |
---|---|---|
committer | 2020-04-24 17:01:49 +0530 | |
commit | d12de53c04b0ededda7a2811819e744d15d38864 (patch) | |
tree | 480572bb420287617baea28330cc2be5bcde2875 /ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/FnMenuController.java | |
parent | 9ac990d143c7eb57424609a091308245d3072466 (diff) |
added appropriate annotation
Issue-ID: PORTAL-865
Change-Id: I7e48fe4e6c9fbb4021b1d465b74f514969bcb20d
Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
Diffstat (limited to 'ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/FnMenuController.java')
-rw-r--r-- | ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/FnMenuController.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/FnMenuController.java b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/FnMenuController.java index 8f49b640..82da2eb8 100644 --- a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/FnMenuController.java +++ b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/FnMenuController.java @@ -4,6 +4,8 @@ * =================================================================== * Copyright © 2017 AT&T Intellectual Property. All rights reserved. * =================================================================== + * Modification Copyright © 2020 IBM. + * =================================================================== * * Unless otherwise specified, all software contained herein is licensed * under the Apache License, Version 2.0 (the "License"); @@ -58,6 +60,8 @@ import org.onap.portalsdk.core.web.support.JsonMessage; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.servlet.ModelAndView; @@ -82,7 +86,7 @@ public class FnMenuController extends RestrictedBaseController { @Autowired FunctionalMenuListService functionalMenuListService; - @RequestMapping(value = { "/admin_fn_menu/get_parent_list" }, method = RequestMethod.GET) + @GetMapping(value = { "/admin_fn_menu/get_parent_list" }) public void getParentList(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException { ObjectMapper mapper = new ObjectMapper(); try { @@ -95,7 +99,7 @@ public class FnMenuController extends RestrictedBaseController { } } - @RequestMapping(value = { "/admin_fn_menu/get_function_cd_list" }, method = RequestMethod.GET) + @GetMapping(value = { "/admin_fn_menu/get_function_cd_list" }) public void getFunctionCDList(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException { ObjectMapper mapper = new ObjectMapper(); try { @@ -109,7 +113,7 @@ public class FnMenuController extends RestrictedBaseController { } - @RequestMapping(value = { "/admin_fn_menu" }, method = RequestMethod.GET) + @GetMapping(value = { "/admin_fn_menu" }) public void getFnMenuList(HttpServletRequest request, HttpServletResponse response) { Map<String, Object> model = new HashMap<>(); ObjectMapper mapper = new ObjectMapper(); @@ -152,7 +156,7 @@ public class FnMenuController extends RestrictedBaseController { } - @RequestMapping(value = { "/admin_fn_menu/updateFnMenu" }, method = RequestMethod.POST) + @PostMapping(value = { "/admin_fn_menu/updateFnMenu" }) public ModelAndView updateFnMenu(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, java.io.UnsupportedEncodingException { @@ -189,7 +193,7 @@ public class FnMenuController extends RestrictedBaseController { } - @RequestMapping(value = { "/admin_fn_menu/removeMenuItem" }, method = RequestMethod.POST) + @PostMapping(value = { "/admin_fn_menu/removeMenuItem" }) public ModelAndView removeFnMenu(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, java.io.UnsupportedEncodingException { |