Exemplo n.º 1
0
 @RequestMapping(
     value = "/rest/audits/all",
     method = RequestMethod.GET,
     produces = MediaType.APPLICATION_JSON_VALUE)
 @RolesAllowed(AuthoritiesConstants.ADMIN)
 public List<AuditEvent> findAll() {
   return auditEventService.findAll();
 }
Exemplo n.º 2
0
 @RequestMapping(
     value = "/rest/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);
 }