Class ShadowRefreshTaskHandler
- 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<ShadowType,AbstractScannerResultHandler<ShadowType>>
-
- com.evolveum.midpoint.model.impl.cleanup.ShadowRefreshTaskHandler
-
- All Implemented Interfaces:
TaskHandler
,WorkBucketAwareTaskHandler
@Component public class ShadowRefreshTaskHandler extends AbstractScannerTaskHandler<ShadowType,AbstractScannerResultHandler<ShadowType>>
Scanner that looks for pending operations in the shadows and updates the status.- Author:
- Radovan Semancik
-
-
Field Summary
Fields Modifier and Type Field Description static String
HANDLER_URI
protected ProvisioningService
provisioningService
-
Fields inherited from class com.evolveum.midpoint.model.impl.util.AbstractScannerTaskHandler
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 ShadowRefreshTaskHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractScannerResultHandler<ShadowType>
createHandler(TaskPartitionDefinitionType partition, TaskRunResult runResult, RunningTask coordinatorTask, OperationResult opResult)
protected ObjectQuery
createQuery(AbstractScannerResultHandler<ShadowType> handler, TaskRunResult runResult, Task coordinatorTask, OperationResult opResult)
Handler parameter may be used to pass task instance state between the calls.protected void
finish(AbstractScannerResultHandler<ShadowType> handler, TaskRunResult runResult, RunningTask task, OperationResult opResult)
protected Class<ShadowType>
getType(Task task)
protected boolean
requiresDirectRepositoryAccess(AbstractScannerResultHandler<ShadowType> resultHandler, TaskRunResult runResult, Task coordinatorTask, OperationResult opResult)
-
Methods inherited from class com.evolveum.midpoint.model.impl.util.AbstractScannerTaskHandler
getCategoryName, initializeRun
-
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
createQueryFromTask, createQueryFromTaskIfExists, createSearchOptions, createSearchOptionsFromTask, getDefaultChannel, getExpressionProfile, getIdentifierDefinitionProvider, getIterationMethodFromTask, getObjectQueryTypeFromTask, getObjectQueryTypeFromTaskObjectRef, getPrismContext, getRepositoryService, getStatisticsCollectionStrategy, getTaskManager, getTaskName, getTaskOperationPrefix, getTypeFromTask, getUseRepositoryDirectlyFromTask, heartbeat, isEnableActionsExecutedStatistics, isEnableIterationStatistics, isEnableSynchronizationStatistics, isLogFinishInfo, isPreserveStatistics, logPreviousResultIfNeeded, refreshStatus, 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
-
HANDLER_URI
public static final String HANDLER_URI
- See Also:
- Constant Field Values
-
provisioningService
@Autowired(required=true) protected ProvisioningService provisioningService
-
-
Method Detail
-
getType
protected Class<ShadowType> getType(Task task)
- Specified by:
getType
in classAbstractSearchIterativeTaskHandler<ShadowType,AbstractScannerResultHandler<ShadowType>>
-
requiresDirectRepositoryAccess
protected boolean requiresDirectRepositoryAccess(AbstractScannerResultHandler<ShadowType> resultHandler, TaskRunResult runResult, Task coordinatorTask, OperationResult opResult)
-
createQuery
protected ObjectQuery createQuery(AbstractScannerResultHandler<ShadowType> handler, TaskRunResult runResult, Task coordinatorTask, OperationResult opResult) throws SchemaException
Description copied from class:AbstractSearchIterativeTaskHandler
Handler parameter may be used to pass task instance state between the calls.- Overrides:
createQuery
in classAbstractSearchIterativeTaskHandler<ShadowType,AbstractScannerResultHandler<ShadowType>>
- Throws:
SchemaException
-
finish
protected void finish(AbstractScannerResultHandler<ShadowType> handler, TaskRunResult runResult, RunningTask task, OperationResult opResult) throws SchemaException
- Overrides:
finish
in classAbstractScannerTaskHandler<ShadowType,AbstractScannerResultHandler<ShadowType>>
- Throws:
SchemaException
-
createHandler
protected AbstractScannerResultHandler<ShadowType> createHandler(TaskPartitionDefinitionType partition, TaskRunResult runResult, RunningTask coordinatorTask, OperationResult opResult)
- Specified by:
createHandler
in classAbstractSearchIterativeTaskHandler<ShadowType,AbstractScannerResultHandler<ShadowType>>
-
-