| Line 33... |
Line 33... |
| 33 |
import org.apache.poi.ss.usermodel.Sheet;
|
33 |
import org.apache.poi.ss.usermodel.Sheet;
|
| 34 |
import org.apache.poi.ss.usermodel.Workbook;
|
34 |
import org.apache.poi.ss.usermodel.Workbook;
|
| 35 |
import org.apache.poi.ss.util.CellRangeAddress;
|
35 |
import org.apache.poi.ss.util.CellRangeAddress;
|
| 36 |
import org.apache.struts2.convention.annotation.InterceptorRef;
|
36 |
import org.apache.struts2.convention.annotation.InterceptorRef;
|
| 37 |
import org.apache.struts2.convention.annotation.InterceptorRefs;
|
37 |
import org.apache.struts2.convention.annotation.InterceptorRefs;
|
| - |
|
38 |
import org.apache.struts2.convention.annotation.Result;
|
| - |
|
39 |
import org.apache.struts2.convention.annotation.Results;
|
| 38 |
import org.apache.struts2.interceptor.ServletRequestAware;
|
40 |
import org.apache.struts2.interceptor.ServletRequestAware;
|
| 39 |
import org.apache.struts2.interceptor.ServletResponseAware;
|
41 |
import org.apache.struts2.interceptor.ServletResponseAware;
|
| 40 |
import org.apache.struts2.rest.DefaultHttpHeaders;
|
42 |
import org.apache.struts2.rest.DefaultHttpHeaders;
|
| 41 |
import org.apache.struts2.rest.HttpHeaders;
|
43 |
import org.apache.struts2.rest.HttpHeaders;
|
| 42 |
import org.apache.struts2.util.ServletContextAware;
|
44 |
import org.apache.struts2.util.ServletContextAware;
|
| Line 55... |
Line 57... |
| 55 |
|
57 |
|
| 56 |
@InterceptorRefs({
|
58 |
@InterceptorRefs({
|
| 57 |
@InterceptorRef("defaultStack"),
|
59 |
@InterceptorRef("defaultStack"),
|
| 58 |
@InterceptorRef("login")
|
60 |
@InterceptorRef("login")
|
| 59 |
})
|
61 |
})
|
| - |
|
62 |
@Results({
|
| - |
|
63 |
@Result(name="authfail", type="redirectAction", params = {"actionName" , "reports"})
|
| - |
|
64 |
})
|
| 60 |
public class HotspotReconciliationController implements ServletResponseAware, ServletRequestAware, ServletContextAware {
|
65 |
public class HotspotReconciliationController implements ServletResponseAware, ServletRequestAware, ServletContextAware {
|
| 61 |
|
66 |
|
| 62 |
private static Logger logger = LoggerFactory.getLogger(HotspotReconciliationController.class);
|
67 |
private static Logger logger = LoggerFactory.getLogger(HotspotReconciliationController.class);
|
| 63 |
|
68 |
|
| 64 |
private enum ReportColumn{
|
69 |
private enum ReportColumn{
|
| Line 96... |
Line 101... |
| 96 |
|
101 |
|
| 97 |
}
|
102 |
}
|
| 98 |
|
103 |
|
| 99 |
public String index() {
|
104 |
public String index() {
|
| 100 |
if(!ReportsUtils.canAccessReport((Long)session.getAttribute(ReportsUtils.ROLE), request.getServletPath())) {
|
105 |
if(!ReportsUtils.canAccessReport((Long)session.getAttribute(ReportsUtils.ROLE), request.getServletPath())) {
|
| 101 |
return "exception";
|
106 |
return "authfail";
|
| 102 |
}
|
107 |
}
|
| 103 |
return "report";
|
108 |
return "report";
|
| 104 |
}
|
109 |
}
|
| 105 |
|
110 |
|
| 106 |
// Handles the POST request (Form Submission)
|
111 |
// Handles the POST request (Form Submission)
|