Class ShadowIntegrityCheckTaskHandler
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.task.AbstractSearchIterativeTaskHandler<O,H>
-
- com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeModelTaskHandler<ShadowType,ShadowIntegrityCheckResultHandler>
-
- com.evolveum.midpoint.model.impl.integrity.ShadowIntegrityCheckTaskHandler
-
- All Implemented Interfaces:
TaskHandler
,WorkBucketAwareTaskHandler
@Component public class ShadowIntegrityCheckTaskHandler extends AbstractSearchIterativeModelTaskHandler<ShadowType,ShadowIntegrityCheckResultHandler>
Task handler for "Shadow integrity check" task. The purpose of this task is to detect and optionally delete duplicate shadows, i.e. distinct shadows that correspond to the same resource object. * Task handler for "Normalize attribute/property data" task. The purpose of this task is to normalize data stored in repository when the corresponding matching rule changes (presumably from non-normalizing to normalizing one, e.g. from case sensitive to case insensitive). The reason is that if the data in the repository would be stored in non-normalized form, the would be effectively hidden for any search on that particular attribute.- Author:
- Pavol Mederly
-
-
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 ShadowIntegrityCheckTaskHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ShadowIntegrityCheckResultHandler
createHandler(TaskPartitionDefinitionType partition, TaskRunResult runResult, RunningTask coordinatorTask, OperationResult opResult)
String
getCategoryName(Task task)
Returns a category name for a given task.protected Class<? extends ObjectType>
getType(Task task)
protected boolean
requiresDirectRepositoryAccess(ShadowIntegrityCheckResultHandler resultHandler, TaskRunResult runResult, Task coordinatorTask, OperationResult opResult)
-
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
createQuery, createQueryFromTask, createQueryFromTaskIfExists, createSearchOptions, createSearchOptionsFromTask, finish, getDefaultChannel, getExpressionProfile, getIdentifierDefinitionProvider, getIterationMethodFromTask, getObjectQueryTypeFromTask, getObjectQueryTypeFromTaskObjectRef, 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 ShadowIntegrityCheckResultHandler createHandler(TaskPartitionDefinitionType partition, TaskRunResult runResult, RunningTask coordinatorTask, OperationResult opResult)
- Specified by:
createHandler
in classAbstractSearchIterativeTaskHandler<ShadowType,ShadowIntegrityCheckResultHandler>
-
getType
protected Class<? extends ObjectType> getType(Task task)
- Specified by:
getType
in classAbstractSearchIterativeTaskHandler<ShadowType,ShadowIntegrityCheckResultHandler>
-
requiresDirectRepositoryAccess
protected boolean requiresDirectRepositoryAccess(ShadowIntegrityCheckResultHandler 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"
-
-