@Component public class ImportAccountsFromResourceTaskHandler extends AbstractSearchIterativeTaskHandler<ShadowType>
TaskHandler
,
ResourceObjectChangeListener
Modifier and Type | Field and Description |
---|---|
static String |
HANDLER_URI |
modelObjectResolver, prismContext
Constructor and Description |
---|
ImportAccountsFromResourceTaskHandler() |
Modifier and Type | Method and Description |
---|---|
protected AbstractSearchIterativeResultHandler<ShadowType> |
createHandler(TaskRunResult runResult,
Task task,
OperationResult opResult) |
protected ObjectQuery |
createQuery(TaskRunResult runResult,
Task task,
OperationResult opResult) |
String |
getCategoryName(Task task)
Returns a category name for a given task.
|
List<String> |
getCategoryNames()
Returns names of task categories provided by this handler.
|
protected boolean |
initialize(TaskRunResult runResult,
Task task,
OperationResult opResult)
First method called.
|
void |
launch(ResourceType resource,
QName objectclass,
Task task,
OperationResult parentResult)
Launch an import.
|
finish, heartbeat, isLogFinishInfo, refreshStatus, resolveObjectRef, run, setLogFinishInfo
public static final String HANDLER_URI
public ImportAccountsFromResourceTaskHandler()
public void launch(ResourceType resource, QName objectclass, Task task, OperationResult parentResult)
protected boolean initialize(TaskRunResult runResult, Task task, OperationResult opResult)
AbstractSearchIterativeTaskHandler
initialize
in class AbstractSearchIterativeTaskHandler<ShadowType>
protected ObjectQuery createQuery(TaskRunResult runResult, Task task, OperationResult opResult)
createQuery
in class AbstractSearchIterativeTaskHandler<ShadowType>
protected AbstractSearchIterativeResultHandler<ShadowType> createHandler(TaskRunResult runResult, Task task, OperationResult opResult)
createHandler
in class AbstractSearchIterativeTaskHandler<ShadowType>
public String getCategoryName(Task task)
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 taskspublic List<String> getCategoryNames()
TaskHandler
Copyright © 2013 evolveum. All rights reserved.