+ this.testResults.eiJobStatusCallbacks.add(status);
+ return new ResponseEntity<>(HttpStatus.OK);
+ }
+
+ private static final String TYPE_STATUS_CALLBACK_URL = "/example_dataconsumer/info_type_status";
+
+ public static String getTypeStatusCallbackUrl() {
+ return TYPE_STATUS_CALLBACK_URL;
+ }
+
+ @Tag(name = ConsumerConsts.CONSUMER_API_CALLBACKS_NAME)
+ @PostMapping(path = TYPE_STATUS_CALLBACK_URL, produces = MediaType.APPLICATION_JSON_VALUE)
+ @Operation(
+ summary = "Callback for changed Information type registration status",
+ description = "The primitive is implemented by the data consumer and is invoked when a Information type status has been changed. <br/>"
+ + "Subscription are managed by primitives in '" + ConsumerConsts.CONSUMER_API_NAME + "'")
+ @ApiResponses(
+ value = { //
+ @ApiResponse(
+ responseCode = "200",
+ description = "OK", //
+ content = @Content(schema = @Schema(implementation = VoidResponse.class))) //
+ })
+ public ResponseEntity<Object> typeStatusCallback( //
+ @RequestBody ConsumerTypeRegistrationInfo status) {
+ logger.info("Job type registration status callback status: {}", status);
+ this.testResults.typeRegistrationInfoCallbacks.add(status);