Class DigitalServiceOutboundEvent
java.lang.Object
org.odpi.openmetadata.accessservices.digitalservice.events.DigitalServiceEventHeader
org.odpi.openmetadata.accessservices.digitalservice.events.DigitalServiceOutboundEvent
- All Implemented Interfaces:
Serializable
DigitalServiceOutboundEvent describes the structure of the events emitted by the Data Manager OMAS.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn comparison result based on the content of the properties.Return the name of the classification that has changed.org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStubReturn the element at end one of the relationship that is described in the principleElement.org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStubReturn the element at end two of the relationship that is described in the principleElement.Return the type of event.org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStubReturn the element that is the subject of the event.inthashCode()Return hash code for this objectvoidsetClassificationName(String classificationName) Set up the name of the classification that has changed.voidsetEndOneElement(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub endOneElement) Set up the element at end one of the relationship that is described in the principleElement.voidsetEndTwoElement(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub endTwoElement) Set up the element at end two of the relationship that is described in the principleElement.voidsetEventType(DigitalServiceOutboundEventType eventType) Set up the type of event.voidsetPrincipleElement(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub principleElement) Set up the element that is the subject of the event.toString()JSON-style toStringMethods inherited from class org.odpi.openmetadata.accessservices.digitalservice.events.DigitalServiceEventHeader
getEventVersionId, setEventVersionId
-
Constructor Details
-
DigitalServiceOutboundEvent
public DigitalServiceOutboundEvent()Default constructor -
DigitalServiceOutboundEvent
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getEventType
Return the type of event.- Returns:
- event type enum
-
setEventType
Set up the type of event.- Parameters:
eventType- - event type enum
-
getPrincipleElement
public org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub getPrincipleElement()Return the element that is the subject of the event.- Returns:
- element identifiers
-
setPrincipleElement
public void setPrincipleElement(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub principleElement) Set up the element that is the subject of the event.- Parameters:
principleElement- element identifiers
-
getClassificationName
Return the name of the classification that has changed. Only set up for classify, reclassify and declassify events.- Returns:
- string name
-
setClassificationName
Set up the name of the classification that has changed. Only set up for classify, reclassify and declassify events.- Parameters:
classificationName- string name
-
getEndOneElement
public org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub getEndOneElement()Return the element at end one of the relationship that is described in the principleElement. This is only set up on relationship events.- Returns:
- element stub of entity at end 1
-
setEndOneElement
public void setEndOneElement(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub endOneElement) Set up the element at end one of the relationship that is described in the principleElement. This is only set up on relationship events.- Parameters:
endOneElement- element stub of entity at end 1
-
getEndTwoElement
public org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub getEndTwoElement()Return the element at end two of the relationship that is described in the principleElement. This is only set up on relationship events.- Returns:
- element stub of entity at end 2
-
setEndTwoElement
public void setEndTwoElement(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub endTwoElement) Set up the element at end two of the relationship that is described in the principleElement. This is only set up on relationship events.- Parameters:
endTwoElement- element stub of entity at end 2
-
toString
JSON-style toString- Overrides:
toStringin classDigitalServiceEventHeader- Returns:
- return string containing the property names and values
-
equals
Return comparison result based on the content of the properties.- Overrides:
equalsin classDigitalServiceEventHeader- Parameters:
objectToCompare- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCodein classDigitalServiceEventHeader- Returns:
- int hash code
-