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
Constructors Constructor Description BitbucketCloudRepositoryConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
acceptedRepositoryPluginKey()
org.apache.commons.configuration.HierarchicalConfiguration
asLegacyData(@NotNull VcsRepositoryData vcsRepositoryData)
Convert new style of repository plugin to an old style.@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
public String acceptedRepositoryPluginKey()
- Specified by:
acceptedRepositoryPluginKey
in interfaceRepository2VcsTypeConverter
-
producedVcsTypePluginKey
public String 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
-
-