Class BitbucketServerToGitPluginConfigurationTransformer
java.lang.Object
com.atlassian.bamboo.plugins.stash.v2.BitbucketServerToGitPluginConfigurationTransformer
- All Implemented Interfaces:
GitPluginConfigurationTransformer
public class BitbucketServerToGitPluginConfigurationTransformer
extends Object
implements GitPluginConfigurationTransformer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the singleton instance of theBitbucketServerToGitPluginConfigurationTransformer
.toGitServerConfiguration
(@NotNull Map<String, String> serverCfg) Transforms plugin-dependent server configuration to a git plugin compatible configuration.
-
Constructor Details
-
BitbucketServerToGitPluginConfigurationTransformer
public BitbucketServerToGitPluginConfigurationTransformer()
-
-
Method Details
-
getInstance
Returns the singleton instance of theBitbucketServerToGitPluginConfigurationTransformer
. If the instance does not already exist, it is created and returned. This method is thread-safe.- Returns:
- the singleton instance of
BitbucketServerToGitPluginConfigurationTransformer
-
toGitServerConfiguration
@NotNull public @NotNull Map<String,String> toGitServerConfiguration(@NotNull @NotNull Map<String, String> serverCfg) Description copied from interface:GitPluginConfigurationTransformer
Transforms plugin-dependent server configuration to a git plugin compatible configuration.- Specified by:
toGitServerConfiguration
in interfaceGitPluginConfigurationTransformer
- Parameters:
serverCfg
- the repository server configuration to be transformed- Returns:
- a new Map containing the transformed configuration data compatible with the git plugin
-