@Internal public class RepositoryConfigHelper extends Object implements PlanConfigHelper
Constructor and Description |
---|
RepositoryConfigHelper(RepositoryManager repositoryManager,
com.opensymphony.xwork2.TextProvider textProvider,
RepositoryDefinitionManager repositoryDefinitionManager,
BambooPermissionManager bambooPermissionManager) |
Modifier and Type | Method and Description |
---|---|
void |
addDefaultsToConfig(BuildConfiguration buildConfiguration)
Adds default values for all possible selections, esp preparing for display on the UI
|
void |
cleanConfig(BuildConfiguration buildConfiguration)
Cleans out any data from the build config, not required by the selected option.
|
List<PlanRepositoryLink> |
extractRepositoriesFromConfiguration(BuildConfiguration buildConfiguration,
Plan plan)
Deprecated.
since 3.3 to be removed as soon as possible - created only as temporary hack to make plan creation work
|
static Map<Long,String> |
getRepositoriesForWorkingDirSelection(ImmutableJob job)
Scans checkout tasks for repositories that define their source directory.
|
void |
performPostActionsOnConfig(BuildConfiguration buildConfiguration,
ImmutablePlan plan)
Performs any miscellaneous actions required before saving the plan.
|
void |
prepareConfig(BuildConfiguration buildConfiguration)
Prepare the build configuration for validation.
|
static org.apache.commons.configuration.XMLConfiguration |
prepareXmlConfiguration(Repository repository,
WebRepositoryViewer webRepositoryViewer) |
static String |
prepareXmlConfigurationString(Repository repository,
WebRepositoryViewer webRepositoryViewer) |
void |
validateConfig(com.atlassian.struts.ValidationAware validationAware,
BuildConfiguration buildConfiguration)
Validates the configuration for a plan.
|
void |
validateConfig(com.opensymphony.xwork.ValidationAware validationAware,
BuildConfiguration buildConfiguration)
Validates the configuration for a plan.
|
public RepositoryConfigHelper(RepositoryManager repositoryManager, com.opensymphony.xwork2.TextProvider textProvider, RepositoryDefinitionManager repositoryDefinitionManager, BambooPermissionManager bambooPermissionManager)
public void addDefaultsToConfig(@NotNull BuildConfiguration buildConfiguration)
PlanConfigHelper
addDefaultsToConfig
in interface PlanConfigHelper
buildConfiguration
- - to add defaults topublic void validateConfig(@NotNull com.atlassian.struts.ValidationAware validationAware, @NotNull BuildConfiguration buildConfiguration)
PlanConfigHelper
validateConfig
in interface PlanConfigHelper
validationAware
- - normally the action calling thisbuildConfiguration
- - the configuration to validatepublic void validateConfig(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @NotNull BuildConfiguration buildConfiguration)
PlanConfigHelper
validateConfig
in interface PlanConfigHelper
validationAware
- - normally the action calling thisbuildConfiguration
- - the configuration to validatepublic void prepareConfig(@NotNull BuildConfiguration buildConfiguration)
PlanConfigHelper
prepareConfig
in interface PlanConfigHelper
buildConfiguration
- to manipulatepublic void cleanConfig(@NotNull BuildConfiguration buildConfiguration)
PlanConfigHelper
cleanConfig
in interface PlanConfigHelper
buildConfiguration
- - to cleanpublic void performPostActionsOnConfig(@NotNull BuildConfiguration buildConfiguration, @NotNull ImmutablePlan plan)
PlanConfigHelper
performPostActionsOnConfig
in interface PlanConfigHelper
buildConfiguration
- - of the current configurationplan
- - the current plan@Deprecated public List<PlanRepositoryLink> extractRepositoriesFromConfiguration(@NotNull BuildConfiguration buildConfiguration, @NotNull Plan plan)
buildConfiguration
- plan
- public static org.apache.commons.configuration.XMLConfiguration prepareXmlConfiguration(@NotNull Repository repository, @Nullable WebRepositoryViewer webRepositoryViewer)
public static String prepareXmlConfigurationString(@NotNull Repository repository, @Nullable WebRepositoryViewer webRepositoryViewer)
public static Map<Long,String> getRepositoriesForWorkingDirSelection(@NotNull ImmutableJob job)
job
- Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.