Class OMRSRepositoryEventMapperConnector

    • Field Detail

      • repositoryEventMapperName

        protected java.lang.String repositoryEventMapperName
      • localMetadataCollectionId

        protected java.lang.String localMetadataCollectionId
      • localServerName

        protected java.lang.String localServerName
      • localServerType

        protected java.lang.String localServerType
      • localOrganizationName

        protected java.lang.String localOrganizationName
      • localServerUserId

        protected java.lang.String localServerUserId
    • Method Detail

      • setAuditLog

        public void setAuditLog​(AuditLog auditLog)
        Receive an audit log object that can be used to record audit log messages. The caller has initialized it with the correct component description and log destinations.
        Specified by:
        setAuditLog in interface AuditLoggingComponent
        auditLog - audit log object
      • initialize

        public void initialize​(java.lang.String repositoryEventMapperName,
                               OMRSRepositoryConnector repositoryConnector)
        Pass additional information to the connector needed to process events.
        Specified by:
        initialize in interface OMRSRepositoryEventMapper
        repositoryEventMapperName - repository event mapper name used for the source of the OMRS events.
        repositoryConnector - ths 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

        public void setRepositoryHelper​(OMRSRepositoryHelper repositoryHelper)
        Set up a repository helper object for the repository connector to use.
        Specified by:
        setRepositoryHelper in interface OMRSRepositoryEventMapper
        repositoryHelper - helper object for building TypeDefs and metadata instances.
      • setRepositoryValidator

        public void setRepositoryValidator​(OMRSRepositoryValidator repositoryValidator)
        Set up a repository validator for the repository connector to use.
        Specified by:
        setRepositoryValidator in interface OMRSRepositoryEventMapper
        repositoryValidator - validator object to check the validity of TypeDefs and metadata instances.
      • setServerName

        public void setServerName​(java.lang.String serverName)
        Set up the name of the server where the metadata collection resides.
        Specified by:
        setServerName in interface OMRSRepositoryEventMapper
        serverName - String name
      • setServerType

        public void setServerType​(java.lang.String serverType)
        Set up the descriptive string describing the type of the server. This might be the name of the product, or similar identifier.
        Specified by:
        setServerType in interface OMRSRepositoryEventMapper
        serverType - String server type
      • setOrganizationName

        public void setOrganizationName​(java.lang.String organizationName)
        Set up the name of the organization that runs/owns the server.
        Specified by:
        setOrganizationName in interface OMRSRepositoryEventMapper
        organizationName - String organization name
      • setServerUserId

        public void setServerUserId​(java.lang.String localServerUserId)
        Set up the userId that the local server should use when processing events and there is no external user driving the operation.
        Specified by:
        setServerUserId in interface OMRSRepositoryEventMapper
        localServerUserId - string user id
      • setMetadataCollectionId

        public void setMetadataCollectionId​(java.lang.String metadataCollectionId)
        Set up the unique Id for this metadata collection.
        Specified by:
        setMetadataCollectionId in interface OMRSRepositoryEventMapper
        metadataCollectionId - String unique Id
      • setRepositoryEventProcessor

        public void setRepositoryEventProcessor​(OMRSRepositoryEventProcessor repositoryEventProcessor)
        Set up the repository event listener for this connector to use. The connector should pass each type or instance metadata change reported by its metadata repository's metadata on to the repository event listener.
        Specified by:
        setRepositoryEventProcessor in interface OMRSRepositoryEventMapper
        repositoryEventProcessor - listener responsible for distributing notifications of local changes to metadata types and instances to the rest of the open metadata repository cluster.