cc9cec24003fd55e88c9298b2006e26acd2104a8
[validation.git] / ui / src / main / java / org / akraino / validation / ui / controller / ModelsViewsController.java
1 /*
2  * Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may
5  * not use this file except in compliance with the License. You may obtain
6  * a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13  * implied. See the License for the specific language governing
14  * permissions and limitations under the License.
15  */
16
17 package org.akraino.validation.ui.controller;
18
19 import java.util.HashMap;
20 import java.util.Map;
21
22 import javax.servlet.http.HttpServletRequest;
23
24 import org.onap.portalsdk.core.controller.RestrictedBaseController;
25 import org.springframework.stereotype.Controller;
26 import org.springframework.web.bind.annotation.RequestMapping;
27 import org.springframework.web.bind.annotation.RequestMethod;
28 import org.springframework.web.servlet.ModelAndView;
29
30 @Controller
31 @RequestMapping("/")
32 public class ModelsViewsController extends RestrictedBaseController {
33
34     public ModelsViewsController() {
35         super();
36     }
37
38     @RequestMapping(value = { "/newsubmission" }, method = RequestMethod.GET)
39     public ModelAndView newSubmission(HttpServletRequest request) {
40         final String defaultViewName = null;
41         return new ModelAndView(defaultViewName);
42     }
43
44     @RequestMapping(value = { "/committedsubmissions" }, method = RequestMethod.GET)
45     public ModelAndView committedSubmissions(HttpServletRequest request) {
46         final String defaultViewName = null;
47         return new ModelAndView(defaultViewName);
48     }
49
50     @RequestMapping(value = { "/getmostrecent" }, method = RequestMethod.GET)
51     public ModelAndView getMostrecent(HttpServletRequest request) {
52         final String defaultViewName = null;
53         return new ModelAndView(defaultViewName);
54     }
55
56     @RequestMapping(value = { "/getbytimestamp" }, method = RequestMethod.GET)
57     public ModelAndView getByTimestamp(HttpServletRequest request) {
58         final String defaultViewName = null;
59         return new ModelAndView(defaultViewName);
60     }
61
62     @RequestMapping(value = { "/getlastrun" }, method = RequestMethod.GET)
63     public ModelAndView getLastRun(HttpServletRequest request) {
64         final String defaultViewName = null;
65         return new ModelAndView(defaultViewName);
66     }
67
68     @RequestMapping(value = { "/getbasedondate" }, method = RequestMethod.GET)
69     public ModelAndView getBasedOnDate(HttpServletRequest request) {
70         final String defaultViewName = null;
71         return new ModelAndView(defaultViewName);
72     }
73
74     @RequestMapping(value = { "/validationresults" }, method = RequestMethod.GET)
75     public ModelAndView validationResults(HttpServletRequest request) {
76         final String defaultViewName = null;
77         return new ModelAndView(defaultViewName);
78     }
79
80     @RequestMapping(value = { "/logout.htm" }, method = RequestMethod.GET)
81     public ModelAndView login() {
82         Map<String, Object> model = new HashMap<>();
83         return new ModelAndView("logout", "model", model);
84     }
85
86 }