Class ErrorController

java.lang.Object
ch.admin.bit.jeap.errorhandling.web.api.ErrorController

@RestController @RequestMapping("/api/error") public class ErrorController extends Object
  • Constructor Details

  • Method Details

    • findErrors

      @PostMapping("/") @PreAuthorize("hasRole(\'error\',\'view\')") @Transactional(readOnly=true) public ErrorListDTO findErrors(@RequestParam(name="pageIndex",required=false,defaultValue="0") int pageIndex, @RequestParam(name="pageSize",required=false,defaultValue="10") int pageSize, @RequestBody ErrorSearchFormDto errorSearchFormDto)
    • getAllEventSources

      @GetMapping("/eventsources") @PreAuthorize("hasRole(\'error\',\'view\')") @Transactional(readOnly=true) public List<String> getAllEventSources()
    • getAllErrorCodes

      @GetMapping("/errorcodes") @PreAuthorize("hasRole(\'error\',\'view\')") @Transactional(readOnly=true) public List<String> getAllErrorCodes()
    • getAllEventNames

      @GetMapping("/eventnames") @PreAuthorize("hasRole(\'error\',\'view\')") @Transactional(readOnly=true) public List<String> getAllEventNames()
    • listPermanentErrors

      @GetMapping("/permanent") @PreAuthorize("hasRole(\'error\',\'view\')") @Transactional(readOnly=true) public ErrorListDTO listPermanentErrors(@RequestParam(name="pageIndex",required=false,defaultValue="0") int pageIndex, @RequestParam(name="pageSize",required=false,defaultValue="10") int pageSize)
    • listTemporaryErrors

      @GetMapping("/temporary") @PreAuthorize("hasRole(\'error\',\'view\')") @Transactional(readOnly=true) public ErrorListDTO listTemporaryErrors(@RequestParam(name="pageIndex",required=false,defaultValue="0") int pageIndex, @RequestParam(name="pageSize",required=false,defaultValue="10") int pageSize)
    • getErrorDetails

      @GetMapping("/{errorId}/details") @PreAuthorize("hasRole(\'error\',\'view\')") @Transactional(readOnly=true) public ErrorDTO getErrorDetails(@PathVariable("errorId") UUID errorId)
    • getCausingEventPayload

      @GetMapping(value="/{errorId}/event/payload", produces="text/plain") @PreAuthorize("hasRole(\'error\',\'view\')") @Transactional(readOnly=true) public String getCausingEventPayload(@PathVariable("errorId") UUID errorId)
    • retryEvent

      @PostMapping("/{errorId}/event/retry") @PreAuthorize("hasRole(\'error\',\'retry\')") public void retryEvent(@PathVariable("errorId") UUID errorId)
    • retryEventList

      @PostMapping("/event/retry") @PreAuthorize("hasRole(\'error\',\'retry\')") public void retryEventList(@RequestBody ErrorListDTO errors)
    • deleteError

      @DeleteMapping("/{errorId}") @PreAuthorize("hasRole(\'error\',\'delete\')") public void deleteError(@PathVariable("errorId") UUID errorId, @RequestParam(required=false) String reason)
    • deleteErrorList

      @PostMapping("/delete") @PreAuthorize("hasRole(\'error\',\'delete\')") public void deleteErrorList(@RequestBody ErrorListDTO errors, @RequestParam(required=false) String reason)