Class OMRSEventV1
java.lang.Object
org.odpi.openmetadata.repositoryservices.events.beans.OMRSEventBean
org.odpi.openmetadata.repositoryservices.events.beans.v1.OMRSEventV1
- All Implemented Interfaces:
Serializable
OMRSEventV1 is the OMRSEvent payload for version 1 of the open metadata and governance message exchange.
It has different sections for the different types of event.
- See Also:
-
Field Summary
Fields inherited from class org.odpi.openmetadata.repositoryservices.events.beans.OMRSEventBean
protocolVersionId -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor ensures the protocol version id is set in the superclass. -
Method Summary
Modifier and TypeMethodDescriptionReturn the properties specific to an error event.Return whether this is a registry, type or instance event.Return the properties specific to an instance event.Return details about the event originator.Return the properties specific to a registry event.Return the timestamp for when the event was created.Return the properties specific to a type event.voidsetErrorSection(OMRSEventV1ErrorSection errorSection) Set up the properties specific to an error event.voidsetEventCategory(OMRSEventCategory eventCategory) Set up whether this is a registry, type or instance event.voidsetInstanceEventSection(OMRSEventV1InstanceSection instanceEventSection) Set up the properties specific to an instance event.voidsetOriginator(OMRSEventOriginator originator) Set up details about the event originator.voidsetRegistryEventSection(OMRSEventV1RegistrySection registryEventSection) Set up the properties specific to a registry event.voidsetTimestamp(Date timestamp) Set up the timestamp for when the event was created.voidsetTypeDefEventSection(OMRSEventV1TypeDefSection typeDefEventSection) Set up the properties specific to a type event.toString()JSON-style toString.Methods inherited from class org.odpi.openmetadata.repositoryservices.events.beans.OMRSEventBean
getProtocolVersionId, setProtocolVersionId
-
Constructor Details
-
OMRSEventV1
public OMRSEventV1()Default constructor ensures the protocol version id is set in the superclass.
-
-
Method Details
-
getTimestamp
Return the timestamp for when the event was created.- Returns:
- date and time
-
setTimestamp
Set up the timestamp for when the event was created.- Parameters:
timestamp- data/time for the event creation
-
getOriginator
Return details about the event originator. This is to help trace the source of errors or metadata.- Returns:
- event originator object
-
setOriginator
Set up details about the event originator. This is to help trace the source of errors or metadata.- Parameters:
originator- event originator object
-
getEventCategory
Return whether this is a registry, type or instance event.- Returns:
- category
-
setEventCategory
Set up whether this is a registry, type or instance event.- Parameters:
eventCategory- category
-
getRegistryEventSection
Return the properties specific to a registry event.- Returns:
- registry section
-
setRegistryEventSection
Set up the properties specific to a registry event.- Parameters:
registryEventSection- registry section
-
getTypeDefEventSection
Return the properties specific to a type event.- Returns:
- type section
-
setTypeDefEventSection
Set up the properties specific to a type event.- Parameters:
typeDefEventSection- type section
-
getInstanceEventSection
Return the properties specific to an instance event.- Returns:
- instance section
-
setInstanceEventSection
Set up the properties specific to an instance event.- Parameters:
instanceEventSection- instance section
-
getErrorSection
Return the properties specific to an error event.- Returns:
- error section
-
setErrorSection
Set up the properties specific to an error event.- Parameters:
errorSection- error section
-
toString
JSON-style toString.- Overrides:
toStringin classOMRSEventBean- Returns:
- list of properties and their values.
-