@Component public class ImportAccountsFromResourceTaskHandler extends AbstractSearchIterativeTaskHandler<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType,SynchronizeAccountResultHandler>
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 SynchronizeAccountResultHandler |
createHandler(TaskRunResult runResult,
Task coordinatorTask,
OperationResult opResult) |
protected ObjectQuery |
createQuery(SynchronizeAccountResultHandler handler,
TaskRunResult runResult,
Task task,
OperationResult opResult)
Handler parameter may be used to pass task instance state between the calls.
|
String |
getCategoryName(Task task)
Returns a category name for a given task.
|
List<String> |
getCategoryNames()
Returns names of task categories provided by this handler.
|
boolean |
importSingleShadow(String shadowOid,
Task task,
OperationResult parentResult)
Imports a single shadow.
|
protected boolean |
initializeRun(SynchronizeAccountResultHandler handler,
TaskRunResult runResult,
Task task,
OperationResult opResult)
Used to properly initialize the "run", which is kind of task instance.
|
void |
launch(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource,
QName objectclass,
Task task,
OperationResult parentResult)
Launch an import.
|
finish, getObjectQueryTypeFromTask, heartbeat, isLogFinishInfo, refreshStatus, resolveObjectRef, run, setLogFinishInfo
public static final String HANDLER_URI
public ImportAccountsFromResourceTaskHandler()
public void launch(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource, QName objectclass, Task task, OperationResult parentResult)
protected SynchronizeAccountResultHandler createHandler(TaskRunResult runResult, Task coordinatorTask, OperationResult opResult)
createHandler
in class AbstractSearchIterativeTaskHandler<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType,SynchronizeAccountResultHandler>
protected boolean initializeRun(SynchronizeAccountResultHandler handler, TaskRunResult runResult, Task task, OperationResult opResult)
AbstractSearchIterativeTaskHandler
initializeRun
in class AbstractSearchIterativeTaskHandler<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType,SynchronizeAccountResultHandler>
protected ObjectQuery createQuery(SynchronizeAccountResultHandler handler, TaskRunResult runResult, Task task, OperationResult opResult)
AbstractSearchIterativeTaskHandler
createQuery
in class AbstractSearchIterativeTaskHandler<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType,SynchronizeAccountResultHandler>
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
public boolean importSingleShadow(String shadowOid, Task task, OperationResult parentResult) throws ObjectNotFoundException, CommunicationException, SchemaException, ConfigurationException, SecurityViolationException
Copyright © 2015 evolveum. All rights reserved.