Class WatchdogMetadataElementEvent

java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.events.WatchdogGovernanceEvent
org.odpi.openmetadata.frameworks.governanceaction.events.WatchdogMetadataElementEvent
Direct Known Subclasses:
WatchdogClassificationEvent

public class WatchdogMetadataElementEvent extends WatchdogGovernanceEvent
WatchdogMetadataElementEvent describes the structure of the events passed to the WatchdogGovernanceActionService that relate to changes to metadata elements. That is event types:
  • NEW_ELEMENT
  • REFRESHED_ELEMENT
  • UPDATED_ELEMENT_PROPERTIES
  • DELETED_ELEMENT
The metadataElement property holds the current value of the metadata element. The previousMetadataElement is optionally set for the UPDATED_ELEMENT_PROPERTIES event.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
    Copy/clone constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object objectToCompare)
    Compare the values of the supplied object with those stored in the current object.
    org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataElement
    Return the properties for the metadata element that is the subject of this event.
    org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataElement
    For UPDATED_ELEMENT_PROPERTIES events, return the previous values for the metadata event if available.
    int
    Create a hash code for this element type.
    void
    setMetadataElement(org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataElement metadataElement)
    Set up the properties for the metadata element that is the subject of this event.
    void
    setPreviousMetadataElement(org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataElement previousMetadataElement)
    For UPDATED_ELEMENT_PROPERTIES events, set up the previous values for the metadata event if available.
    Standard toString method.

    Methods inherited from class org.odpi.openmetadata.frameworks.governanceaction.events.WatchdogGovernanceEvent

    getEventType, setEventType

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • WatchdogMetadataElementEvent

      public WatchdogMetadataElementEvent()
      Default constructor
    • WatchdogMetadataElementEvent

      public WatchdogMetadataElementEvent(WatchdogMetadataElementEvent template)
      Copy/clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • getMetadataElement

      public org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataElement getMetadataElement()
      Return the properties for the metadata element that is the subject of this event.
      Returns:
      metadata element properties
    • setMetadataElement

      public void setMetadataElement(org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataElement metadataElement)
      Set up the properties for the metadata element that is the subject of this event.
      Parameters:
      metadataElement - metadata element properties
    • getPreviousMetadataElement

      public org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataElement getPreviousMetadataElement()
      For UPDATED_ELEMENT_PROPERTIES events, return the previous values for the metadata event if available. Otherwise this is null.
      Returns:
      metadata element properties
    • setPreviousMetadataElement

      public void setPreviousMetadataElement(org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataElement previousMetadataElement)
      For UPDATED_ELEMENT_PROPERTIES events, set up the previous values for the metadata event if available. Otherwise this is null.
      Parameters:
      previousMetadataElement - metadata element properties
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class WatchdogGovernanceEvent
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class WatchdogGovernanceEvent
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Create a hash code for this element type.
      Overrides:
      hashCode in class WatchdogGovernanceEvent
      Returns:
      int hash code