| Line 78... |
Line 78... |
| 78 |
@Autowired
|
78 |
@Autowired
|
| 79 |
private AuthRepository authRepository;
|
79 |
private AuthRepository authRepository;
|
| 80 |
|
80 |
|
| 81 |
@PostMapping(value = "/reports/{projectName}/{fileName}")
|
81 |
@PostMapping(value = "/reports/{projectName}/{fileName}")
|
| 82 |
public ResponseEntity<?> fetchReport(HttpServletRequest request, @PathVariable String fileName,
|
82 |
public ResponseEntity<?> fetchReport(HttpServletRequest request, @PathVariable String fileName,
|
| 83 |
@PathVariable ReporticoProject projectName, @RequestBody(required = false) Map<String, String> paramsMap)
|
83 |
@PathVariable ReporticoProject projectName, @RequestBody Map<String, String> paramsMap)
|
| 84 |
throws ProfitMandiBusinessException, UnsupportedOperationException, IOException {
|
84 |
throws ProfitMandiBusinessException, UnsupportedOperationException, IOException {
|
| 85 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
85 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
| 86 |
HttpResponse response;
|
86 |
HttpResponse response;
|
| 87 |
if (roleManager.isAdmin(loginDetails.getRoleIds())) {
|
87 |
if (roleManager.isAdmin(loginDetails.getRoleIds())) {
|
| 88 |
|
88 |
|