Class WatchdogRelatedElementsEvent
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.events.WatchdogGovernanceEvent
org.odpi.openmetadata.frameworks.governanceaction.events.WatchdogRelatedElementsEvent
WatchdogRelatedElementsEvent describes the structure of the events passed to the WatchdogGovernanceActionService
that represent changes to relationships. It applies to the following event types:
- NEW_RELATIONSHIP
- REFRESHED_RELATIONSHIP
- UPDATED_RELATIONSHIP_PROPERTIES
- DELETED_RELATIONSHIP
-
Constructor Summary
ConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.For UPDATED_RELATIONSHIP_PROPERTIES only, return the value is set to the previous values for the relationship, if available.Return the relationship details for the subject of this event.int
hashCode()
Create a hash code for this element type.void
setPreviousRelatedMetadataElements
(OpenMetadataRelationship previousOpenMetadataRelationship) For UPDATED_RELATIONSHIP_PROPERTIES only, set up the value is set to the previous values for the relationship, if available.void
setRelatedMetadataElements
(OpenMetadataRelationship openMetadataRelationship) Set up the relationship details for the subject of this event.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.governanceaction.events.WatchdogGovernanceEvent
getEventType, setEventType
-
Constructor Details
-
WatchdogRelatedElementsEvent
public WatchdogRelatedElementsEvent()Default constructor -
WatchdogRelatedElementsEvent
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getRelatedMetadataElements
Return the relationship details for the subject of this event.- Returns:
- relationship
-
setRelatedMetadataElements
Set up the relationship details for the subject of this event.- Parameters:
openMetadataRelationship
- relationship
-
getPreviousRelatedMetadataElements
For UPDATED_RELATIONSHIP_PROPERTIES only, return the value is set to the previous values for the relationship, if available. For other event types, this is null.- Returns:
- relationship
-
setPreviousRelatedMetadataElements
public void setPreviousRelatedMetadataElements(OpenMetadataRelationship previousOpenMetadataRelationship) For UPDATED_RELATIONSHIP_PROPERTIES only, set up the value is set to the previous values for the relationship, if available. For other event types, this is null.- Parameters:
previousOpenMetadataRelationship
- relationship
-
toString
Standard toString method.- Overrides:
toString
in classWatchdogGovernanceEvent
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classWatchdogGovernanceEvent
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Create a hash code for this element type.- Overrides:
hashCode
in classWatchdogGovernanceEvent
- Returns:
- int hash code
-