@Test @WithMockUser(authorities = { "RESTORE_CONFIGURATION" }) public void resetBackupRestoreRunningSince() { ResponseEntity<Void> response = notificationsApiController.resetBackupRestoreRunningSince(); assertEquals(HttpStatus.NO_CONTENT, response.getStatusCode()); }
@PreAuthorize("hasAnyAuthority('BACKUP_CONFIGURATION', 'RESTORE_CONFIGURATION')") @PutMapping(value = "/alerts/reset") public ResponseEntity<Void> resetBackupRestoreRunningSince() { notificationService.resetBackupRestoreRunningSince(); return new ResponseEntity<>(HttpStatus.NO_CONTENT); }
NotificationsApiController { @PreAuthorize("hasAnyAuthority('BACKUP_CONFIGURATION', 'RESTORE_CONFIGURATION')") @PutMapping(value = "/alerts/reset") public ResponseEntity<Void> resetBackupRestoreRunningSince() { notificationService.resetBackupRestoreRunningSince(); return new ResponseEntity<>(HttpStatus.NO_CONTENT); } }
NotificationsApiController { @PreAuthorize("hasAnyAuthority('BACKUP_CONFIGURATION', 'RESTORE_CONFIGURATION')") @PutMapping(value = "/alerts/reset") public ResponseEntity<Void> resetBackupRestoreRunningSince() { notificationService.resetBackupRestoreRunningSince(); return new ResponseEntity<>(HttpStatus.NO_CONTENT); } @Autowired  NotificationsApiController(
            NotificationService notificationService, AlertDataConverter alertDataConverter); }
NotificationsApiController { @PreAuthorize("hasAnyAuthority('BACKUP_CONFIGURATION', 'RESTORE_CONFIGURATION')") @PutMapping(value = "/alerts/reset") public ResponseEntity<Void> resetBackupRestoreRunningSince() { notificationService.resetBackupRestoreRunningSince(); return new ResponseEntity<>(HttpStatus.NO_CONTENT); } @Autowired  NotificationsApiController(
            NotificationService notificationService, AlertDataConverter alertDataConverter); @GetMapping(value = "/session-status", produces = { "application/json" }) ResponseEntity<StatusData> isSessionAlive(HttpServletRequest request); @GetMapping(value = "/alerts", produces = { "application/json" }) ResponseEntity<AlertData> checkAlerts(); @PreAuthorize("hasAnyAuthority('BACKUP_CONFIGURATION', 'RESTORE_CONFIGURATION')") @PutMapping(value = "/alerts/reset") ResponseEntity<Void> resetBackupRestoreRunningSince(); }
NotificationsApiController { @PreAuthorize("hasAnyAuthority('BACKUP_CONFIGURATION', 'RESTORE_CONFIGURATION')") @PutMapping(value = "/alerts/reset") public ResponseEntity<Void> resetBackupRestoreRunningSince() { notificationService.resetBackupRestoreRunningSince(); return new ResponseEntity<>(HttpStatus.NO_CONTENT); } @Autowired  NotificationsApiController(
            NotificationService notificationService, AlertDataConverter alertDataConverter); @GetMapping(value = "/session-status", produces = { "application/json" }) ResponseEntity<StatusData> isSessionAlive(HttpServletRequest request); @GetMapping(value = "/alerts", produces = { "application/json" }) ResponseEntity<AlertData> checkAlerts(); @PreAuthorize("hasAnyAuthority('BACKUP_CONFIGURATION', 'RESTORE_CONFIGURATION')") @PutMapping(value = "/alerts/reset") ResponseEntity<Void> resetBackupRestoreRunningSince(); static final String NOTIFICATIONS_API_V1_PATH; }