Interface OMRSLocalRepository

    • Method Detail

      • getMetadataCollectionName

        java.lang.String getMetadataCollectionName()
        Returns the display name of the local repository's metadata collection.
        Returns:
        String guid
      • getLocalRepositoryRemoteConnection

        Connection getLocalRepositoryRemoteConnection()
        Returns the Connection to the local repository that can be used by remote servers to create an OMRS repository connector to call this server in order to access the local repository.
        Returns:
        Connection object
      • getOutboundRepositoryEventManager

        OMRSRepositoryEventManager getOutboundRepositoryEventManager()
        Return the event manager that the local repository uses to
        Returns:
        outbound repository event manager
      • getIncomingTypeDefEventProcessor

        OMRSTypeDefEventProcessor getIncomingTypeDefEventProcessor()
        Return the TypeDef event processor that should be passed all incoming TypeDef events received from the cohorts that this server is a member of.
        Returns:
        OMRSTypeDefEventProcessor for the local repository.
      • getIncomingInstanceEventProcessor

        LocalOMRSInstanceEventProcessor getIncomingInstanceEventProcessor()
        Return the instance event processor that should be passed all incoming instance events received from the cohorts that this server is a member of.
        Returns:
        OMRSInstanceEventProcessor for the local repository.
      • getLocalServerName

        java.lang.String getLocalServerName()
        Return the local server name. This is used for outbound events.
        Returns:
        String name
      • getLocalServerType

        java.lang.String getLocalServerType()
        Return the local server type. This is used for outbound events.
        Returns:
        String name
      • setRemoteCohortMetadataCollectionIds

        void setRemoteCohortMetadataCollectionIds​(java.lang.String cohortName,
                                                  java.util.List<java.lang.String> remoteCohortMetadataCollectionIds)
        Set up the list of metadata collection identifiers from the remote members of a connected cohort.
        Parameters:
        cohortName - name of cohort
        remoteCohortMetadataCollectionIds - list of metadata collection ids
      • isActiveCohortMember

        boolean isActiveCohortMember​(java.lang.String metadataCollectionId)
        Is the metadata collection id for an active member of the cohort. This is used to set up the provenance type correctly (between LOCAL_COHORT and DEREGISTERED_REPOSITORY).
        Parameters:
        metadataCollectionId - id to test
        Returns:
        boolean flag meaning that the metadata collection is recognized