Class BitbucketCloudRepositoryConverter
java.lang.Object
com.atlassian.bamboo.plugins.bitbucket.v2.converter.BitbucketCloudRepositoryConverter
- All Implemented Interfaces:
Repository2VcsTypeConverter
public class BitbucketCloudRepositoryConverter
extends Object
implements Repository2VcsTypeConverter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.configuration.HierarchicalConfiguration
asLegacyData
(@NotNull VcsRepositoryData vcsRepositoryData) Convert new style of repository plugin to an old style.extractBranchConfiguration
(@NotNull org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration) Extract branch configuration.extractServerConfiguration
(@NotNull org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration) Extract server part of repository configuration.
-
Constructor Details
-
BitbucketCloudRepositoryConverter
public BitbucketCloudRepositoryConverter()
-
-
Method Details
-
acceptedRepositoryPluginKey
- Specified by:
acceptedRepositoryPluginKey
in interfaceRepository2VcsTypeConverter
-
producedVcsTypePluginKey
- Specified by:
producedVcsTypePluginKey
in interfaceRepository2VcsTypeConverter
-
extractServerConfiguration
@NotNull public @NotNull Map<String,String> extractServerConfiguration(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration) Description copied from interface:Repository2VcsTypeConverter
Extract server part of repository configuration.- Specified by:
extractServerConfiguration
in interfaceRepository2VcsTypeConverter
- Returns:
- server configuration
-
extractBranchConfiguration
@Nullable public @Nullable Map<String,String> extractBranchConfiguration(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration) Description copied from interface:Repository2VcsTypeConverter
Extract branch configuration. Return null if branches are not supported.- Specified by:
extractBranchConfiguration
in interfaceRepository2VcsTypeConverter
- Returns:
- branch configuration or null if not supported
-
asLegacyData
public org.apache.commons.configuration.HierarchicalConfiguration asLegacyData(@NotNull @NotNull VcsRepositoryData vcsRepositoryData) Description copied from interface:Repository2VcsTypeConverter
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.- Specified by:
asLegacyData
in interfaceRepository2VcsTypeConverter
-