public abstract class AbstractSearchIterativeTaskHandler<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,H extends AbstractSearchIterativeResultHandler<O>> extends Object implements TaskHandler
Modifier and Type | Field and Description |
---|---|
protected ModelObjectResolver |
modelObjectResolver |
protected PrismContext |
prismContext |
protected TaskManager |
taskManager |
Modifier | Constructor and Description |
---|---|
protected |
AbstractSearchIterativeTaskHandler(Class<O> type,
String taskName,
String taskOperationPrefix) |
Modifier and Type | Method and Description |
---|---|
protected abstract H |
createHandler(TaskRunResult runResult,
Task coordinatorTask,
OperationResult opResult) |
protected abstract ObjectQuery |
createQuery(H handler,
TaskRunResult runResult,
Task task,
OperationResult opResult)
Handler parameter may be used to pass task instance state between the calls.
|
protected void |
finish(H handler,
TaskRunResult runResult,
Task task,
OperationResult opResult) |
protected QueryType |
getObjectQueryTypeFromTask(Task task) |
Long |
heartbeat(Task task) |
protected boolean |
initializeRun(H handler,
TaskRunResult runResult,
Task task,
OperationResult opResult)
Used to properly initialize the "run", which is kind of task instance.
|
boolean |
isLogFinishInfo() |
void |
refreshStatus(Task task) |
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
resolveObjectRef(Class<T> type,
TaskRunResult runResult,
Task task,
OperationResult opResult) |
TaskRunResult |
run(Task coordinatorTask) |
void |
setLogFinishInfo(boolean logFinishInfo) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCategoryName, getCategoryNames
@Autowired(required=true) protected TaskManager taskManager
@Autowired(required=true) protected ModelObjectResolver modelObjectResolver
@Autowired(required=true) protected PrismContext prismContext
public boolean isLogFinishInfo()
public void setLogFinishInfo(boolean logFinishInfo)
public TaskRunResult run(Task coordinatorTask)
run
in interface TaskHandler
protected void finish(H handler, TaskRunResult runResult, Task task, OperationResult opResult) throws SchemaException
SchemaException
public Long heartbeat(Task task)
heartbeat
in interface TaskHandler
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> T resolveObjectRef(Class<T> type, TaskRunResult runResult, Task task, OperationResult opResult)
public void refreshStatus(Task task)
refreshStatus
in interface TaskHandler
protected abstract ObjectQuery createQuery(H handler, TaskRunResult runResult, Task task, OperationResult opResult) throws SchemaException
SchemaException
protected abstract H createHandler(TaskRunResult runResult, Task coordinatorTask, OperationResult opResult)
protected boolean initializeRun(H handler, TaskRunResult runResult, Task task, OperationResult opResult)
Copyright © 2015 evolveum. All rights reserved.