Class AssetManagerOutTopicEvent
java.lang.Object
org.odpi.openmetadata.accessservices.assetmanager.events.AssetManagerOutTopicEvent
- All Implemented Interfaces:
Serializable
AssetManagerOutTopicEvent provides the structure of the Asset Manager OMAS's OutTopic events. The values for elements and their classifications
come from the events. They are not guaranteed to be current. If the latest values are required, the element should be queried from the repository
using its GUID. The event values are useful if the third party catalog needs to maintain an exact record of all the versions.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault ConstructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the name of the classification if the event relates to classifications.org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeaderReturn details of the subject of the event.Return the map of properties for the element provided with the event.org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeaderReturn the element at end one of the relationship that is described in the principleElement.Return the property map for end one's properties (used for relationship events).org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeaderReturn the element at end two of the relationship that is described in the principleElement.Return the property map for end two's properties (used for relationship events).Return the time that the element was updated.Return the event type.longReturn the event version id.Return the property map for the previous version of a classification's properties (used for reclassify events).org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeaderReturn the previous version of the element's header (if the event is related to an element update).Return the previous version of the element's properties (if the event is related to an element update).inthashCode()Create a hash code for this element type.voidsetClassificationName(String classificationName) Set up the name of the classification if the event relates to classifications.voidsetElementHeader(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader elementHeader) Set up details of the subject of the event.voidsetElementProperties(Map<String, Object> elementProperties) Set up the map of properties for the element provided with the event.voidsetEndOneElementHeader(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader endOneElementHeader) Set up the element at end one of the relationship that is described in the principleElement.voidsetEndOneElementProperties(Map<String, Object> properties) Set up tthe property map for end one's properties (used for relationship events).voidsetEndTwoElementHeader(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader endTwoElementHeader) Set up the element at end two of the relationship that is described in the principleElement.voidsetEndTwoElementProperties(Map<String, Object> properties) Set up the property map for end two's properties (used for relationship events).voidsetEventTime(Date eventTime) Set up the time that the element was updated.voidsetEventType(AssetManagerEventType eventType) Set up the event type.voidsetEventVersionId(long eventVersionId) Set up the event version id.voidsetPreviousClassificationProperties(Map<String, Object> previousClassificationProperties) Set up the property map for the previous version of a classification's properties (used for reclassify events).voidsetPreviousElementHeader(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader previousElementHeader) Set up the previous version of the element's header (if the event is related to an element update).voidsetPreviousElementProperties(Map<String, Object> previousElementProperties) Set up the previous version of the element's properties (if the event is related to an element update).toString()Standard toString method.
-
Constructor Details
-
AssetManagerOutTopicEvent
public AssetManagerOutTopicEvent()Default Constructor -
AssetManagerOutTopicEvent
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getEventVersionId
public long getEventVersionId()Return the event version id.- Returns:
- long
-
setEventVersionId
public void setEventVersionId(long eventVersionId) Set up the event version id.- Parameters:
eventVersionId- long
-
getEventType
Return the event type.- Returns:
- the event type enum
-
setEventType
Set up the event type.- Parameters:
eventType- event type enum
-
getEventTime
Return the time that the element was updated.- Returns:
- date/time
-
setEventTime
Set up the time that the element was updated.- Parameters:
eventTime- date/time
-
getElementHeader
public org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader getElementHeader()Return details of the subject of the event.- Returns:
- element header
-
setElementHeader
public void setElementHeader(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader elementHeader) Set up details of the subject of the event.- Parameters:
elementHeader- element header
-
getElementProperties
Return the map of properties for the element provided with the event. These values are not guaranteed to be current.- Returns:
- property map
-
setElementProperties
Set up the map of properties for the element provided with the event. These values are not guaranteed to be current.- Parameters:
elementProperties- property map
-
getPreviousElementHeader
public org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader getPreviousElementHeader()Return the previous version of the element's header (if the event is related to an element update).- Returns:
- element header
-
setPreviousElementHeader
public void setPreviousElementHeader(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader previousElementHeader) Set up the previous version of the element's header (if the event is related to an element update).- Parameters:
previousElementHeader- element header
-
getPreviousElementProperties
Return the previous version of the element's properties (if the event is related to an element update).- Returns:
- property map
-
setPreviousElementProperties
Set up the previous version of the element's properties (if the event is related to an element update).- Parameters:
previousElementProperties- property map
-
getClassificationName
Return the name of the classification if the event relates to classifications.- Returns:
- string name
-
setClassificationName
Set up the name of the classification if the event relates to classifications.- Parameters:
classificationName- string name
-
getPreviousClassificationProperties
Return the property map for the previous version of a classification's properties (used for reclassify events).- Returns:
- property map
-
setPreviousClassificationProperties
public void setPreviousClassificationProperties(Map<String, Object> previousClassificationProperties) Set up the property map for the previous version of a classification's properties (used for reclassify events).- Parameters:
previousClassificationProperties- property map
-
getEndOneElementHeader
public org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader getEndOneElementHeader()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
-
setEndOneElementHeader
public void setEndOneElementHeader(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader endOneElementHeader) 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:
endOneElementHeader- element stub of entity at end 1
-
getEndOneElementProperties
Return the property map for end one's properties (used for relationship events).- Returns:
- property map
-
setEndOneElementProperties
Set up tthe property map for end one's properties (used for relationship events).- Parameters:
properties- property map
-
getEndTwoElementHeader
public org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader getEndTwoElementHeader()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
-
setEndTwoElementHeader
public void setEndTwoElementHeader(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader endTwoElementHeader) 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:
endTwoElementHeader- element stub of entity at end 2
-
getEndTwoElementProperties
Return the property map for end two's properties (used for relationship events).- Returns:
- property map
-
setEndTwoElementProperties
Set up the property map for end two's properties (used for relationship events).- Parameters:
properties- property map
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Create a hash code for this element type.
-