com.evolveum.midpoint.model.importer
Class ImportObjectsFromFileTaskHandler
java.lang.Object
com.evolveum.midpoint.model.importer.ImportObjectsFromFileTaskHandler
- All Implemented Interfaces:
- TaskHandler
@Component
public class ImportObjectsFromFileTaskHandler
- extends java.lang.Object
- implements TaskHandler
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)
- Author:
- Radovan Semancik
- See Also:
TaskHandler
,
ResourceObjectChangeListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HANDLER_URI
public static final java.lang.String HANDLER_URI
- See Also:
- Constant Field Values
ImportObjectsFromFileTaskHandler
public ImportObjectsFromFileTaskHandler()
launch
public void launch(java.io.File input,
Task task,
OperationResult parentResult)
- Launch an import. Calling this method will start import in a new
thread, possibly on a different node.
- Parameters:
resource
- task
- manager
-
run
public TaskRunResult run(Task task)
- The body of the task. This will start the import "loop".
- Specified by:
run
in interface TaskHandler
heartbeat
public java.lang.Long heartbeat(Task task)
- Specified by:
heartbeat
in interface TaskHandler
refreshStatus
public void refreshStatus(Task task)
- Specified by:
refreshStatus
in interface TaskHandler
Copyright © 2011 evolveum. All Rights Reserved.