@Component public class ImportObjectsFromFileTaskHandler extends Object implements TaskHandler
TaskHandler,
ResourceObjectChangeListener| Modifier and Type | Field and Description |
|---|---|
static String |
HANDLER_URI |
| Constructor and Description |
|---|
ImportObjectsFromFileTaskHandler() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCategoryName(Task task)
Returns a category name for a given task.
|
List<String> |
getCategoryNames()
Returns names of task categories provided by this handler.
|
Long |
heartbeat(Task task) |
void |
launch(File input,
Task task,
OperationResult parentResult)
Launch an import.
|
void |
refreshStatus(Task task) |
TaskRunResult |
run(Task task)
The body of the task.
|
public static final String HANDLER_URI
public void launch(File input, Task task, OperationResult parentResult)
input - task - parentResult - public TaskRunResult run(Task task)
run in interface TaskHandlerpublic Long heartbeat(Task task)
heartbeat in interface TaskHandlerpublic void refreshStatus(Task task)
refreshStatus in interface TaskHandlerpublic String getCategoryName(Task task)
TaskHandlergetCategoryName in interface TaskHandlertask - a task, whose category is to be determined; if getCategoryNames() returns null, this method
has to accept null value as this parameter, and return the (one) category name that it gives
to all taskspublic List<String> getCategoryNames()
TaskHandlergetCategoryNames in interface TaskHandlerCopyright © 2016 evolveum. All rights reserved.