public class ConnectedAssetPublisher extends Object
| Constructor and Description |
|---|
ConnectedAssetPublisher(Connection assetConsumerOutTopic,
OMRSRepositoryHelper repositoryHelper,
OMRSRepositoryValidator repositoryValidator,
String componentName)
The constructor is given the connection to the out topic for Asset Consumer OMAS
along with classes for testing and manipulating instances.
|
| Modifier and Type | Method and Description |
|---|---|
void |
processDeletedEntity(EntityDetail entity)
Determine whether a deleted entity is an Asset.
|
void |
processDeletedRelationship(Relationship relationship)
Determine whether a deleted relationship is related to an Asset.
|
void |
processNewEntity(EntityDetail entity)
Determine whether a new entity is an Asset.
|
void |
processNewRelationship(Relationship relationship)
Determine whether a new relationship is related to an Asset.
|
void |
processRestoredEntity(EntityDetail entity)
Determine whether a restored entity is an Asset.
|
void |
processRestoredRelationship(Relationship relationship)
Determine whether a restored relationship is related to an Asset.
|
void |
processUpdatedEntity(EntityDetail entity)
Determine whether an updated entity is an Asset.
|
void |
processUpdatedEntity(EntityDetail originalEntity,
EntityDetail newEntity)
Determine whether an updated entity is an Asset.
|
void |
processUpdatedRelationship(Relationship relationship)
Determine whether an updated relationship is related to an Asset.
|
void |
processUpdatedRelationship(Relationship originalRelationship,
Relationship newRelationship)
Determine whether an updated relationship is related to an Asset.
|
public ConnectedAssetPublisher(Connection assetConsumerOutTopic, OMRSRepositoryHelper repositoryHelper, OMRSRepositoryValidator repositoryValidator, String componentName)
assetConsumerOutTopic - - connection to the out topicrepositoryHelper - - provides methods for working with metadata instancesrepositoryValidator - - provides validation of metadata instancecomponentName - - name of componentpublic void processNewEntity(EntityDetail entity)
entity - - entity object that has just been created.public void processUpdatedEntity(EntityDetail entity)
entity - - entity object that has just been updated.public void processUpdatedEntity(EntityDetail originalEntity, EntityDetail newEntity)
originalEntity - - original values for entity object - available when basic property updates have
occurred on the entity.newEntity - - entity object that has just been updated.public void processDeletedEntity(EntityDetail entity)
entity - - entity object that has just been deleted.public void processRestoredEntity(EntityDetail entity)
entity - - entity object that has just been restored.public void processNewRelationship(Relationship relationship)
relationship - - relationship object that has just been created.public void processUpdatedRelationship(Relationship relationship)
relationship - - relationship object that has just been updated.public void processUpdatedRelationship(Relationship originalRelationship, Relationship newRelationship)
originalRelationship - - original values of relationship.newRelationship - - relationship object that has just been updated.public void processDeletedRelationship(Relationship relationship)
relationship - - relationship object that has just been deleted.public void processRestoredRelationship(Relationship relationship)
relationship - - relationship object that has just been restored.Copyright © 2018 ODPi. All rights reserved.