Example #1
0
 @RequestMapping(
     value = "/audits/all",
     method = RequestMethod.GET,
     produces = MediaType.APPLICATION_JSON_VALUE)
 @RolesAllowed(AuthoritiesConstants.ADMIN)
 public List<AuditEvent> findAll() {
   return auditEventService.findAll();
 }
Example #2
0
 @RequestMapping(
     value = "/audits/byDates",
     method = RequestMethod.GET,
     produces = MediaType.APPLICATION_JSON_VALUE)
 @RolesAllowed(AuthoritiesConstants.ADMIN)
 public List<AuditEvent> findByDates(
     @RequestParam(value = "fromDate") LocalDateTime fromDate,
     @RequestParam(value = "toDate") LocalDateTime toDate) {
   return auditEventService.findByDates(fromDate, toDate);
 }