Interface IExternalRepositoryProviderRegistry
- All Superinterfaces:
com.polarion.core.util.IDisposable
public interface IExternalRepositoryProviderRegistry
extends com.polarion.core.util.IDisposable
Registry of external repository providers and access point for configured external repositories
and external repository configurations.
- Since:
- 3.5.1
- Author:
- Jiri Banszel
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final char
Delimiter of context name and repository name in cluster name of revisions from external repositories. -
Method Summary
Modifier and TypeMethodDescriptiongetConfigurations
(IContextId contextId) com.polarion.platform.repository.external.ipi.IInternalExternalRepositoryAggregator
Returns External Repository Aggregator Managing Service.getMetaData
(String repoName, String revision) Returns commit metadata.getProvider
(String providerId) getRepositories
(IContextId contextId) getRepository
(String id, IContextId contextId) getRepositoryByUniqueId
(String uniqueId) void
initialize
(IExternalRepositoryProvider.IExternalRepositoryCallback externalRepoCallback, boolean reindex) INTERNAL Initialization of the registry.void
refreshAllConfigurations
(boolean doReindex) Sends all existing Polarion repository configurations from all projects to the External Repository Aggregator Service.void
setConfigurations
(IExternalRepositoryConfiguration[] configurations, IContextId contextId) void
Visits all configured repositories, from all contexts.Methods inherited from interface com.polarion.core.util.IDisposable
dispose
-
Field Details
-
REPO_NAME_DELIM
static final char REPO_NAME_DELIMDelimiter of context name and repository name in cluster name of revisions from external repositories.- See Also:
-
-
Method Details
-
initialize
void initialize(IExternalRepositoryProvider.IExternalRepositoryCallback externalRepoCallback, boolean reindex) INTERNAL Initialization of the registry.- Parameters:
externalRepoCallback
-reindex
-
-
getProvider
-
getProviders
List<IExternalRepositoryProvider> getProviders() -
getConfigurations
- Parameters:
contextId
-- Returns:
- configurations defined in the context (not inherited ones)
-
setConfigurations
-
visitRepositories
Visits all configured repositories, from all contexts.- Parameters:
visitor
-- See Also:
-
getRepository
- Parameters:
id
- repository configuration idcontextId
-- Returns:
- repository defined for the context (including inherited)
-
getRepositories
- Parameters:
contextId
-- Returns:
- repositories defined for the context (including inherited)
-
getRepositoryByUniqueId
- Parameters:
uniqueId
-- Returns:
- repository
- See Also:
-
getRepositoryUniqueId
- Parameters:
repository
-- Returns:
- unique id of the repository (CONTEXT_NAME+REPO_NAME_DELIM+ID)
- See Also:
-
getMetaData
Returns commit metadata.- Parameters:
repoName
- repository id in form of project:repoId or just repoId in global contextrevision
- id of the commit- Since:
- 3.22.1
-
refreshAllConfigurations
void refreshAllConfigurations(boolean doReindex) Sends all existing Polarion repository configurations from all projects to the External Repository Aggregator Service. On current Polarion node. Useful for incremental reindex.- Since:
- 3.22.1
-
getExternalRepositoryAggregator
@NotNull com.polarion.platform.repository.external.ipi.IInternalExternalRepositoryAggregator getExternalRepositoryAggregator()Returns External Repository Aggregator Managing Service. It is for internal use.- Since:
- 3.22.1
-