Class WatchdogRelatedElementsEvent
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.governanceaction.events.WatchdogGovernanceEvent
-
- org.odpi.openmetadata.frameworks.governanceaction.events.WatchdogRelatedElementsEvent
-
- All Implemented Interfaces:
Serializable
public class WatchdogRelatedElementsEvent extends WatchdogGovernanceEvent
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
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WatchdogRelatedElementsEvent()Default constructorWatchdogRelatedElementsEvent(WatchdogRelatedElementsEvent template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.RelatedMetadataElementsgetPreviousRelatedMetadataElements()For UPDATED_RELATIONSHIP_PROPERTIES only, return the value is set to the previous values for the relationship, if available.RelatedMetadataElementsgetRelatedMetadataElements()Return the relationship details for the subject of this event.inthashCode()Create a hash code for this element type.voidsetPreviousRelatedMetadataElements(RelatedMetadataElements previousRelatedMetadataElements)For UPDATED_RELATIONSHIP_PROPERTIES only, set up the value is set to the previous values for the relationship, if available.voidsetRelatedMetadataElements(RelatedMetadataElements relatedMetadataElements)Set up the relationship details for the subject of this event.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.governanceaction.events.WatchdogGovernanceEvent
getEventType, setEventType
-
-
-
-
Constructor Detail
-
WatchdogRelatedElementsEvent
public WatchdogRelatedElementsEvent()
Default constructor
-
WatchdogRelatedElementsEvent
public WatchdogRelatedElementsEvent(WatchdogRelatedElementsEvent template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getRelatedMetadataElements
public RelatedMetadataElements getRelatedMetadataElements()
Return the relationship details for the subject of this event.- Returns:
- relationship
-
setRelatedMetadataElements
public void setRelatedMetadataElements(RelatedMetadataElements relatedMetadataElements)
Set up the relationship details for the subject of this event.- Parameters:
relatedMetadataElements- relationship
-
getPreviousRelatedMetadataElements
public RelatedMetadataElements 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(RelatedMetadataElements previousRelatedMetadataElements)
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:
previousRelatedMetadataElements- relationship
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classWatchdogGovernanceEvent- 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:
equalsin classWatchdogGovernanceEvent- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Create a hash code for this element type.- Overrides:
hashCodein classWatchdogGovernanceEvent- Returns:
- int hash code
-
-