public class BitbucketServerBranchConfigurator extends Object implements VcsBranchConfigurator
Constructor and Description |
---|
BitbucketServerBranchConfigurator() |
Modifier and Type | Method and Description |
---|---|
@NotNull VcsBranch |
createVcsBranchFromName(@NotNull String name)
Create new vcs branch instance with given name
|
@NotNull VcsBranch |
createVcsBranchFromNameForForkWorkflow(@NotNull String branchName,
@NotNull String pullRequestKey)
Create new vcs branch instance with given branch name and pull requests key.
|
@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) |
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
|
@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
generateConfigMap
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
@NotNull public @NotNull VcsBranch createVcsBranchFromNameForForkWorkflow(@NotNull @NotNull String branchName, @NotNull @NotNull String pullRequestKey)
VcsBranchConfigurator
createVcsBranchFromNameForForkWorkflow
in interface VcsBranchConfigurator
@Deprecated public void setI18nResolver(com.atlassian.sal.api.message.I18nResolver i18nResolver)
@Deprecated public void setCustomVariableContext(CustomVariableContext customVariableContext)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.