Class BitbucketCloudBranchConfigurator
java.lang.Object
com.atlassian.bamboo.plugins.bitbucket.v2.configurator.BitbucketCloudBranchConfigurator
- All Implemented Interfaces:
VcsBranchConfigurator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull VcsBranchcreateVcsBranchFromName(@NotNull String name) Create new vcs branch instance with given namegenerateConfigMap(@NotNull ActionParametersMap actionParametersMap, @Nullable VcsBranchDefinition previousBranchDefinition, @NotNull Map<String, String> serverConfiguration) @NotNull VcsBranchgetVcsBranchFromConfig(@NotNull Map<String, String> configMap) Return branch name according to provided config.voidpopulateContextForCreate(@NotNull Map<String, Object> context) voidpopulateContextForEdit(@NotNull Map<String, Object> context, @NotNull VcsBranchDefinition branchDefinition) voidpopulateContextForView(@NotNull Map<String, Object> context, @NotNull VcsBranchDefinition branchDefinition) voidsetCustomVariableContext(CustomVariableContext customVariableContext) Deprecated.since 6.8 use constructor injection or annotation injectionvoidsetI18nResolver(com.atlassian.sal.api.message.I18nResolver i18nResolver) Deprecated.since 6.8 use constructor injection or annotation injectionsetVcsBranchInConfig(@NotNull Map<String, String> configMap, @NotNull VcsBranch vcsBranch) Modify config map by setting branch to provided one.voidvalidate(@NotNull ActionParametersMap actionParametersMap, @NotNull ErrorCollection errorCollection) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.vcs.configurator.VcsBranchConfigurator
createVcsBranchFromNameForForkWorkflow, generateConfigMap
-
Constructor Details
-
BitbucketCloudBranchConfigurator
public BitbucketCloudBranchConfigurator()
-
-
Method Details
-
populateContextForCreate
- Specified by:
populateContextForCreatein interfaceVcsBranchConfigurator
-
populateContextForEdit
public void populateContextForEdit(@NotNull @NotNull Map<String, Object> context, @NotNull @NotNull VcsBranchDefinition branchDefinition) - Specified by:
populateContextForEditin interfaceVcsBranchConfigurator
-
populateContextForView
public void populateContextForView(@NotNull @NotNull Map<String, Object> context, @NotNull @NotNull VcsBranchDefinition branchDefinition) - Specified by:
populateContextForViewin interfaceVcsBranchConfigurator
-
validate
public void validate(@NotNull @NotNull ActionParametersMap actionParametersMap, @NotNull @NotNull ErrorCollection errorCollection) - Specified by:
validatein interfaceVcsBranchConfigurator
-
generateConfigMap
@NotNull public @NotNull Map<String,String> generateConfigMap(@NotNull @NotNull ActionParametersMap actionParametersMap, @Nullable @Nullable VcsBranchDefinition previousBranchDefinition, @NotNull @NotNull Map<String, String> serverConfiguration) - Specified by:
generateConfigMapin interfaceVcsBranchConfigurator- Parameters:
actionParametersMap-previousBranchDefinition-serverConfiguration- - actual server configuration that can be checked when generating branch configuration
-
getVcsBranchFromConfig
@NotNull public @NotNull VcsBranch getVcsBranchFromConfig(@NotNull @NotNull Map<String, String> configMap) Description copied from interface:VcsBranchConfiguratorReturn branch name according to provided config.- Specified by:
getVcsBranchFromConfigin interfaceVcsBranchConfigurator- Parameters:
configMap-
-
setVcsBranchInConfig
@NotNull public @NotNull Map<String,String> setVcsBranchInConfig(@NotNull @NotNull Map<String, String> configMap, @NotNull @NotNull VcsBranch vcsBranch) Description copied from interface:VcsBranchConfiguratorModify config map by setting branch to provided one.- Specified by:
setVcsBranchInConfigin interfaceVcsBranchConfigurator- Parameters:
configMap-vcsBranch-
-
createVcsBranchFromName
Description copied from interface:VcsBranchConfiguratorCreate new vcs branch instance with given name- Specified by:
createVcsBranchFromNamein interfaceVcsBranchConfigurator- Parameters:
name-- Returns:
-
setI18nResolver
Deprecated.since 6.8 use constructor injection or annotation injection -
setCustomVariableContext
Deprecated.since 6.8 use constructor injection or annotation injection
-