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:
  • Constructor Details

    • OMRSEventV1

      public OMRSEventV1()
      Default constructor ensures the protocol version id is set in the superclass.
  • Method Details

    • 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)
      Set up details about the event originator. This is to help trace the source of errors or metadata.
      Parameters:
      originator - event originator object
    • getEventCategory

      public OMRSEventCategory getEventCategory()
      Return whether this is a registry, type or instance event.
      Returns:
      category
    • setEventCategory

      public void setEventCategory(OMRSEventCategory eventCategory)
      Set up whether this is a registry, type or instance event.
      Parameters:
      eventCategory - category
    • getRegistryEventSection

      public OMRSEventV1RegistrySection getRegistryEventSection()
      Return the properties specific to a registry event.
      Returns:
      registry section
    • setRegistryEventSection

      public void setRegistryEventSection(OMRSEventV1RegistrySection registryEventSection)
      Set up the properties specific to a registry event.
      Parameters:
      registryEventSection - registry section
    • getTypeDefEventSection

      public OMRSEventV1TypeDefSection getTypeDefEventSection()
      Return the properties specific to a type event.
      Returns:
      type section
    • setTypeDefEventSection

      public void setTypeDefEventSection(OMRSEventV1TypeDefSection typeDefEventSection)
      Set up the properties specific to a type event.
      Parameters:
      typeDefEventSection - type section
    • getInstanceEventSection

      public OMRSEventV1InstanceSection getInstanceEventSection()
      Return the properties specific to an instance event.
      Returns:
      instance section
    • setInstanceEventSection

      public void setInstanceEventSection(OMRSEventV1InstanceSection instanceEventSection)
      Set up the properties specific to an instance event.
      Parameters:
      instanceEventSection - instance section
    • getErrorSection

      public OMRSEventV1ErrorSection getErrorSection()
      Return the properties specific to an error event.
      Returns:
      error section
    • setErrorSection

      public void setErrorSection(OMRSEventV1ErrorSection errorSection)
      Set up the properties specific to an error event.
      Parameters:
      errorSection - error section
    • toString

      public String toString()
      JSON-style toString.
      Overrides:
      toString in class OMRSEventBean
      Returns:
      list of properties and their values.