Class WebRepositoryConfigHelper
- java.lang.Object
-
- com.atlassian.bamboo.build.creation.WebRepositoryConfigHelper
-
- All Implemented Interfaces:
PlanConfigHelper
public class WebRepositoryConfigHelper extends Object implements PlanConfigHelper
-
-
Constructor Summary
Constructors Constructor Description WebRepositoryConfigHelper(WebRepositoryViewerManager webRepositoryViewerManager, com.opensymphony.xwork2.TextProvider textProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDefaultsToConfig(@NotNull BuildConfiguration buildConfiguration)Adds default values for all possible selections, esp preparing for display on the UIvoidcleanConfig(@NotNull BuildConfiguration buildConfiguration)Cleans out any data from the build config, not required by the selected option.voidperformPostActionsOnConfig(@NotNull BuildConfiguration buildConfiguration, @NotNull ImmutablePlan plan)Performs any miscellaneous actions required before saving the plan.voidprepareConfig(@NotNull BuildConfiguration buildConfiguration)Prepare the build configuration for validation.voidvalidateConfig(@NotNull com.atlassian.struts.ValidationAware validationAware, @NotNull BuildConfiguration buildConfiguration)Validates the configuration for a plan.voidvalidateConfig(com.opensymphony.xwork.ValidationAware validationAware, @NotNull BuildConfiguration buildConfiguration)Validates the configuration for a plan.
-
-
-
Constructor Detail
-
WebRepositoryConfigHelper
public WebRepositoryConfigHelper(WebRepositoryViewerManager webRepositoryViewerManager, com.opensymphony.xwork2.TextProvider textProvider)
-
-
Method Detail
-
addDefaultsToConfig
public void addDefaultsToConfig(@NotNull @NotNull BuildConfiguration buildConfiguration)Description copied from interface:PlanConfigHelperAdds default values for all possible selections, esp preparing for display on the UI- Specified by:
addDefaultsToConfigin interfacePlanConfigHelper- Parameters:
buildConfiguration- - to add defaults to
-
validateConfig
public void validateConfig(@NotNull @NotNull com.atlassian.struts.ValidationAware validationAware, @NotNull @NotNull BuildConfiguration buildConfiguration)Description copied from interface:PlanConfigHelperValidates the configuration for a plan. Adds any errors to the validationAware object- Specified by:
validateConfigin interfacePlanConfigHelper- Parameters:
validationAware- - normally the action calling thisbuildConfiguration- - the configuration to validate
-
validateConfig
public void validateConfig(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @NotNull @NotNull BuildConfiguration buildConfiguration)Description copied from interface:PlanConfigHelperValidates the configuration for a plan. Adds any errors to the validationAware object- Specified by:
validateConfigin interfacePlanConfigHelper- Parameters:
validationAware- - normally the action calling thisbuildConfiguration- - the configuration to validate
-
prepareConfig
public void prepareConfig(@NotNull @NotNull BuildConfiguration buildConfiguration)Description copied from interface:PlanConfigHelperPrepare the build configuration for validation. Performs required manual manipulations on the build config.- Specified by:
prepareConfigin interfacePlanConfigHelper- Parameters:
buildConfiguration- to manipulate
-
cleanConfig
public void cleanConfig(@NotNull @NotNull BuildConfiguration buildConfiguration)Description copied from interface:PlanConfigHelperCleans out any data from the build config, not required by the selected option.- Specified by:
cleanConfigin interfacePlanConfigHelper- Parameters:
buildConfiguration- - to clean
-
performPostActionsOnConfig
public void performPostActionsOnConfig(@NotNull @NotNull BuildConfiguration buildConfiguration, @NotNull @NotNull ImmutablePlan plan)Description copied from interface:PlanConfigHelperPerforms any miscellaneous actions required before saving the plan. Is aware of the currently selected option.- Specified by:
performPostActionsOnConfigin interfacePlanConfigHelper- Parameters:
buildConfiguration- - of the current configurationplan- - the current plan
-
-