public class BitbucketServerBranchConfigurator extends Object implements VcsBranchConfigurator
Constructor and Description |
---|
BitbucketServerBranchConfigurator() |
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> locationConfiguration) |
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) |
void |
setI18nResolver(com.atlassian.sal.api.message.I18nResolver i18nResolver) |
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> locationConfiguration)
generateConfigMap
in interface VcsBranchConfigurator
locationConfiguration
- - 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
public void setI18nResolver(com.atlassian.sal.api.message.I18nResolver i18nResolver)
public void setCustomVariableContext(CustomVariableContext customVariableContext)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.