public class GovernanceEngineOMRSTopicListener extends OMRSTopicListenerBase
auditLog, serviceName| Constructor and Description |
|---|
GovernanceEngineOMRSTopicListener(String serviceName,
String userId,
MetadataElementHandler<OpenMetadataElement> metadataElementHandler,
GovernanceActionHandler<GovernanceActionElement> governanceActionHandler,
GovernanceEngineOutTopicPublisher eventPublisher,
OMRSRepositoryHelper repositoryHelper,
AuditLog auditLog)
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 |
processInstanceBatchEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
InstanceGraph instances)
An open metadata repository is passing information about a collection of entities and relationships
with the other repositories in the cohort.
|
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 |
processRefreshEntityEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
EntityDetail entity)
A remote repository in the cohort has sent entity details in response to a refresh request.
|
void |
processRefreshRelationshipEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
Relationship relationship)
The local repository is refreshing the information about a relationship for the other
repositories in the cohort.
|
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 |
processRestoredEntityEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
EntityDetail entity)
A deleted entity has been restored to the state it was before it was deleted.
|
void |
processRestoredRelationshipEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
Relationship relationship)
A deleted relationship has been restored to the state it was before it was deleted.
|
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 |
processUndoneEntityEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
EntityDetail entity)
An update to an entity has been undone.
|
void |
processUndoneRelationshipEvent(String sourceName,
String originatorMetadataCollectionId,
String originatorServerName,
String originatorServerType,
String originatorOrganizationName,
Relationship relationship)
An update to a relationship has been undone.
|
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, processInstanceEvent, processNewAttributeTypeDefEvent, processNewTypeDefEvent, processPurgedEntityEvent, processPurgedRelationshipEvent, processReclassifiedEntityEvent, processRefreshEntityRequested, processRefreshRelationshipRequest, processRegistrationEvent, processRegistrationRefreshRequest, processRegistryEvent, processReIdentifiedAttributeTypeDefEvent, processReIdentifiedTypeDefEvent, processReRegistrationEvent, processTypeDefConflictEvent, processTypeDefEvent, processTypeDefPatchMismatchEvent, processUnRegistrationEvent, processUpdatedTypeDefEventpublic GovernanceEngineOMRSTopicListener(String serviceName, String userId, MetadataElementHandler<OpenMetadataElement> metadataElementHandler, GovernanceActionHandler<GovernanceActionElement> governanceActionHandler, GovernanceEngineOutTopicPublisher eventPublisher, OMRSRepositoryHelper repositoryHelper, AuditLog auditLog)
serviceName - this is the full name of the service - used for error logging in base classuserId - local server userId for issuing requests to the repository servicesmetadataElementHandler - handler for working with GAF objectsgovernanceActionHandler - handler for working with governance actionseventPublisher - 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 processUndoneEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity)
processUndoneEntityEvent 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 version of the entity that has been restored.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 processRestoredEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity)
processRestoredEntityEvent 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 version of the entity that has been restored.public 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 processRefreshEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity)
processRefreshEntityEvent 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 requested entitypublic 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 processUndoneRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship)
processUndoneRelationshipEvent 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 version of the relationship that has been restored.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 processRestoredRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship)
processRestoredRelationshipEvent 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 version of the relationship that has been restored.public 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.public void processRefreshRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship)
processRefreshRelationshipEvent 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 - relationship detailspublic void processInstanceBatchEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, InstanceGraph instances)
processInstanceBatchEvent 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.instances - multiple entities and relationships for sharing.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.