Class LegacyBranchConfigurator
- java.lang.Object
-
- com.atlassian.bamboo.vcs.configuration.legacy.LegacyExecutorBase
-
- com.atlassian.bamboo.vcs.configuration.legacy.configurator.LegacyBranchConfigurator
-
- All Implemented Interfaces:
VcsBranchConfigurator
public class LegacyBranchConfigurator extends LegacyExecutorBase implements VcsBranchConfigurator
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.vcs.configuration.legacy.LegacyExecutorBase
repositoryModuleDescriptor
-
-
Constructor Summary
Constructors Constructor Description LegacyBranchConfigurator(RepositoryModuleDescriptor repositoryModuleDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.@NotNull VcsBranch
getVcsBranchFromRepositoryXml(@NotNull String legacyXml)
@NotNull String
getXmlStringWithNewVcsBranch(@NotNull VcsBranch newBranch, @NotNull org.apache.commons.configuration.HierarchicalConfiguration hc)
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)
-
Methods inherited from class com.atlassian.bamboo.vcs.configuration.legacy.LegacyExecutorBase
getNewRepositoryInstance, getNewRepositoryInstanceAs, getRepositoryInstance, getRepositoryInstanceAs, xmlToConfiguration
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.vcs.configurator.VcsBranchConfigurator
createVcsBranchFromNameForForkWorkflow, generateConfigMap
-
-
-
-
Constructor Detail
-
LegacyBranchConfigurator
public LegacyBranchConfigurator(RepositoryModuleDescriptor repositoryModuleDescriptor)
-
-
Method Detail
-
populateContextForCreate
public void populateContextForCreate(@NotNull @NotNull Map<String,Object> context)
- Specified by:
populateContextForCreate
in interfaceVcsBranchConfigurator
-
populateContextForEdit
public void populateContextForEdit(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull VcsBranchDefinition branchDefinition)
- Specified by:
populateContextForEdit
in interfaceVcsBranchConfigurator
-
populateContextForView
public void populateContextForView(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull VcsBranchDefinition branchDefinition)
- Specified by:
populateContextForView
in interfaceVcsBranchConfigurator
-
validate
public void validate(@NotNull @NotNull ActionParametersMap actionParametersMap, @NotNull @NotNull ErrorCollection errorCollection)
- Specified by:
validate
in interfaceVcsBranchConfigurator
-
generateConfigMap
@NotNull public @NotNull Map<String,String> generateConfigMap(@NotNull @NotNull ActionParametersMap actionParametersMap, @Nullable @Nullable VcsBranchDefinition previousBranchDefinition, @NotNull @NotNull Map<String,String> locationConfiguration)
- Specified by:
generateConfigMap
in interfaceVcsBranchConfigurator
locationConfiguration
- - actual server configuration that can be checked when generating branch configuration
-
getVcsBranchFromConfig
@NotNull public @NotNull VcsBranch getVcsBranchFromConfig(@NotNull @NotNull Map<String,String> configMap)
Description copied from interface:VcsBranchConfigurator
Return branch name according to provided config.- Specified by:
getVcsBranchFromConfig
in interfaceVcsBranchConfigurator
-
setVcsBranchInConfig
@NotNull public @NotNull Map<String,String> setVcsBranchInConfig(@NotNull @NotNull Map<String,String> configMap, @NotNull @NotNull VcsBranch vcsBranch)
Description copied from interface:VcsBranchConfigurator
Modify config map by setting branch to provided one.- Specified by:
setVcsBranchInConfig
in interfaceVcsBranchConfigurator
-
createVcsBranchFromName
@NotNull public @NotNull VcsBranch createVcsBranchFromName(@NotNull @NotNull String name)
Description copied from interface:VcsBranchConfigurator
Create new vcs branch instance with given name- Specified by:
createVcsBranchFromName
in interfaceVcsBranchConfigurator
- Returns:
-
getVcsBranchFromRepositoryXml
@NotNull public @NotNull VcsBranch getVcsBranchFromRepositoryXml(@NotNull @NotNull String legacyXml)
-
-