Interface OMRSRepositoryEventMapper
- All Known Implementing Classes:
OMRSRepositoryEventMapperBase
,OMRSRepositoryEventMapperConnector
public interface OMRSRepositoryEventMapper
OMRSRepositoryEventMapper is the interface to a connector that is converting events received from
a non-native local metadata repository into OMRS compliant repository events. It is used when the Open Metadata
and Governance Server is being used as a RepositoryProxy, or if the local metadata repository has
additional APIs that mean metadata can be changed without going through the OMRS Repository Connectors.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(String repositoryEventMapperName, OMRSRepositoryConnector repositoryConnector) Pass additional information to the connector needed to process events.void
setMetadataCollectionId
(String metadataCollectionId) Set up the unique Id for this metadata collection.void
setOrganizationName
(String organizationName) Set up the name of the organization that runs/owns the server.void
setRepositoryEventProcessor
(OMRSRepositoryEventProcessor repositoryEventProcessor) Set up the repository event processor for this connector to use.void
setRepositoryHelper
(OMRSRepositoryHelper repositoryHelper) Set up a repository helper object for the repository connector to use.void
setRepositoryValidator
(OMRSRepositoryValidator repositoryValidator) Set up a repository validator for the repository connector to use.void
setServerName
(String serverName) Set up the name of the server where the metadata collection resides.void
setServerType
(String serverType) Set up the descriptive string describing the type of the server.void
setServerUserId
(String serverUserId) Set up the userId that the local server should use when processing events and there is no external user driving the operation.
-
Method Details
-
initialize
Pass additional information to the connector needed to process events.- Parameters:
repositoryEventMapperName
- repository event mapper name used for the source of the OMRS events.repositoryConnector
- this is the connector to the local repository that the event mapper is processing events from. The repository connector is used to retrieve additional information necessary to fill out the OMRS Events.
-
setRepositoryHelper
Set up a repository helper object for the repository connector to use.- Parameters:
repositoryHelper
- helper object for building TypeDefs and metadata instances.
-
setRepositoryValidator
Set up a repository validator for the repository connector to use.- Parameters:
repositoryValidator
- validator object to check the validity of TypeDefs and metadata instances.
-
setServerName
Set up the name of the server where the metadata collection resides.- Parameters:
serverName
- String name
-
setServerType
Set up the descriptive string describing the type of the server. This might be the name of the product, or similar identifier.- Parameters:
serverType
- String server type
-
setOrganizationName
Set up the name of the organization that runs/owns the server.- Parameters:
organizationName
- String organization name
-
setServerUserId
Set up the userId that the local server should use when processing events and there is no external user driving the operation.- Parameters:
serverUserId
- string user id
-
setMetadataCollectionId
Set up the unique Id for this metadata collection.- Parameters:
metadataCollectionId
- String unique Id
-
setRepositoryEventProcessor
Set up the repository event processor for this connector to use. The connector should pass each typeDef or instance metadata change reported by its metadata repository to the repository event processor.- Parameters:
repositoryEventProcessor
- listener responsible for distributing notifications of local changes to metadata types and instances to the rest of the open metadata repository cohort.
-