Interface Repository2VcsTypeConverter
-
- All Known Implementing Classes:
BitbucketCloudRepositoryConverter
,BitbucketServerRepositoryConverter
,GitConfigurationConverter
,GitHubConfigurationConverter
,SvnConfigConverter
public interface Repository2VcsTypeConverter
Converts between old and new style of repository configuration.- Since:
- 5.14
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
acceptedRepositoryPluginKey()
default org.apache.commons.configuration.HierarchicalConfiguration
asLegacyData(@NotNull VcsRepositoryData vcsRepositoryData)
Convert new style of repository plugin to an old style.default @Nullable Map<String,String>
extractBranchConfiguration(@NotNull org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)
Extract branch configuration.@NotNull Map<String,String>
extractServerConfiguration(@NotNull org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)
Extract server part of repository configuration.String
producedVcsTypePluginKey()
-
-
-
Method Detail
-
acceptedRepositoryPluginKey
String acceptedRepositoryPluginKey()
-
producedVcsTypePluginKey
String producedVcsTypePluginKey()
-
extractServerConfiguration
@NotNull @NotNull Map<String,String> extractServerConfiguration(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)
Extract server part of repository configuration.- Parameters:
repositoryConfiguration
-- Returns:
- server configuration
-
extractBranchConfiguration
@Nullable default @Nullable Map<String,String> extractBranchConfiguration(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)
Extract branch configuration. Return null if branches are not supported.- Parameters:
repositoryConfiguration
-- Returns:
- branch configuration or null if not supported
-
asLegacyData
default org.apache.commons.configuration.HierarchicalConfiguration asLegacyData(@NotNull @NotNull VcsRepositoryData vcsRepositoryData)
Convert new style of repository plugin to an old style. This is optional but can be useful if a plugin relying on old repository API are still in use.- Parameters:
vcsRepositoryData
-
-
-