a84d2174c44e8ff8776e7a2badcb4e283e49ef9e
[portal/sdk.git] /
1 /*-
2  * ================================================================================
3  * eCOMP Portal SDK
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ================================================================================
19  */
20 package org.openecomp.portalsdk.analytics.system.fusion.web;
21
22
23 import java.util.*;
24
25 import javax.servlet.http.*;
26
27 import org.openecomp.portalsdk.analytics.system.fusion.domain.CR_Report;
28 import org.openecomp.portalsdk.analytics.system.fusion.service.RaptorService;
29 import org.springframework.web.bind.*;
30 import org.springframework.web.servlet.*;
31
32
33 public class ReportsSearchListController  {
34     
35     private RaptorService raptorService =  null;
36
37     /**
38          * @return the raptorService
39          */
40         public RaptorService getRaptorService() {
41                 return raptorService;
42         }
43
44         /**
45          * @param raptorService the raptorService to set
46          */
47         public void setRaptorService(RaptorService raptorService) {
48                 this.raptorService = raptorService;
49         }
50
51         public ModelAndView handleRequestInternal(HttpServletRequest request,
52                                               HttpServletResponse response) {
53
54         /*List   items  = null;
55         int    reportId = ServletRequestUtils.getIntParameter(request, "report_id", 0);
56         String task   = ServletRequestUtils.getStringParameter(request, "task", TASK_GET);
57
58         HashMap  additionalParams = new HashMap();
59         additionalParams.put(Parameters.PARAM_HTTP_REQUEST, request);
60
61         if (reportId != 0 && task.equals(TASK_DELETE)) { // delete the selected record
62           getRaptorService().deleteReport(new Long(reportId));
63         }
64   
65         items = getRaptorService().getReports();
66
67         Map model = new HashMap();
68         model.put("items", items);
69
70         return new ModelAndView(getViewName(), "model", model);
71         */
72                 //return new ModelAndView(getViewName(), "model", null);
73                 System.out.println("Fill with proper code");
74                 return null;
75     }
76
77 }