public class OMRSInstanceEvent extends OMRSEvent
errorMessage, eventCategory, eventDirection, eventOriginator, eventTimestamp, genericErrorCode, otherAttributeTypeDef, otherInstanceGUID, otherMetadataCollectionId, otherOrigin, otherTypeDef, otherTypeDefSummary, targetAttributeTypeDef, targetInstanceGUID, targetMetadataCollectionId, targetRemoteConnection, targetTypeDefSummary| Constructor and Description |
|---|
OMRSInstanceEvent(OMRSEventV1 inboundEvent)
Inbound event constructor that takes the object created by the Jackson JSON mapper and unpacks the
properties into the instance event.
|
OMRSInstanceEvent(OMRSInstanceEventErrorCode errorCode,
String errorMessage,
String targetMetadataCollectionId,
TypeDefSummary targetTypeDefSummary,
String targetInstanceGUID,
String otherMetadataCollectionId,
InstanceProvenanceType otherOrigin,
TypeDefSummary otherTypeDefSummary,
String otherInstanceGUID)
Constructor for instance conflict events.
|
OMRSInstanceEvent(OMRSInstanceEventErrorCode errorCode,
String errorMessage,
String targetMetadataCollectionId,
TypeDefSummary targetTypeDefSummary,
String targetInstanceGUID,
TypeDefSummary otherTypeDefSummary)
Instance type conflict event.
|
OMRSInstanceEvent(OMRSInstanceEventType instanceEventType,
EntityDetail entity)
Constructor for instance events related to a change to an entity.
|
OMRSInstanceEvent(OMRSInstanceEventType instanceEventType,
EntityDetail entity,
Classification originalClassification,
Classification classification)
Constructor for instance events related to a change to an entity.
|
OMRSInstanceEvent(OMRSInstanceEventType instanceEventType,
EntityDetail originalEntity,
EntityDetail newEntity)
Constructor for instance events related to a change to an entity where the old version is supplied.
|
OMRSInstanceEvent(OMRSInstanceEventType instanceEventType,
InstanceGraph instances)
Constructor for batch instance events.
|
OMRSInstanceEvent(OMRSInstanceEventType instanceEventType,
Relationship relationship)
Constructor for instance events related to a change to a relationship.
|
OMRSInstanceEvent(OMRSInstanceEventType instanceEventType,
Relationship originalRelationship,
Relationship newRelationship)
Constructor for instance events related to a change to a relationship where the original values are also sent.
|
OMRSInstanceEvent(OMRSInstanceEventType instanceEventType,
String typeDefGUID,
String typeDefName,
String instanceGUID)
Constructor for instance events related to a delete or purge of an instance or a request to refresh
an instance.
|
| Modifier and Type | Method and Description |
|---|---|
Classification |
getClassification()
Return the new classification
|
EntityDetail |
getEntity()
Return the entity instance (if applicable) or null.
|
OMRSInstanceEventErrorCode |
getErrorCode()
Return the error code for this instance event.
|
String |
getHomeMetadataCollectionId()
Return the identifier of the instance's home metadata collection.
|
InstanceGraph |
getInstanceBatch()
Return the instance batch (if applicable) or null.
|
OMRSInstanceEventType |
getInstanceEventType()
Return the code for this event's type.
|
String |
getInstanceGUID()
Return the unique identifier for the instance itself.
|
OMRSEventV1 |
getOMRSEventV1()
Returns an OMRSEvent populated with details from this InstanceEvent
|
Classification |
getOriginalClassification()
Return the original classification if exists
|
EntityDetail |
getOriginalEntity()
Return the original entity instance (if applicable) or null.
|
String |
getOriginalHomeMetadataCollectionId()
Return the identifier of the original metadata collection for this instance.
|
String |
getOriginalInstanceGUID()
Return the original unique identifier (guid) for this instance.
|
Relationship |
getOriginalRelationship()
Return the original relationship instance (if applicable) or null.
|
TypeDefSummary |
getOriginalTypeDefSummary()
Return the original version for this instance's TypeDef.
|
Relationship |
getRelationship()
Return the relationship instance (if applicable) or null.
|
String |
getTypeDefGUID()
Return the unique identifier for the instance's TypeDef.
|
String |
getTypeDefName()
Return the unique name for the instance's TypeDef.
|
void |
setHomeMetadataCollectionId(String homeMetadataCollectionId)
Set up the home metadata collection Id.
|
void |
setOriginalHomeMetadataCollectionId(String originalHomeMetadataCollectionId)
Set up the unique id of the metadata collection that was the original home of a metadata instance that
has just been rehomed.
|
void |
setOriginalInstanceGUID(String originalInstanceGUID)
Set up the original unique id (guid) of an instance that has just been re-identified (ie it has
had a new guid assigned.
|
void |
setOriginalTypeDefSummary(TypeDefSummary originalTypeDefSummary)
Set up the details of the original TypeDef of a metadata instance that has just been reTyped.
|
String |
toString()
Standard toString method.
|
getErrorMessage, getEventCategory, getEventDirection, getEventOriginator, getEventTimestamp, getGenericErrorCode, getOtherAttributeTypeDef, getOtherInstanceGUID, getOtherMetadataCollectionId, getOtherOrigin, getOtherTypeDef, getOtherTypeDefSummary, getTargetAttributeTypeDef, getTargetInstanceGUID, getTargetMetadataCollectionId, getTargetRemoteConnection, getTargetTypeDefSummary, setEventOriginatorpublic OMRSInstanceEvent(OMRSEventV1 inboundEvent)
inboundEvent - incoming event to parse.public OMRSInstanceEvent(OMRSInstanceEventType instanceEventType, EntityDetail entity)
instanceEventType - type of evententity - new values for entity that changedpublic OMRSInstanceEvent(OMRSInstanceEventType instanceEventType, EntityDetail entity, Classification originalClassification, Classification classification)
instanceEventType - type of evententity - new values for entity that changedoriginalClassification - original Classification value (if existed)classification - new classification (if relevant)public OMRSInstanceEvent(OMRSInstanceEventType instanceEventType, EntityDetail originalEntity, EntityDetail newEntity)
instanceEventType - type of eventoriginalEntity - original value of the entitynewEntity - new values for entity that changedpublic OMRSInstanceEvent(OMRSInstanceEventType instanceEventType, Relationship relationship)
instanceEventType - type of eventrelationship - new values for relationship that changedpublic OMRSInstanceEvent(OMRSInstanceEventType instanceEventType, Relationship originalRelationship, Relationship newRelationship)
instanceEventType - type of eventoriginalRelationship - original values of relationshipnewRelationship - new values for relationship that changedpublic OMRSInstanceEvent(OMRSInstanceEventType instanceEventType, String typeDefGUID, String typeDefName, String instanceGUID)
instanceEventType - type of eventtypeDefGUID - unique identifier for this entity's TypeDeftypeDefName - name of this entity's TypeDefinstanceGUID - unique identifier for the entitypublic OMRSInstanceEvent(OMRSInstanceEventType instanceEventType, InstanceGraph instances)
instanceEventType - type of eventinstances - graph of instancespublic OMRSInstanceEvent(OMRSInstanceEventErrorCode errorCode, String errorMessage, String targetMetadataCollectionId, TypeDefSummary targetTypeDefSummary, String targetInstanceGUID, String otherMetadataCollectionId, InstanceProvenanceType otherOrigin, TypeDefSummary otherTypeDefSummary, String otherInstanceGUID)
errorCode - error codeerrorMessage - description of the errortargetMetadataCollectionId - metadata collection id of other repository with the conflicting instancetargetTypeDefSummary - details of the target instance's TypeDeftargetInstanceGUID - unique identifier for the source instanceotherMetadataCollectionId - local metadata collection idotherOrigin - provenance information of the local instanceotherTypeDefSummary - TypeDef details of the local instanceotherInstanceGUID - GUID of the local instancepublic OMRSInstanceEvent(OMRSInstanceEventErrorCode errorCode, String errorMessage, String targetMetadataCollectionId, TypeDefSummary targetTypeDefSummary, String targetInstanceGUID, TypeDefSummary otherTypeDefSummary)
errorCode - error codeerrorMessage - description of the errortargetMetadataCollectionId - metadata collection id of other repository with the conflicting instancetargetTypeDefSummary - details of the target instance's TypeDeftargetInstanceGUID - unique identifier for the source instanceotherTypeDefSummary - details of the other TypeDefpublic void setHomeMetadataCollectionId(String homeMetadataCollectionId)
homeMetadataCollectionId - unique id of the metadata collection where this instance comes from.public void setOriginalHomeMetadataCollectionId(String originalHomeMetadataCollectionId)
originalHomeMetadataCollectionId - unique id of original metadata collectionpublic void setOriginalTypeDefSummary(TypeDefSummary originalTypeDefSummary)
originalTypeDefSummary - details of original TypeDefpublic void setOriginalInstanceGUID(String originalInstanceGUID)
originalInstanceGUID - original guid of an instancepublic OMRSInstanceEventType getInstanceEventType()
public String getTypeDefGUID()
public String getTypeDefName()
public String getInstanceGUID()
public EntityDetail getOriginalEntity()
public EntityDetail getEntity()
public Relationship getOriginalRelationship()
public Relationship getRelationship()
public Classification getOriginalClassification()
public Classification getClassification()
public InstanceGraph getInstanceBatch()
public String getHomeMetadataCollectionId()
public String getOriginalHomeMetadataCollectionId()
public TypeDefSummary getOriginalTypeDefSummary()
public String getOriginalInstanceGUID()
public OMRSInstanceEventErrorCode getErrorCode()
public OMRSEventV1 getOMRSEventV1()
getOMRSEventV1 in class OMRSEventCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.