Class OMRSEventV1
- java.lang.Object
-
- org.odpi.openmetadata.repositoryservices.events.beans.OMRSEventBean
-
- org.odpi.openmetadata.repositoryservices.events.beans.v1.OMRSEventV1
-
- All Implemented Interfaces:
Serializable
public class OMRSEventV1 extends OMRSEventBean
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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.repositoryservices.events.beans.OMRSEventBean
protocolVersionId
-
-
Constructor Summary
Constructors Constructor Description OMRSEventV1()Default constructor ensures the protocol version id is set in the superclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OMRSEventV1ErrorSectiongetErrorSection()OMRSEventCategorygetEventCategory()OMRSEventV1InstanceSectiongetInstanceEventSection()OMRSEventOriginatorgetOriginator()Return details about the event originator.OMRSEventV1RegistrySectiongetRegistryEventSection()DategetTimestamp()Return the timestamp for when the event was created.OMRSEventV1TypeDefSectiongetTypeDefEventSection()voidsetErrorSection(OMRSEventV1ErrorSection errorSection)voidsetEventCategory(OMRSEventCategory eventCategory)voidsetInstanceEventSection(OMRSEventV1InstanceSection instanceEventSection)voidsetOriginator(OMRSEventOriginator originator)voidsetRegistryEventSection(OMRSEventV1RegistrySection registryEventSection)voidsetTimestamp(Date timestamp)Set up the timestamp for when the event was created.voidsetTypeDefEventSection(OMRSEventV1TypeDefSection typeDefEventSection)StringtoString()JSON-style toString.-
Methods inherited from class org.odpi.openmetadata.repositoryservices.events.beans.OMRSEventBean
getProtocolVersionId, setProtocolVersionId
-
-
-
-
Method Detail
-
getTimestamp
public Date getTimestamp()
Return the timestamp for when the event was created.- Returns:
- date and time
-
setTimestamp
public void setTimestamp(Date timestamp)
Set up the timestamp for when the event was created.- Parameters:
timestamp- data/time for the event creation
-
getOriginator
public OMRSEventOriginator getOriginator()
Return details about the event originator. This is to help trace the source of errors or metadata.- Returns:
- event originator object
-
setOriginator
public void setOriginator(OMRSEventOriginator originator)
-
getEventCategory
public OMRSEventCategory getEventCategory()
-
setEventCategory
public void setEventCategory(OMRSEventCategory eventCategory)
-
getRegistryEventSection
public OMRSEventV1RegistrySection getRegistryEventSection()
-
setRegistryEventSection
public void setRegistryEventSection(OMRSEventV1RegistrySection registryEventSection)
-
getTypeDefEventSection
public OMRSEventV1TypeDefSection getTypeDefEventSection()
-
setTypeDefEventSection
public void setTypeDefEventSection(OMRSEventV1TypeDefSection typeDefEventSection)
-
getInstanceEventSection
public OMRSEventV1InstanceSection getInstanceEventSection()
-
setInstanceEventSection
public void setInstanceEventSection(OMRSEventV1InstanceSection instanceEventSection)
-
getErrorSection
public OMRSEventV1ErrorSection getErrorSection()
-
setErrorSection
public void setErrorSection(OMRSEventV1ErrorSection errorSection)
-
toString
public String toString()
JSON-style toString.- Overrides:
toStringin classOMRSEventBean- Returns:
- list of properties and their values.
-
-