Class DigitalServiceOutboundEvent
java.lang.Object
org.odpi.openmetadata.accessservices.digitalservice.events.DigitalServiceEventHeader
org.odpi.openmetadata.accessservices.digitalservice.events.DigitalServiceOutboundEvent
DigitalServiceOutboundEvent describes the structure of the events emitted by the Data Manager OMAS.
-
Constructor Summary
ConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return comparison result based on the content of the properties.Return the name of the classification that has changed.Return the element at end one of the relationship that is described in the principleElement.Return the element at end two of the relationship that is described in the principleElement.Return the type of event.Return the element that is the subject of the event.int
hashCode()
Return hash code for this objectvoid
setClassificationName
(String classificationName) Set up the name of the classification that has changed.void
setEndOneElement
(ElementStub endOneElement) Set up the element at end one of the relationship that is described in the principleElement.void
setEndTwoElement
(ElementStub endTwoElement) Set up the element at end two of the relationship that is described in the principleElement.void
setEventType
(DigitalServiceOutboundEventType eventType) Set up the type of event.void
setPrincipleElement
(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
Return the element that is the subject of the event.- Returns:
- element identifiers
-
setPrincipleElement
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
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
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
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
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:
toString
in classDigitalServiceEventHeader
- Returns:
- return string containing the property names and values
-
equals
Return comparison result based on the content of the properties.- Overrides:
equals
in classDigitalServiceEventHeader
- Parameters:
objectToCompare
- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCode
in classDigitalServiceEventHeader
- Returns:
- int hash code
-