Class ObjectIntegrityCheckTaskHandler
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.task.AbstractSearchIterativeTaskHandler<O,H>
-
- com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeModelTaskHandler<ObjectType,ObjectIntegrityCheckResultHandler>
-
- com.evolveum.midpoint.model.impl.integrity.ObjectIntegrityCheckTaskHandler
-
- All Implemented Interfaces:
TaskHandler
,WorkBucketAwareTaskHandler
@Component public class ObjectIntegrityCheckTaskHandler extends AbstractSearchIterativeModelTaskHandler<ObjectType,ObjectIntegrityCheckResultHandler>
Task handler for "Object integrity check" task. The purpose of this task is to detect and optionally fix anomalies in repository objects. However, currently its only function is to display information about objects size.
-
-
Field Summary
Fields Modifier and Type Field Description static String
HANDLER_URI
-
Fields inherited from class com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeModelTaskHandler
expressionFactory, modelObjectResolver, securityEnforcer
-
Fields inherited from class com.evolveum.midpoint.repo.common.task.AbstractSearchIterativeTaskHandler
prismContext, repositoryService, taskManager
-
-
Constructor Summary
Constructors Constructor Description ObjectIntegrityCheckTaskHandler()
-
Method Summary
-
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, createSearchOptionsFromTask, finish, getDefaultChannel, getExpressionProfile, getIdentifierDefinitionProvider, getIterationMethodFromTask, getPrismContext, getRepositoryService, getStatisticsCollectionStrategy, getTaskManager, getTaskName, getTaskOperationPrefix, getTypeFromTask, getUseRepositoryDirectlyFromTask, heartbeat, initializeRun, 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
-
-
Method Detail
-
createHandler
protected ObjectIntegrityCheckResultHandler createHandler(TaskPartitionDefinitionType partition, TaskRunResult runResult, RunningTask coordinatorTask, OperationResult opResult)
- Specified by:
createHandler
in classAbstractSearchIterativeTaskHandler<ObjectType,ObjectIntegrityCheckResultHandler>
-
getType
protected Class<? extends ObjectType> getType(Task task)
- Specified by:
getType
in classAbstractSearchIterativeTaskHandler<ObjectType,ObjectIntegrityCheckResultHandler>
-
createQuery
protected ObjectQuery createQuery(ObjectIntegrityCheckResultHandler handler, TaskRunResult runResult, Task task, 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<ObjectType,ObjectIntegrityCheckResultHandler>
- Throws:
SchemaException
-
createSearchOptions
protected Collection<SelectorOptions<GetOperationOptions>> createSearchOptions(ObjectIntegrityCheckResultHandler resultHandler, TaskRunResult runResult, Task coordinatorTask, OperationResult opResult)
- Overrides:
createSearchOptions
in classAbstractSearchIterativeTaskHandler<ObjectType,ObjectIntegrityCheckResultHandler>
-
requiresDirectRepositoryAccess
protected boolean requiresDirectRepositoryAccess(ObjectIntegrityCheckResultHandler resultHandler, TaskRunResult runResult, Task coordinatorTask, OperationResult opResult)
-
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"
-
getArchetypeOid
public String getArchetypeOid()
- Returns:
- Archetype OID for tasks that are powered by this handler.
-
-