public class LegacyBranchConfigurator extends LegacyExecutorBase implements VcsBranchConfigurator
repositoryModuleDescriptor
Constructor and Description |
---|
LegacyBranchConfigurator(RepositoryModuleDescriptor repositoryModuleDescriptor) |
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.
|
VcsBranch |
getVcsBranchFromRepositoryXml(String legacyXml) |
String |
getXmlStringWithNewVcsBranch(VcsBranch newBranch,
org.apache.commons.configuration.HierarchicalConfiguration hc) |
void |
populateContextForCreate(Map<String,Object> context) |
void |
populateContextForEdit(Map<String,Object> context,
VcsBranchDefinition branchDefinition) |
void |
populateContextForView(Map<String,Object> context,
VcsBranchDefinition branchDefinition) |
Map<String,String> |
setVcsBranchInConfig(Map<String,String> configMap,
VcsBranch vcsBranch)
Modify config map setting branch to provided one.
|
void |
validate(ActionParametersMap actionParametersMap,
ErrorCollection errorCollection) |
getNewRepositoryInstance, getNewRepositoryInstanceAs, getRepositoryInstance, getRepositoryInstanceAs, xmlToConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateConfigMap
public LegacyBranchConfigurator(RepositoryModuleDescriptor repositoryModuleDescriptor)
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
@NotNull public VcsBranch getVcsBranchFromRepositoryXml(@NotNull String legacyXml)
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.