Subversion Repositories SmartDukaan

Rev

Rev 33186 | Rev 33646 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33186 Rev 33187
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