public interface VcsBranchConfigurator
Modifier and Type | Method and Description |
---|---|
@NotNull VcsBranch |
createVcsBranchFromName(@NotNull String name)
Create new vcs branch instance with given name
|
default @NotNull VcsBranch |
createVcsBranchFromNameForForkWorkflow(@NotNull String branchName,
@NotNull String pullRequestKey)
Create new vcs branch instance with given branch name and pull requests key.
|
default @NotNull Map<String,String> |
generateConfigMap(@NotNull ActionParametersMap actionParametersMap,
@Nullable VcsBranchDefinition previousBranchDefinition)
Deprecated.
since 5.15 use {@link #generateConfigMap(ActionParametersMap, VcsBranchDefinition, Map
|
default @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) |
void populateContextForCreate(@NotNull @NotNull Map<String,Object> context)
void populateContextForEdit(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull VcsBranchDefinition branchDefinition)
void populateContextForView(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull VcsBranchDefinition branchDefinition)
void validate(@NotNull @NotNull ActionParametersMap actionParametersMap, @NotNull @NotNull ErrorCollection errorCollection)
@Deprecated @NotNull default @NotNull Map<String,String> generateConfigMap(@NotNull @NotNull ActionParametersMap actionParametersMap, @Nullable @Nullable VcsBranchDefinition previousBranchDefinition)
actionParametersMap
- previousBranchDefinition
- @NotNull default @NotNull Map<String,String> generateConfigMap(@NotNull @NotNull ActionParametersMap actionParametersMap, @Nullable @Nullable VcsBranchDefinition previousBranchDefinition, @NotNull @NotNull Map<String,String> locationConfiguration)
actionParametersMap
- previousBranchDefinition
- locationConfiguration
- - actual server configuration that can be checked when generating branch configuration@NotNull @NotNull VcsBranch getVcsBranchFromConfig(@NotNull @NotNull Map<String,String> configMap)
configMap
- @NotNull @NotNull Map<String,String> setVcsBranchInConfig(@NotNull @NotNull Map<String,String> configMap, @NotNull @NotNull VcsBranch vcsBranch)
configMap
- vcsBranch
- @NotNull @NotNull VcsBranch createVcsBranchFromName(@NotNull @NotNull String name)
name
- @NotNull default @NotNull VcsBranch createVcsBranchFromNameForForkWorkflow(@NotNull @NotNull String branchName, @NotNull @NotNull String pullRequestKey)
branchName
- pullRequestKey
- Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.