public abstract class AbstractSearchIterativeTaskHandler<O extends ObjectType> 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 AbstractSearchIterativeResultHandler<O> |
createHandler(TaskRunResult runResult,
Task task,
OperationResult opResult) |
protected abstract ObjectQuery |
createQuery(TaskRunResult runResult,
Task task,
OperationResult opResult) |
protected void |
finish(TaskRunResult runResult,
Task task,
OperationResult opResult) |
Long |
heartbeat(Task task) |
protected boolean |
initialize(TaskRunResult runResult,
Task task,
OperationResult opResult)
First method called.
|
boolean |
isLogFinishInfo() |
void |
refreshStatus(Task task) |
protected <T extends ObjectType> |
resolveObjectRef(Class<T> type,
TaskRunResult runResult,
Task task,
OperationResult opResult) |
TaskRunResult |
run(Task task) |
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 task)
run
in interface TaskHandler
protected boolean initialize(TaskRunResult runResult, Task task, OperationResult opResult)
protected void finish(TaskRunResult runResult, Task task, OperationResult opResult) throws SchemaException
SchemaException
public Long heartbeat(Task task)
heartbeat
in interface TaskHandler
protected <T extends 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(TaskRunResult runResult, Task task, OperationResult opResult) throws SchemaException
SchemaException
protected abstract AbstractSearchIterativeResultHandler<O> createHandler(TaskRunResult runResult, Task task, OperationResult opResult)
Copyright © 2013 evolveum. All rights reserved.