| Line 1... |
Line 1... |
| 1 |
package com.spice.profitmandi.web.controller;
|
1 |
package com.spice.profitmandi.web.controller;
|
| 2 |
|
2 |
|
| 3 |
import java.io.IOException;
|
3 |
import java.io.IOException;
|
| - |
|
4 |
import java.util.HashMap;
|
| 4 |
import java.util.Map;
|
5 |
import java.util.Map;
|
| 5 |
|
6 |
|
| 6 |
import javax.servlet.http.HttpServletRequest;
|
7 |
import javax.servlet.http.HttpServletRequest;
|
| 7 |
|
8 |
|
| 8 |
import org.apache.http.HttpResponse;
|
9 |
import org.apache.http.HttpResponse;
|
| Line 53... |
Line 54... |
| 53 |
throws ProfitMandiBusinessException, UnsupportedOperationException, IOException {
|
54 |
throws ProfitMandiBusinessException, UnsupportedOperationException, IOException {
|
| 54 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
55 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
| 55 |
HttpResponse response;
|
56 |
HttpResponse response;
|
| 56 |
if (roleManager.isAdmin(loginDetails.getRoleIds())) {
|
57 |
if (roleManager.isAdmin(loginDetails.getRoleIds())) {
|
| 57 |
} else {
|
58 |
} else {
|
| 58 |
//Ensuring on partner data;
|
59 |
if(paramsMap==null) {
|
| - |
|
60 |
paramsMap = new HashMap<String, String>();
|
| - |
|
61 |
}
|
| 59 |
paramsMap.put("MANUAL_fofoId", loginDetails.getFofoId() + "");
|
62 |
paramsMap.put("MANUAL_fofoId", loginDetails.getFofoId() + "");
|
| 60 |
}
|
63 |
}
|
| 61 |
response = getAdminReportFile(loginDetails.getEmailId(), projectName, fileName + ".xml", paramsMap);
|
64 |
response = getAdminReportFile(loginDetails.getEmailId(), projectName, fileName + ".xml", paramsMap);
|
| 62 |
HttpHeaders headers = new HttpHeaders();
|
65 |
HttpHeaders headers = new HttpHeaders();
|
| 63 |
InputStreamResource is = new InputStreamResource(response.getEntity().getContent());
|
66 |
InputStreamResource is = new InputStreamResource(response.getEntity().getContent());
|