|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.task.TaskConfiguratorHelperImpl
public class TaskConfiguratorHelperImpl
Constructor Summary | |
---|---|
TaskConfiguratorHelperImpl(com.opensymphony.xwork.TextProvider textProvider)
|
Method Summary | |
---|---|
void |
addJdkRequirement(java.util.Set<Requirement> requirements,
TaskDefinition taskDefinition,
java.lang.String cfgJdkLabel)
Add JDK requirement if JDK was defined in task configuration |
void |
addSystemRequirementFromConfiguration(java.util.Set<Requirement> requirements,
TaskDefinition taskDefinition,
java.lang.String cfgKey,
java.lang.String requirementPrefix)
Add Executable requirement if Executable was defined in task configuration |
void |
populateContextWithConfiguration(java.util.Map<java.lang.String,java.lang.Object> context,
TaskDefinition taskDefinition,
java.lang.Iterable<java.lang.String> keys)
Populate Freemarker context with selected data from task configuration. |
void |
populateTaskConfigMapWithActionParameters(java.util.Map<java.lang.String,java.lang.String> config,
ActionParametersMap params,
java.lang.Iterable<java.lang.String> keys)
Populate task configuration with selected data from action parameters. |
void |
validateBuilderLabel(ActionParametersMap params,
ErrorCollection errorCollection)
Validate builder definition in action parameters |
void |
validateJdk(ActionParametersMap params,
ErrorCollection errorCollection)
Validate JDK definition in action parameters |
void |
validateTestResultsFilePattern(ActionParametersMap params,
ErrorCollection errorCollection)
Validate test results file pattern in action parameters |
void |
validateTestResultsFilePatternIfCustomPatternSelected(ActionParametersMap params,
ErrorCollection errorCollection,
java.lang.String cfgTestResultsFilePatternOptionCustom)
Validate test results file pattern in action parameters when manual pattern is enabled by an option |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaskConfiguratorHelperImpl(com.opensymphony.xwork.TextProvider textProvider)
Method Detail |
---|
public void populateContextWithConfiguration(@NotNull java.util.Map<java.lang.String,java.lang.Object> context, @NotNull TaskDefinition taskDefinition, @NotNull java.lang.Iterable<java.lang.String> keys)
TaskConfiguratorHelper
populateContextWithConfiguration
in interface TaskConfiguratorHelper
context
- Freemarker contexttaskDefinition
- source of task configurationkeys
- keys for which values has to be copiedpublic void populateTaskConfigMapWithActionParameters(@NotNull java.util.Map<java.lang.String,java.lang.String> config, @NotNull ActionParametersMap params, @NotNull java.lang.Iterable<java.lang.String> keys)
TaskConfiguratorHelper
populateTaskConfigMapWithActionParameters
in interface TaskConfiguratorHelper
config
- task configurationparams
- action parameterskeys
- keys for which values has to be copiedpublic void addJdkRequirement(@NotNull java.util.Set<Requirement> requirements, @NotNull TaskDefinition taskDefinition, @NotNull java.lang.String cfgJdkLabel)
TaskConfiguratorHelper
addJdkRequirement
in interface TaskConfiguratorHelper
requirements
- requirements to be modifiedtaskDefinition
- task definitioncfgJdkLabel
- name of configuration key that specifies JDK labelpublic void addSystemRequirementFromConfiguration(@NotNull java.util.Set<Requirement> requirements, @NotNull TaskDefinition taskDefinition, @NotNull java.lang.String cfgKey, @NotNull java.lang.String requirementPrefix)
TaskConfiguratorHelper
addSystemRequirementFromConfiguration
in interface TaskConfiguratorHelper
requirements
- requirements to be modifiedtaskDefinition
- task definitioncfgKey
- name of configuration key that specifies label of system requirement to be addedrequirementPrefix
- prefix of the system requirementpublic void validateJdk(@NotNull ActionParametersMap params, @NotNull ErrorCollection errorCollection)
TaskConfiguratorHelper
validateJdk
in interface TaskConfiguratorHelper
params
- action parameterserrorCollection
- target for adding validation errorspublic void validateBuilderLabel(@NotNull ActionParametersMap params, @NotNull ErrorCollection errorCollection)
TaskConfiguratorHelper
validateBuilderLabel
in interface TaskConfiguratorHelper
params
- action parameterserrorCollection
- target for adding validation errorspublic void validateTestResultsFilePattern(@NotNull ActionParametersMap params, @NotNull ErrorCollection errorCollection)
TaskConfiguratorHelper
validateTestResultsFilePattern
in interface TaskConfiguratorHelper
params
- action parameterserrorCollection
- target for adding validation errorspublic void validateTestResultsFilePatternIfCustomPatternSelected(@NotNull ActionParametersMap params, @NotNull ErrorCollection errorCollection, @NotNull java.lang.String cfgTestResultsFilePatternOptionCustom)
TaskConfiguratorHelper
validateTestResultsFilePatternIfCustomPatternSelected
in interface TaskConfiguratorHelper
params
- action parameterserrorCollection
- target for adding validation errorscfgTestResultsFilePatternOptionCustom
- value of an option that enables test results file pattern
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |