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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.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.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.java.lang.String
getLocalServerName()
Return the local server name.java.lang.String
getLocalServerType()
Return the local server type.java.lang.String
getMetadataCollectionId()
Returns the unique identifier (guid) of the local repository's metadata collection.java.lang.String
getMetadataCollectionName()
Returns the display name of the local repository's metadata collection.java.lang.String
getOrganizationName()
Return the name of the organization that owns this local repository.OMRSRepositoryEventManager
getOutboundRepositoryEventManager()
Return the event manager that the local repository uses toboolean
isActiveCohortMember(java.lang.String metadataCollectionId)
Is the metadata collection id for an active member of the cohort.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.-
Methods inherited from interface org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSMetadataCollectionManager
getMaxPageSize, getMetadataCollection, getRepositoryName, getServerName, getServerType, getServerUserId, setMaxPageSize, setMetadataCollectionId, setOrganizationName, setRepositoryHelper, setRepositoryName, setRepositoryValidator, setServerName, setServerType, setServerUserId
-
-
-
-
Method Detail
-
getMetadataCollectionId
java.lang.String getMetadataCollectionId()
Returns the unique identifier (guid) of the local repository's metadata collection.- Specified by:
getMetadataCollectionId
in interfaceOMRSMetadataCollectionManager
- Returns:
- String guid
-
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
-
getOrganizationName
java.lang.String getOrganizationName()
Return the name of the organization that owns this local repository.- Specified by:
getOrganizationName
in interfaceOMRSMetadataCollectionManager
- 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 cohortremoteCohortMetadataCollectionIds
- 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
-
-