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