2 * Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org.akraino.validation.ui.controller;
19 import java.util.HashMap;
22 import javax.servlet.http.HttpServletRequest;
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;
32 public class ModelsViewsController extends RestrictedBaseController {
34 public ModelsViewsController() {
38 @RequestMapping(value = { "/newsubmission" }, method = RequestMethod.GET)
39 public ModelAndView newSubmission(HttpServletRequest request) {
40 final String defaultViewName = null;
41 return new ModelAndView(defaultViewName);
44 @RequestMapping(value = { "/committedsubmissions" }, method = RequestMethod.GET)
45 public ModelAndView committedSubmissions(HttpServletRequest request) {
46 final String defaultViewName = null;
47 return new ModelAndView(defaultViewName);
50 @RequestMapping(value = { "/getmostrecent" }, method = RequestMethod.GET)
51 public ModelAndView getMostrecent(HttpServletRequest request) {
52 final String defaultViewName = null;
53 return new ModelAndView(defaultViewName);
56 @RequestMapping(value = { "/getbytimestamp" }, method = RequestMethod.GET)
57 public ModelAndView getByTimestamp(HttpServletRequest request) {
58 final String defaultViewName = null;
59 return new ModelAndView(defaultViewName);
62 @RequestMapping(value = { "/getlastrun" }, method = RequestMethod.GET)
63 public ModelAndView getLastRun(HttpServletRequest request) {
64 final String defaultViewName = null;
65 return new ModelAndView(defaultViewName);
68 @RequestMapping(value = { "/getbasedondate" }, method = RequestMethod.GET)
69 public ModelAndView getBasedOnDate(HttpServletRequest request) {
70 final String defaultViewName = null;
71 return new ModelAndView(defaultViewName);
74 @RequestMapping(value = { "/validationresults" }, method = RequestMethod.GET)
75 public ModelAndView validationResults(HttpServletRequest request) {
76 final String defaultViewName = null;
77 return new ModelAndView(defaultViewName);
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);