|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolveum.midpoint.model.importer.ImportObjectsFromFileTaskHandler
@Component public class ImportObjectsFromFileTaskHandler
Task handler for "Import objects from file" task.
Import parses the input file and add all objects to the repository. The import task might be executed on a different node (as usual for async tasks), but this won't work as the file is not serializable. Therefore the task needs to be locked to the executing node. (TODO)
TaskHandler
,
ResourceObjectChangeListener
Field Summary | |
---|---|
static java.lang.String |
HANDLER_URI
|
Constructor Summary | |
---|---|
ImportObjectsFromFileTaskHandler()
|
Method Summary | |
---|---|
java.lang.String |
getCategoryName(Task task)
Returns a category name for a given task. |
java.util.List<java.lang.String> |
getCategoryNames()
Returns names of task categories provided by this handler. |
java.lang.Long |
heartbeat(Task task)
|
void |
launch(java.io.File input,
Task task,
OperationResult parentResult)
Launch an import. |
void |
refreshStatus(Task task)
|
TaskRunResult |
run(Task task)
The body of the task. |
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 HANDLER_URI
Constructor Detail |
---|
public ImportObjectsFromFileTaskHandler()
Method Detail |
---|
public void launch(java.io.File input, Task task, OperationResult parentResult)
input
- task
- parentResult
- public TaskRunResult run(Task task)
run
in interface TaskHandler
public java.lang.Long heartbeat(Task task)
heartbeat
in interface TaskHandler
public void refreshStatus(Task task)
refreshStatus
in interface TaskHandler
public java.lang.String getCategoryName(Task task)
TaskHandler
getCategoryName
in interface TaskHandler
task
- 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 tasks
public java.util.List<java.lang.String> getCategoryNames()
TaskHandler
getCategoryNames
in interface TaskHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |