public class DataManagerOMRSTopicListener extends OMRSTopicListenerBase
auditLog, serviceName| Constructor and Description |
|---|
DataManagerOMRSTopicListener(List<String> supportedZones,
DataManagerOutTopicPublisher publisher,
String serverUserId,
AuditLog auditLog,
OMRSRepositoryHelper repositoryHelper,
String serviceName,
String serverName,
DataManagerServicesInstance instance)
Initialize the topic listener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
processClassifiedEntityEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
EntityDetail entity,
Classification classification)
A new classification has been added to an entity.
|
void |
processDeclassifiedEntityEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
EntityDetail entity,
Classification originalClassification)
A classification has been removed from an entity.
|
void |
processDeletedEntityEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
EntityDetail entity)
An existing entity has been deleted.
|
void |
processDeletedRelationshipEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
Relationship relationship)
An existing relationship has been deleted.
|
void |
processDeletePurgedEntityEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
EntityDetail entity)
An existing entity has been deleted and purged in a single action.
|
void |
processDeletePurgedRelationshipEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
Relationship relationship)
An active relationship has been deleted and purged from the repository.
|
void |
processNewEntityEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
EntityDetail entity)
A new entity has been created.
|
void |
processNewRelationshipEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
Relationship relationship)
A new relationship has been created.
|
void |
processReclassifiedEntityEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
EntityDetail entity,
Classification originalClassification,
Classification classification)
An existing classification has been changed on an entity.
|
void |
processReHomedEntityEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
String originalHomeMetadataCollectionId,
EntityDetail entity)
An existing entity has changed home repository.
|
void |
processReHomedRelationshipEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
String originalHomeMetadataCollection,
Relationship relationship)
An existing relationship has changed home repository.
|
void |
processReIdentifiedEntityEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
String originalEntityGUID,
EntityDetail entity)
The guid of an existing entity has been changed to a new value.
|
void |
processReIdentifiedRelationshipEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
String originalRelationshipGUID,
Relationship relationship)
The guid of an existing relationship has changed.
|
void |
processReTypedEntityEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
TypeDefSummary originalTypeDefSummary,
EntityDetail entity)
An existing entity has had its type changed.
|
void |
processReTypedRelationshipEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
TypeDefSummary originalTypeDefSummary,
Relationship relationship)
An existing relationship has had its type changed.
|
void |
processUpdatedEntityEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
EntityDetail oldEntity,
EntityDetail newEntity)
An existing entity has been updated.
|
void |
processUpdatedRelationshipEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
Relationship oldRelationship,
Relationship newRelationship)
An existing relationship has been updated.
|
getInstanceTypeName, processAttributeTypeDefConflictEvent, processBadConnectionEvent, processClassifiedEntityEvent, processConflictingCollectionIdEvent, processConflictingInstancesEvent, processConflictingTypeEvent, processDeclassifiedEntityEvent, processDeletedAttributeTypeDefEvent, processDeletedTypeDefEvent, processInstanceBatchEvent, processInstanceEvent, processNewAttributeTypeDefEvent, processNewTypeDefEvent, processPurgedEntityEvent, processPurgedRelationshipEvent, processReclassifiedEntityEvent, processRefreshEntityEvent, processRefreshEntityRequested, processRefreshRelationshipEvent, processRefreshRelationshipRequest, processRegistrationEvent, processRegistrationRefreshRequest, processRegistryEvent, processReIdentifiedAttributeTypeDefEvent, processReIdentifiedTypeDefEvent, processReRegistrationEvent, processRestoredEntityEvent, processRestoredRelationshipEvent, processTypeDefConflictEvent, processTypeDefEvent, processTypeDefPatchMismatchEvent, processUndoneEntityEvent, processUndoneRelationshipEvent, processUnRegistrationEvent, processUpdatedTypeDefEventpublic DataManagerOMRSTopicListener(List<String> supportedZones, DataManagerOutTopicPublisher publisher, String serverUserId, AuditLog auditLog, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName, DataManagerServicesInstance instance)
supportedZones - list of zones for the visible assetsserviceName - this is the full name of the service - used for error logging in base classpublisher - this is the out topic publisher.repositoryHelper - repository helperauditLog - logging destinationpublic void processNewEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity)
processNewEntityEvent in class OMRSTopicListenerBasesourceName - name of the source of the event. It may be the cohort name for incoming events or the
local repository, or event mapper name.originatorMetadataCollectionId - unique identifier for the metadata collection hosted by the server that
sent the event.originatorServerName - name of the server that the event came from.originatorServerType - type of server that the event came from.originatorOrganizationName - name of the organization that owns the server that sent the event.entity - details of the new entitypublic void processUpdatedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail oldEntity, EntityDetail newEntity)
processUpdatedEntityEvent in class OMRSTopicListenerBasesourceName - name of the source of the event. It may be the cohort name for incoming events or the
local repository, or event mapper name.originatorMetadataCollectionId - unique identifier for the metadata collection hosted by the server that
sent the event.originatorServerName - name of the server that the event came from.originatorServerType - type of server that the event came from.originatorOrganizationName - name of the organization that owns the server that sent the event.oldEntity - original values for the entity.newEntity - details of the new version of the entity.public void processClassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity, Classification classification)
processClassifiedEntityEvent in class OMRSTopicListenerBasesourceName - name of the source of the event. It may be the cohort name for incoming events or the
local repository, or event mapper name.originatorMetadataCollectionId - unique identifier for the metadata collection hosted by the server that
sent the event.originatorServerName - name of the server that the event came from.originatorServerType - type of server that the event came from.originatorOrganizationName - name of the organization that owns the server that sent the event.entity - details of the entity with the new classification added. No guarantee this is all of the classifications.classification - new classificationpublic void processDeclassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity, Classification originalClassification)
processDeclassifiedEntityEvent in class OMRSTopicListenerBasesourceName - name of the source of the event. It may be the cohort name for incoming events or the
local repository, or event mapper name.originatorMetadataCollectionId - unique identifier for the metadata collection hosted by the server that
sent the event.originatorServerName - name of the server that the event came from.originatorServerType - type of server that the event came from.originatorOrganizationName - name of the organization that owns the server that sent the event.entity - details of the entity after the classification has been removed. No guarantee this is all of the classifications.originalClassification - classification that was removedpublic void processReclassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity, Classification originalClassification, Classification classification)
processReclassifiedEntityEvent in class OMRSTopicListenerBasesourceName - name of the source of the event. It may be the cohort name for incoming events or the
local repository, or event mapper name.originatorMetadataCollectionId - unique identifier for the metadata collection hosted by the server that
sent the event.originatorServerName - name of the server that the event came from.originatorServerType - type of server that the event came from.originatorOrganizationName - name of the organization that owns the server that sent the event.entity - details of the entity after the classification has been changed. No guarantee this is all of the classifications.originalClassification - classification that was removedclassification - new classificationpublic void processDeletedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity)
All relationships to the entity are also soft-deleted and will no longer be usable. These deleted relationships will be notified through separate events.
Details of the TypeDef are included with the entity's unique id (guid) to ensure the right entity is deleted in the remote repositories.
processDeletedEntityEvent in class OMRSTopicListenerBasesourceName - name of the source of the event. It may be the cohort name for incoming events or the
local repository, or event mapper name.originatorMetadataCollectionId - unique identifier for the metadata collection hosted by the server that
sent the event.originatorServerName - name of the server that the event came from.originatorServerType - type of server that the event came from.originatorOrganizationName - name of the organization that owns the server that sent the event.entity - deleted entitypublic void processDeletePurgedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity)
processDeletePurgedEntityEvent in class OMRSTopicListenerBasesourceName - name of the source of the event. It may be the cohort name for incoming events or the
local repository, or event mapper name.originatorMetadataCollectionId - unique identifier for the metadata collection hosted by the server that
sent the event.originatorServerName - name of the server that the event came from.originatorServerType - type of server that the event came from.originatorOrganizationName - name of the organization that owns the server that sent the event.entity - deleted entitypublic void processReIdentifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String originalEntityGUID, EntityDetail entity)
processReIdentifiedEntityEvent in class OMRSTopicListenerBasesourceName - name of the source of the event. It may be the cohort name for incoming events or the
local repository, or event mapper name.originatorMetadataCollectionId - unique identifier for the metadata collection hosted by the server that
sent the event.originatorServerName - name of the server that the event came from.originatorServerType - type of server that the event came from.originatorOrganizationName - name of the organization that owns the server that sent the event.originalEntityGUID - the existing identifier for the entity.entity - new values for this entity, including the new guid.public void processReTypedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, TypeDefSummary originalTypeDefSummary, EntityDetail entity)
processReTypedEntityEvent in class OMRSTopicListenerBasesourceName - name of the source of the event. It may be the cohort name for incoming events or the
local repository, or event mapper name.originatorMetadataCollectionId - unique identifier for the metadata collection hosted by the server that
sent the event.originatorServerName - name of the server that the event came from.originatorServerType - type of server that the event came from.originatorOrganizationName - name of the organization that owns the server that sent the event.originalTypeDefSummary - original details of this entity's TypeDef.entity - new values for this entity, including the new type information.public void processReHomedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String originalHomeMetadataCollectionId, EntityDetail entity)
processReHomedEntityEvent in class OMRSTopicListenerBasesourceName - name of the source of the event. It may be the cohort name for incoming events or the
local repository, or event mapper name.originatorMetadataCollectionId - unique identifier for the metadata collection hosted by the server that
sent the event.originatorServerName - name of the server that the event came from.originatorServerType - type of server that the event came from.originatorOrganizationName - name of the organization that owns the server that sent the event.originalHomeMetadataCollectionId - unique identifier for the original home repository.entity - new values for this entity, including the new home information.public void processNewRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship)
processNewRelationshipEvent in class OMRSTopicListenerBasesourceName - name of the source of the event. It may be the cohort name for incoming events or the
local repository, or event mapper name.originatorMetadataCollectionId - unique identifier for the metadata collection hosted by the server that
sent the event.originatorServerName - name of the server that the event came from.originatorServerType - type of server that the event came from.originatorOrganizationName - name of the organization that owns the server that sent the event.relationship - details of the new relationshippublic void processUpdatedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship oldRelationship, Relationship newRelationship)
processUpdatedRelationshipEvent in class OMRSTopicListenerBasesourceName - name of the source of the event. It may be the cohort name for incoming events or the
local repository, or event mapper name.originatorMetadataCollectionId - unique identifier for the metadata collection hosted by the server that
sent the event.originatorServerName - name of the server that the event came from.originatorServerType - type of server that the event came from.originatorOrganizationName - name of the organization that owns the server that sent the event.oldRelationship - original details of the relationship.newRelationship - details of the new version of the relationship.public void processDeletedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship)
Details of the TypeDef are included with the relationship's unique id (guid) to ensure the right relationship is deleted in the remote repositories.
processDeletedRelationshipEvent in class OMRSTopicListenerBasesourceName - name of the source of the event. It may be the cohort name for incoming events or the
local repository, or event mapper name.originatorMetadataCollectionId - unique identifier for the metadata collection hosted by the server that
sent the event.originatorServerName - name of the server that the event came from.originatorServerType - type of server that the event came from.originatorOrganizationName - name of the organization that owns the server that sent the event.relationship - deleted relationshippublic void processDeletePurgedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship)
processDeletePurgedRelationshipEvent in class OMRSTopicListenerBasesourceName - name of the source of the event. It may be the cohort name for incoming events or the
local repository, or event mapper name.originatorMetadataCollectionId - unique identifier for the metadata collection hosted by the server that
sent the event.originatorServerName - name of the server that the event came from.originatorServerType - type of server that the event came from.originatorOrganizationName - name of the organization that owns the server that sent the event.relationship - deleted relationshippublic void processReIdentifiedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String originalRelationshipGUID, Relationship relationship)
processReIdentifiedRelationshipEvent in class OMRSTopicListenerBasesourceName - name of the source of the event. It may be the cohort name for incoming events or the
local repository, or event mapper name.originatorMetadataCollectionId - unique identifier for the metadata collection hosted by the server that
sent the event.originatorServerName - name of the server that the event came from.originatorServerType - type of server that the event came from.originatorOrganizationName - name of the organization that owns the server that sent the event.originalRelationshipGUID - the existing identifier for the relationship.relationship - new values for this relationship, including the new guid.public void processReTypedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, TypeDefSummary originalTypeDefSummary, Relationship relationship)
processReTypedRelationshipEvent in class OMRSTopicListenerBasesourceName - name of the source of the event. It may be the cohort name for incoming events or the
local repository, or event mapper name.originatorMetadataCollectionId - unique identifier for the metadata collection hosted by the server that
sent the event.originatorServerName - name of the server that the event came from.originatorServerType - type of server that the event came from.originatorOrganizationName - name of the organization that owns the server that sent the event.originalTypeDefSummary - original details of this relationship's TypeDef.relationship - new values for this relationship, including the new type information.public void processReHomedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String originalHomeMetadataCollection, Relationship relationship)
processReHomedRelationshipEvent in class OMRSTopicListenerBasesourceName - name of the source of the event. It may be the cohort name for incoming events or the
local repository, or event mapper name.originatorMetadataCollectionId - unique identifier for the metadata collection hosted by the server that
sent the event.originatorServerName - name of the server that the event came from.originatorServerType - type of server that the event came from.originatorOrganizationName - name of the organization that owns the server that sent the event.originalHomeMetadataCollection - unique identifier for the original home repository.relationship - new values for this relationship, including the new home information.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.