Interface OMRSLocalRepository

All Superinterfaces:
OMRSMetadataCollectionManager
All Known Implementing Classes:
LocalOMRSRepositoryConnector

public interface OMRSLocalRepository extends OMRSMetadataCollectionManager
OMRSLocalRepository is an interface used by the OMRS components to retrieve information about the local repository, to register listeners and to get access to the connector for the local repository.
  • Method Details

    • getMetadataCollectionId

      String getMetadataCollectionId()
      Returns the unique identifier (guid) of the local repository's metadata collection.
      Specified by:
      getMetadataCollectionId in interface OMRSMetadataCollectionManager
      Returns:
      String guid
    • getMetadataCollectionName

      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

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

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

      String getOrganizationName()
      Return the name of the organization that owns this local repository.
      Specified by:
      getOrganizationName in interface OMRSMetadataCollectionManager
      Returns:
      String name
    • setRemoteCohortMetadataCollectionIds

      void setRemoteCohortMetadataCollectionIds(String cohortName, List<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(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