Class ErrorController
java.lang.Object
ch.admin.bit.jeap.errorhandling.web.api.ErrorController
-
Constructor Summary
ConstructorsConstructorDescriptionErrorController(ErrorService errorService, ErrorSearchService errorSearchService, ScheduledResendService scheduledResendService, AuditLogService auditLogService, DomainEventDeserializer domainEventDeserializer, ch.admin.bit.jeap.security.resource.semanticAuthentication.ServletSemanticAuthorization jeapSemanticAuthorization, ch.admin.bit.jeap.messaging.kafka.properties.KafkaProperties kafkaProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteError(UUID errorId, String reason) voiddeleteErrorList(ErrorListDTO errors, String reason) findErrors(int pageIndex, int pageSize, ErrorSearchFormDto errorSearchFormDto) getCausingEventPayload(UUID errorId) getErrorDetails(UUID errorId) listPermanentErrors(int pageIndex, int pageSize) listTemporaryErrors(int pageIndex, int pageSize) voidretryEvent(UUID errorId) voidretryEventList(ErrorListDTO errors)
-
Constructor Details
-
ErrorController
public ErrorController(ErrorService errorService, ErrorSearchService errorSearchService, ScheduledResendService scheduledResendService, AuditLogService auditLogService, DomainEventDeserializer domainEventDeserializer, ch.admin.bit.jeap.security.resource.semanticAuthentication.ServletSemanticAuthorization jeapSemanticAuthorization, ch.admin.bit.jeap.messaging.kafka.properties.KafkaProperties kafkaProperties)
-
-
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
-
getAllErrorCodes
-
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
-
getCausingEventPayload
-
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
-
deleteErrorList
@PostMapping("/delete") @PreAuthorize("hasRole(\'error\',\'delete\')") public void deleteErrorList(@RequestBody ErrorListDTO errors, @RequestParam(required=false) String reason)
-