public class BitbucketCloudBranchConfigurator extends Object implements VcsBranchConfigurator
Constructor and Description |
---|
BitbucketCloudBranchConfigurator() |
Modifier and Type | Method and Description |
---|---|
VcsBranch |
createVcsBranchFromName(String name)
Create new vcs branch instance given it's name
|
Map<String,String> |
generateConfigMap(ActionParametersMap actionParametersMap,
VcsBranchDefinition previousBranchDefinition,
Map<String,String> serverConfiguration) |
VcsBranch |
getVcsBranchFromConfig(Map<String,String> configMap)
Return branch name according to provided config.
|
void |
populateContextForCreate(Map<String,Object> context) |
void |
populateContextForEdit(Map<String,Object> context,
VcsBranchDefinition branchDefinition) |
void |
populateContextForView(Map<String,Object> context,
VcsBranchDefinition branchDefinition) |
void |
setCustomVariableContext(CustomVariableContext customVariableContext)
Deprecated.
since 6.8 use constructor injection or annotation injection
|
void |
setI18nResolver(com.atlassian.sal.api.message.I18nResolver i18nResolver)
Deprecated.
since 6.8 use constructor injection or annotation injection
|
Map<String,String> |
setVcsBranchInConfig(Map<String,String> configMap,
VcsBranch vcsBranch)
Modify config map setting branch to provided one.
|
void |
validate(ActionParametersMap actionParametersMap,
ErrorCollection errorCollection) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateConfigMap
public void populateContextForCreate(@NotNull Map<String,Object> context)
populateContextForCreate
in interface VcsBranchConfigurator
public void populateContextForEdit(@NotNull Map<String,Object> context, @NotNull VcsBranchDefinition branchDefinition)
populateContextForEdit
in interface VcsBranchConfigurator
public void populateContextForView(@NotNull Map<String,Object> context, @NotNull VcsBranchDefinition branchDefinition)
populateContextForView
in interface VcsBranchConfigurator
public void validate(@NotNull ActionParametersMap actionParametersMap, @NotNull ErrorCollection errorCollection)
validate
in interface VcsBranchConfigurator
@NotNull public Map<String,String> generateConfigMap(@NotNull ActionParametersMap actionParametersMap, @Nullable VcsBranchDefinition previousBranchDefinition, @NotNull Map<String,String> serverConfiguration)
generateConfigMap
in interface VcsBranchConfigurator
serverConfiguration
- - actual server configuration that can be checked when generating branch configuration@NotNull public VcsBranch getVcsBranchFromConfig(@NotNull Map<String,String> configMap)
VcsBranchConfigurator
getVcsBranchFromConfig
in interface VcsBranchConfigurator
@NotNull public Map<String,String> setVcsBranchInConfig(@NotNull Map<String,String> configMap, @NotNull VcsBranch vcsBranch)
VcsBranchConfigurator
setVcsBranchInConfig
in interface VcsBranchConfigurator
@NotNull public VcsBranch createVcsBranchFromName(@NotNull String name)
VcsBranchConfigurator
createVcsBranchFromName
in interface VcsBranchConfigurator
@Deprecated public void setI18nResolver(com.atlassian.sal.api.message.I18nResolver i18nResolver)
@Deprecated public void setCustomVariableContext(CustomVariableContext customVariableContext)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.