Class AbstractScannerTaskHandler<O extends ObjectType,H extends AbstractScannerResultHandler<O>>
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.task.AbstractSearchIterativeTaskHandler<O,H>
-
- com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeModelTaskHandler<O,H>
-
- com.evolveum.midpoint.model.impl.util.AbstractScannerTaskHandler<O,H>
-
- All Implemented Interfaces:
TaskHandler
,WorkBucketAwareTaskHandler
- Direct Known Subclasses:
FocusValidityScannerTaskHandler
,ShadowRefreshTaskHandler
,TriggerScannerTaskHandler
@Component public abstract class AbstractScannerTaskHandler<O extends ObjectType,H extends AbstractScannerResultHandler<O>> extends AbstractSearchIterativeModelTaskHandler<O,H>
- Author:
- Radovan Semancik
-
-
Field Summary
Fields Modifier and Type Field Description protected Clock
clock
-
Fields inherited from class com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeModelTaskHandler
expressionFactory, modelObjectResolver, securityEnforcer, systemObjectCache
-
Fields inherited from class com.evolveum.midpoint.repo.common.task.AbstractSearchIterativeTaskHandler
prismContext, repositoryService, taskManager
-
-
Constructor Summary
Constructors Constructor Description AbstractScannerTaskHandler(Class<O> type, String taskName, String taskOperationPrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
finish(H handler, TaskRunResult runResult, RunningTask task, OperationResult opResult)
String
getCategoryName(Task task)
Returns a category name for a given task.protected boolean
initializeRun(H handler, TaskRunResult runResult, Task task, OperationResult opResult)
Used to properly initialize the "run", which is kind of task instance.-
Methods inherited from class com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeModelTaskHandler
checkRawAuthorization, countObjects, getExecuteOptionsFromTask, preProcessQuery, resolveObjectRef, searchIterative
-
Methods inherited from class com.evolveum.midpoint.repo.common.task.AbstractSearchIterativeTaskHandler
createHandler, createQuery, createQueryFromTask, createQueryFromTaskIfExists, createSearchOptions, createSearchOptionsFromTask, getDefaultChannel, getExpressionProfile, getIdentifierDefinitionProvider, getIterationMethodFromTask, getObjectQueryTypeFromTask, getObjectQueryTypeFromTaskObjectRef, getPrismContext, getRepositoryService, getStatisticsCollectionStrategy, getTaskManager, getTaskName, getTaskOperationPrefix, getType, getTypeFromTask, getUseRepositoryDirectlyFromTask, heartbeat, isEnableActionsExecutedStatistics, isEnableIterationStatistics, isEnableSynchronizationStatistics, isLogFinishInfo, isPreserveStatistics, logPreviousResultIfNeeded, refreshStatus, requiresDirectRepositoryAccess, run, setEnableActionsExecutedStatistics, setEnableIterationStatistics, setEnableSynchronizationStatistics, setLogFinishInfo, setPreserveStatistics
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.task.api.TaskHandler
getCategoryNames
-
Methods inherited from interface com.evolveum.midpoint.task.api.WorkBucketAwareTaskHandler
getObjectQueryTypeFromTaskExtension, onNoMoreBuckets, run, run
-
-
-
-
Field Detail
-
clock
@Autowired protected Clock clock
-
-
Method Detail
-
initializeRun
protected boolean initializeRun(H handler, TaskRunResult runResult, Task task, OperationResult opResult)
Description copied from class:AbstractSearchIterativeTaskHandler
Used to properly initialize the "run", which is kind of task instance. The result handler is already created at this stage. Therefore this method may be used to "enrich" the result handler with some instance-specific data.- Overrides:
initializeRun
in classAbstractSearchIterativeTaskHandler<O extends ObjectType,H extends AbstractScannerResultHandler<O>>
-
finish
protected void finish(H handler, TaskRunResult runResult, RunningTask task, OperationResult opResult) throws SchemaException
- Overrides:
finish
in classAbstractSearchIterativeTaskHandler<O extends ObjectType,H extends AbstractScannerResultHandler<O>>
- Throws:
SchemaException
-
getCategoryName
public String getCategoryName(Task task)
Description copied from interface:TaskHandler
Returns a category name for a given task. In most cases, the name would be independent of concrete task.- Parameters:
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 tasks- Returns:
- a user-understandable name, like "LiveSync" or "Workflow"
-
-