|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.ant.task.AntBuildTaskConfigurator
public class AntBuildTaskConfigurator
Generic configurator for Ant build tasks. By default uses information in
AntTaskDescriptor
to handle configuration of relevant task parameters.
Each method may be extended to provide handling for any custom task property and also to validate the parameters.
Override createTaskDescriptor(com.atlassian.bamboo.task.TaskDefinition)
to provide our own Ant task
descriptor, otherwise by default its class must be specified as module param
SingleAntBuildTask.PARAM_DESCRIPTOR_CLASS
.
SingleAntBuildTask
Field Summary | |
---|---|
static java.lang.String |
ANT_BUILD_TASK_UI_BEAN
|
Constructor Summary | |
---|---|
AntBuildTaskConfigurator(com.atlassian.plugin.PluginAccessor pluginAccessor,
WebPropertyConfigurators configurators)
|
Method Summary | |
---|---|
protected AntTaskDescriptor |
createTaskDescriptor(TaskDefinition taskDefinition)
Create Ant task descriptor for given definition. |
java.util.Map<java.lang.String,java.lang.String> |
generateTaskConfigMap(ActionParametersMap params,
TaskDefinition previousTaskDefinition)
Convert the params from the ui into a config map to be stored in the database for the taskDefinition. |
void |
populateContextForCreate(java.util.Map<java.lang.String,java.lang.Object> context)
Provide any required context to be used when rendering the freemarker template for creating a task definition. |
void |
populateContextForEdit(java.util.Map<java.lang.String,java.lang.Object> context,
TaskDefinition taskDefinition)
Provide any required context to be used when rendering the freemarker template for view editing a task definition |
void |
populateContextForView(java.util.Map<java.lang.String,java.lang.Object> context,
TaskDefinition taskDefinition)
Provide any required context to be used when rendering the freemarker template for viewing a task definition |
void |
validate(ActionParametersMap params,
ErrorCollection errorCollection)
Validate the params submitted from the UI for this task definition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ANT_BUILD_TASK_UI_BEAN
Constructor Detail |
---|
public AntBuildTaskConfigurator(com.atlassian.plugin.PluginAccessor pluginAccessor, WebPropertyConfigurators configurators)
Method Detail |
---|
public void populateContextForView(@NotNull java.util.Map<java.lang.String,java.lang.Object> context, @NotNull TaskDefinition taskDefinition)
TaskConfigurator
populateContextForView
in interface TaskConfigurator
context
- map to put your context in.taskDefinition
- existing task definitionpublic void populateContextForEdit(@NotNull java.util.Map<java.lang.String,java.lang.Object> context, @NotNull TaskDefinition taskDefinition)
TaskConfigurator
populateContextForEdit
in interface TaskConfigurator
context
- map to put your context in.taskDefinition
- existing task definitionpublic void populateContextForCreate(@NotNull java.util.Map<java.lang.String,java.lang.Object> context)
TaskConfigurator
populateContextForCreate
in interface TaskConfigurator
context
- map to put your context in.public void validate(@NotNull ActionParametersMap params, @NotNull ErrorCollection errorCollection)
TaskConfigurator
validate
in interface TaskConfigurator
params
- - request paramaterserrorCollection
- - collection to put any errors in.@NotNull public java.util.Map<java.lang.String,java.lang.String> generateTaskConfigMap(@NotNull ActionParametersMap params, @Nullable TaskDefinition previousTaskDefinition)
TaskConfigurator
generateTaskConfigMap
in interface TaskConfigurator
params
- - request paramaterspreviousTaskDefinition
- - the previous immutable TaskDefinition
before saving or null if Task is being created
protected AntTaskDescriptor createTaskDescriptor(@Nullable TaskDefinition taskDefinition)
taskDefinition
- task definition, may be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |