|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolveum.midpoint.model.importer.ImportAccountsFromResourceTaskHandler
@Component public class ImportAccountsFromResourceTaskHandler
Task handler for "Import from resource" task.
The import task will search for all the accounts on a specific resource. It will pretend that all the accounts were just created and notify other components (mode) using the ResourceObjectChangeListener interface. This will efficiently result in importing all the accounts. Depending on the sync policy, appropriate user objects may be created, accounts may be linked to existing users, etc. The handler will execute the import in background. It is using Task Manager for that purpose, so the Task Manager instance needs to be injected. Most of the "import" action is actually done in the callbacks from provisioning searchObjectsIterative() operation. The import task may be executed on a different node (as usual for async tasks).
TaskHandler
,
ResourceObjectChangeListener
Field Summary | |
---|---|
static java.lang.String |
HANDLER_URI
|
Constructor Summary | |
---|---|
ImportAccountsFromResourceTaskHandler()
|
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(ResourceType resource,
javax.xml.namespace.QName objectclass,
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 ImportAccountsFromResourceTaskHandler()
Method Detail |
---|
public void launch(ResourceType resource, javax.xml.namespace.QName objectclass, Task task, OperationResult parentResult)
resource
- 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 |