@Component public class ReindexTaskHandler extends AbstractSearchIterativeTaskHandler<com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,ReindexResultHandler>
Modifier and Type | Field and Description |
---|---|
static String |
HANDLER_URI |
modelObjectResolver, prismContext, repositoryService, securityEnforcer, taskManager
Constructor and Description |
---|
ReindexTaskHandler() |
Modifier and Type | Method and Description |
---|---|
protected ReindexResultHandler |
createHandler(TaskRunResult runResult,
Task coordinatorTask,
OperationResult opResult) |
protected ObjectQuery |
createQuery(ReindexResultHandler 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.
|
protected Class<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
getType(Task task) |
protected boolean |
initializeRun(ReindexResultHandler handler,
TaskRunResult runResult,
Task task,
OperationResult opResult)
Used to properly initialize the "run", which is kind of task instance.
|
protected boolean |
useRepositoryDirectly(ReindexResultHandler resultHandler,
TaskRunResult runResult,
Task coordinatorTask,
OperationResult opResult) |
createQueryFromTask, finish, getObjectQueryTypeFromTask, getTypeFromTask, heartbeat, isEnableActionsExecutedStatistics, isEnableIterationStatistics, isEnableSynchronizationStatistics, isLogFinishInfo, isPreserveStatistics, refreshStatus, resolveObjectRef, run, runInternal, setEnableActionsExecutedStatistics, setEnableIterationStatistics, setEnableSynchronizationStatistics, setLogFinishInfo, setPreserveStatistics
public static final String HANDLER_URI
protected ReindexResultHandler createHandler(TaskRunResult runResult, Task coordinatorTask, OperationResult opResult) throws SchemaException, SecurityViolationException
createHandler
in class AbstractSearchIterativeTaskHandler<com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,ReindexResultHandler>
SchemaException
SecurityViolationException
protected boolean initializeRun(ReindexResultHandler handler, TaskRunResult runResult, Task task, OperationResult opResult)
AbstractSearchIterativeTaskHandler
initializeRun
in class AbstractSearchIterativeTaskHandler<com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,ReindexResultHandler>
protected Class<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> getType(Task task)
getType
in class AbstractSearchIterativeTaskHandler<com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,ReindexResultHandler>
protected ObjectQuery createQuery(ReindexResultHandler handler, TaskRunResult runResult, Task task, OperationResult opResult) throws SchemaException
AbstractSearchIterativeTaskHandler
createQuery
in class AbstractSearchIterativeTaskHandler<com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,ReindexResultHandler>
SchemaException
protected boolean useRepositoryDirectly(ReindexResultHandler resultHandler, TaskRunResult runResult, Task coordinatorTask, OperationResult opResult)
useRepositoryDirectly
in class AbstractSearchIterativeTaskHandler<com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,ReindexResultHandler>
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.