summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/CollaborationController.java
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/CollaborationController.java')
-rw-r--r--ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/CollaborationController.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/CollaborationController.java b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/CollaborationController.java
index 18cd6a6a..1addfa9a 100644
--- a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/CollaborationController.java
+++ b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/CollaborationController.java
@@ -47,14 +47,14 @@ import org.onap.portalsdk.core.domain.User;
import org.onap.portalsdk.core.web.support.UserUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller
@RequestMapping("/")
public class CollaborationController extends RestrictedBaseController{
- @RequestMapping(value = {"/collaboration" }, method = RequestMethod.GET)
+ @GetMapping(value = {"/collaboration" })
public ModelAndView view(HttpServletRequest request) {
Map<String, Object> model = new HashMap<>();
User user = UserUtils.getUserSession(request);
@@ -62,7 +62,7 @@ public class CollaborationController extends RestrictedBaseController{
model.put("name",(user.getFirstName() + " " + (user.getLastName() != null? user.getLastName().substring(0,1): "" )));
return new ModelAndView(getViewName(),"model", model);
}
- @RequestMapping(value = {"/openCollaboration" }, method = RequestMethod.GET)
+ @GetMapping(value = {"/openCollaboration" })
public ModelAndView openCollaboration(HttpServletRequest request) {
Map<String, Object> model = new HashMap<>();
User user = UserUtils.getUserSession(request);