|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TaskConfiguratorHelper
Bucket of TaskConfigurator helper methods
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 |
Method Detail |
---|
void populateContextWithConfiguration(@NotNull java.util.Map<java.lang.String,java.lang.Object> context, @NotNull TaskDefinition taskDefinition, @NotNull java.lang.Iterable<java.lang.String> keys)
context
- Freemarker contexttaskDefinition
- source of task configurationkeys
- keys for which values has to be copiedvoid populateTaskConfigMapWithActionParameters(@NotNull java.util.Map<java.lang.String,java.lang.String> config, @NotNull ActionParametersMap params, @NotNull java.lang.Iterable<java.lang.String> keys)
config
- task configurationparams
- action parameterskeys
- keys for which values has to be copiedvoid addJdkRequirement(@NotNull java.util.Set<Requirement> requirements, @NotNull TaskDefinition taskDefinition, @NotNull java.lang.String cfgJdkLabel)
requirements
- requirements to be modifiedtaskDefinition
- task definitioncfgJdkLabel
- name of configuration key that specifies JDK labelvoid addSystemRequirementFromConfiguration(@NotNull java.util.Set<Requirement> requirements, @NotNull TaskDefinition taskDefinition, @NotNull java.lang.String cfgKey, @NotNull java.lang.String requirementPrefix)
requirements
- requirements to be modifiedtaskDefinition
- task definitioncfgKey
- name of configuration key that specifies label of system requirement to be addedrequirementPrefix
- prefix of the system requirementvoid validateJdk(@NotNull ActionParametersMap params, @NotNull ErrorCollection errorCollection)
params
- action parameterserrorCollection
- target for adding validation errorsvoid validateBuilderLabel(@NotNull ActionParametersMap params, @NotNull ErrorCollection errorCollection)
params
- action parameterserrorCollection
- target for adding validation errorsvoid validateTestResultsFilePattern(@NotNull ActionParametersMap params, @NotNull ErrorCollection errorCollection)
params
- action parameterserrorCollection
- target for adding validation errorsvoid validateTestResultsFilePatternIfCustomPatternSelected(@NotNull ActionParametersMap params, @NotNull ErrorCollection errorCollection, @NotNull java.lang.String cfgTestResultsFilePatternOptionCustom)
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 |