@Component public abstract class AbstractScannerTaskHandler<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,H extends AbstractScannerResultHandler<O>> extends AbstractSearchIterativeTaskHandler<O,H>
Modifier and Type | Field and Description |
---|---|
protected Clock |
clock |
modelObjectResolver, prismContext, repositoryService, securityEnforcer, taskManager
Constructor and Description |
---|
AbstractScannerTaskHandler(Class<O> type,
String taskName,
String taskOperationPrefix) |
Modifier and Type | Method and Description |
---|---|
protected void |
finish(H handler,
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 |
initializeRun(H handler,
TaskRunResult runResult,
Task task,
OperationResult opResult)
Used to properly initialize the "run", which is kind of task instance.
|
createHandler, createQuery, createQueryFromTask, getObjectQueryTypeFromTask, getType, getTypeFromTask, heartbeat, isEnableActionsExecutedStatistics, isEnableIterationStatistics, isEnableSynchronizationStatistics, isLogFinishInfo, isPreserveStatistics, refreshStatus, resolveObjectRef, run, runInternal, setEnableActionsExecutedStatistics, setEnableIterationStatistics, setEnableSynchronizationStatistics, setLogFinishInfo, setPreserveStatistics, useRepositoryDirectly
@Autowired(required=true) protected Clock clock
protected boolean initializeRun(H handler, TaskRunResult runResult, Task task, OperationResult opResult)
AbstractSearchIterativeTaskHandler
initializeRun
in class AbstractSearchIterativeTaskHandler<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,H extends AbstractScannerResultHandler<O>>
protected void finish(H handler, TaskRunResult runResult, Task task, OperationResult opResult) throws SchemaException
finish
in class AbstractSearchIterativeTaskHandler<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,H extends AbstractScannerResultHandler<O>>
SchemaException
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 © 2016 evolveum. All rights reserved.