|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@PublicApi public interface TaskConfigurator
Implement this class if you want the user to be able to configure your task.
TaskDefinition| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
void populateContextForView(@NotNull
java.util.Map<java.lang.String,java.lang.Object> context,
@NotNull
TaskDefinition taskDefinition)
context - map to put your context in.taskDefinition - existing task definition
void populateContextForEdit(@NotNull
java.util.Map<java.lang.String,java.lang.Object> context,
@NotNull
TaskDefinition taskDefinition)
context - map to put your context in.taskDefinition - existing task definition
void populateContextForCreate(@NotNull
java.util.Map<java.lang.String,java.lang.Object> context)
context - map to put your context in.
void validate(@NotNull
ActionParametersMap params,
@NotNull
ErrorCollection errorCollection)
params - - request paramaterserrorCollection - - collection to put any errors in.
@NotNull
java.util.Map<java.lang.String,java.lang.String> generateTaskConfigMap(@NotNull
ActionParametersMap params,
@Nullable
TaskDefinition previousTaskDefinition)
params - - request paramaterspreviousTaskDefinition - - the previous immutable TaskDefinition before saving or null if Task is being created
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||