-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MODINV-986: InstanceIngressEventConsumer and CreateInstanceIngressEve…
…ntHandler
- Loading branch information
Showing
25 changed files
with
896 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"description": "Instance ingress event data model", | ||
"javaType": "org.folio.rest.jaxrs.model.InstanceIngressEvent", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"id": { | ||
"description": "UUID", | ||
"$ref": "uuid.json" | ||
}, | ||
"eventType": { | ||
"type": "string", | ||
"enum": ["CREATE_INSTANCE", "UPDATE_INSTANCE"], | ||
"description": "Instance ingress event type" | ||
}, | ||
"eventMetadata": { | ||
"description": "Event metadata", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"tenantId": { | ||
"description": "Tenant id", | ||
"type": "string" | ||
}, | ||
"eventTTL": { | ||
"description": "Time-to-live (TTL) for event in minutes", | ||
"type": "integer" | ||
}, | ||
"correlationId": { | ||
"description": "Id to track related events, can be a meaningful string or a UUID", | ||
"type": "string" | ||
}, | ||
"originalEventId": { | ||
"description": "Id of the event that started the sequence of related events", | ||
"$ref": "uuid.json" | ||
}, | ||
"publisherCallback": { | ||
"description": "Allows a publisher to provide a callback endpoint or an error Event Type to be notified that despite the fact that there are subscribers for such an event type no one has received the event within the specified period of time", | ||
"type": "object", | ||
"properties": { | ||
"endpoint": { | ||
"description": "Callback endpoint", | ||
"type": "string" | ||
}, | ||
"eventType": { | ||
"description": "Error Event Type", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"createdDate": { | ||
"description": "Timestamp when event was created", | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"publishedDate": { | ||
"description": "Timestamp when event was initially published to the underlying topic", | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"createdBy": { | ||
"description": "Username of the user whose action caused an event", | ||
"type": "string" | ||
}, | ||
"publishedBy": { | ||
"description": "Name and version of the module that published an event", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"tenantId", | ||
"eventTTL", | ||
"publishedBy" | ||
] | ||
}, | ||
"eventPayload": { | ||
"type": "object", | ||
"description": "An instance source record container", | ||
"$ref": "instance-ingress-payload.json" | ||
} | ||
}, | ||
"excludedFromEqualsAndHashCode": [ | ||
"eventMetadata", | ||
"eventPayload" | ||
], | ||
"required": [ | ||
"id", | ||
"eventType", | ||
"eventMetadata" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"description": "An instance source record container", | ||
"type": "object", | ||
"properties": { | ||
"sourceRecordIdentifier": { | ||
"type": "string", | ||
"description": "The source record identifier" | ||
}, | ||
"sourceRecordObject": { | ||
"type": "string", | ||
"description": "The source record JSON object" | ||
}, | ||
"sourceType": { | ||
"type": "string", | ||
"enum": ["BIBFRAME", "MARC", "FOLIO"], | ||
"description": "Source type" | ||
} | ||
}, | ||
"additionalProperties": true, | ||
"required": [ | ||
"sourceRecordObject", | ||
"sourceType" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.