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;
23 import javax.servlet.http.HttpServletResponse;
25 import org.onap.portalsdk.core.controller.RestrictedBaseController;
26 import org.springframework.stereotype.Controller;
27 import org.springframework.web.bind.annotation.RequestMapping;
28 import org.springframework.web.bind.annotation.RequestMethod;
29 import org.springframework.web.servlet.ModelAndView;
33 public class ModelsViewsController extends RestrictedBaseController {
35 public ModelsViewsController() {
39 @RequestMapping(value = { "/newsubmission" }, method = RequestMethod.GET)
40 public ModelAndView newSubmission(HttpServletRequest request) {
41 final String defaultViewName = null;
42 return new ModelAndView(defaultViewName);
45 @RequestMapping(value = { "/committedsubmissions" }, method = RequestMethod.GET)
46 public ModelAndView committedSubmissions(HttpServletRequest request) {
47 final String defaultViewName = null;
48 return new ModelAndView(defaultViewName);
51 @RequestMapping(value = { "/getmostrecent" }, method = RequestMethod.GET)
52 public ModelAndView getMostrecent(HttpServletRequest request) {
53 final String defaultViewName = null;
54 return new ModelAndView(defaultViewName);
57 @RequestMapping(value = { "/getbytimestamp" }, method = RequestMethod.GET)
58 public ModelAndView getByTimestamp(HttpServletRequest request) {
59 final String defaultViewName = null;
60 return new ModelAndView(defaultViewName);
63 @RequestMapping(value = { "/getlastrun" }, method = RequestMethod.GET)
64 public ModelAndView getLastRun(HttpServletRequest request) {
65 final String defaultViewName = null;
66 return new ModelAndView(defaultViewName);
69 @RequestMapping(value = { "/getbasedondate" }, method = RequestMethod.GET)
70 public ModelAndView getBasedOnDate(HttpServletRequest request) {
71 final String defaultViewName = null;
72 return new ModelAndView(defaultViewName);
75 @RequestMapping(value = { "/validationresults" }, method = RequestMethod.GET)
76 public ModelAndView validationResults(HttpServletRequest request) {
77 final String defaultViewName = null;
78 return new ModelAndView(defaultViewName);
81 @RequestMapping(value = { "/registerlab" }, method = RequestMethod.GET)
82 public ModelAndView registerLab(HttpServletRequest request) {
83 final String defaultViewName = null;
84 return new ModelAndView(defaultViewName);
87 @RequestMapping(value = { "/unregisterlab" }, method = RequestMethod.GET)
88 public ModelAndView unRegisterLab(HttpServletRequest request) {
89 final String defaultViewName = null;
90 return new ModelAndView(defaultViewName);
93 @RequestMapping(value = { "/modifylab" }, method = RequestMethod.GET)
94 public ModelAndView modifyLab(HttpServletRequest request) {
95 final String defaultViewName = null;
96 return new ModelAndView(defaultViewName);
99 @RequestMapping(value = { "/getlabs" }, method = RequestMethod.GET)
100 public ModelAndView getLabs(HttpServletRequest request) {
101 final String defaultViewName = null;
102 return new ModelAndView(defaultViewName);
105 @RequestMapping(value = { "/registerblueprint" }, method = RequestMethod.GET)
106 public ModelAndView registerBlueprint(HttpServletRequest request) {
107 final String defaultViewName = null;
108 return new ModelAndView(defaultViewName);
111 @RequestMapping(value = { "/unregisterblueprint" }, method = RequestMethod.GET)
112 public ModelAndView unRegisterBlueprint(HttpServletRequest request) {
113 final String defaultViewName = null;
114 return new ModelAndView(defaultViewName);
117 @RequestMapping(value = { "/getblueprints" }, method = RequestMethod.GET)
118 public ModelAndView getBlueprints(HttpServletRequest request) {
119 final String defaultViewName = null;
120 return new ModelAndView(defaultViewName);
123 @RequestMapping(value = { "/registerlayer" }, method = RequestMethod.GET)
124 public ModelAndView registerLayer(HttpServletRequest request) {
125 final String defaultViewName = null;
126 return new ModelAndView(defaultViewName);
129 @RequestMapping(value = { "/unregisterlayer" }, method = RequestMethod.GET)
130 public ModelAndView unRegisterLayer(HttpServletRequest request) {
131 final String defaultViewName = null;
132 return new ModelAndView(defaultViewName);
135 @RequestMapping(value = { "/getlayers" }, method = RequestMethod.GET)
136 public ModelAndView getLayers(HttpServletRequest request) {
137 final String defaultViewName = null;
138 return new ModelAndView(defaultViewName);
141 @RequestMapping(value = { "/registertimeslot" }, method = RequestMethod.GET)
142 public ModelAndView registerTimeslot(HttpServletRequest request) {
143 final String defaultViewName = null;
144 return new ModelAndView(defaultViewName);
147 @RequestMapping(value = { "/gettimeslots" }, method = RequestMethod.GET)
148 public ModelAndView getTimeslots(HttpServletRequest request) {
149 final String defaultViewName = null;
150 return new ModelAndView(defaultViewName);
153 @RequestMapping(value = { "/registerblueprintinstance" }, method = RequestMethod.GET)
154 public ModelAndView registerBlueprintInstance(HttpServletRequest request) {
155 final String defaultViewName = null;
156 return new ModelAndView(defaultViewName);
159 @RequestMapping(value = { "/unregisterblueprintinstance" }, method = RequestMethod.GET)
160 public ModelAndView unRegisterBlueprintInstance(HttpServletRequest request) {
161 final String defaultViewName = null;
162 return new ModelAndView(defaultViewName);
165 @RequestMapping(value = { "/getblueprintinstances" }, method = RequestMethod.GET)
166 public ModelAndView getBlueprintInstances(HttpServletRequest request) {
167 final String defaultViewName = null;
168 return new ModelAndView(defaultViewName);
171 @RequestMapping(value = { "/modifyblueprintinstance" }, method = RequestMethod.GET)
172 public ModelAndView modifyBlueprintInstance(HttpServletRequest request) {
173 final String defaultViewName = null;
174 return new ModelAndView(defaultViewName);
177 @RequestMapping(value = { "/createuser" }, method = RequestMethod.GET)
178 public ModelAndView createUser(HttpServletRequest request) {
179 final String defaultViewName = null;
180 return new ModelAndView(defaultViewName);
183 @RequestMapping(value = { "/process_csp" }, method = RequestMethod.GET)
184 public ModelAndView processCsp(HttpServletRequest request, HttpServletResponse response) throws Exception {
185 return new ModelAndView("redirect:login.htm?redirectUrl=" + request.getParameter("redirectUrl"));
188 @RequestMapping(value = { "/resetuser" }, method = RequestMethod.GET)
189 public ModelAndView resetUser(HttpServletRequest request) {
190 final String defaultViewName = null;
191 return new ModelAndView(defaultViewName);
194 @RequestMapping(value = { "/getuser" }, method = RequestMethod.GET)
195 public ModelAndView getUser(HttpServletRequest request) {
196 final String defaultViewName = null;
197 return new ModelAndView(defaultViewName);
200 @RequestMapping(value = { "/updatepassword" }, method = RequestMethod.GET)
201 public ModelAndView updatePassword(HttpServletRequest request) {
202 final String defaultViewName = null;
203 return new ModelAndView(defaultViewName);
206 @RequestMapping(value = { "/logout.htm" }, method = RequestMethod.GET)
207 public ModelAndView login() {
208 Map<String, Object> model = new HashMap<>();
209 return new ModelAndView("logout", "model", model);