Class AbstractSearchIterativeModelTaskHandler<O extends ObjectType,H extends AbstractSearchIterativeResultHandler<O>>
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.task.AbstractSearchIterativeTaskHandler<O,H>
-
- com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeModelTaskHandler<O,H>
-
- All Implemented Interfaces:
TaskHandler
,WorkBucketAwareTaskHandler
- Direct Known Subclasses:
AbstractScannerTaskHandler
,DeleteNotUpdatedShadowTaskHandler
,ExecuteChangesTaskHandler
,ImportAccountsFromResourceTaskHandler
,IterativeScriptExecutionTaskHandler
,ObjectIntegrityCheckTaskHandler
,RecomputeTaskHandler
,ReindexTaskHandler
,ShadowIntegrityCheckTaskHandler
public abstract class AbstractSearchIterativeModelTaskHandler<O extends ObjectType,H extends AbstractSearchIterativeResultHandler<O>> extends AbstractSearchIterativeTaskHandler<O,H>
- Author:
- semancik
-
-
Field Summary
Fields Modifier and Type Field Description protected ExpressionFactory
expressionFactory
protected ModelObjectResolver
modelObjectResolver
protected SecurityEnforcer
securityEnforcer
protected SystemObjectCache
systemObjectCache
-
Fields inherited from class com.evolveum.midpoint.repo.common.task.AbstractSearchIterativeTaskHandler
prismContext, repositoryService, taskManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSearchIterativeModelTaskHandler(String taskName, String taskOperationPrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkRawAuthorization(Task task, OperationResult result)
protected <O extends ObjectType>
IntegercountObjects(Class<O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> queryOptions, Task coordinatorTask, OperationResult opResult)
Used to count objects using model or any similar higher-level interface.protected ModelExecuteOptions
getExecuteOptionsFromTask(Task task)
protected ObjectQuery
preProcessQuery(ObjectQuery query, Task coordinatorTask, OperationResult opResult)
Pre-processing query (e.g.protected <T extends ObjectType>
TresolveObjectRef(Class<T> type, TaskRunResult runResult, Task task, OperationResult opResult)
protected <O extends ObjectType>
voidsearchIterative(Class<O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> searchOptions, ResultHandler<O> resultHandler, Task coordinatorTask, OperationResult opResult)
Used to search using model or any similar higher-level interface.-
Methods inherited from class com.evolveum.midpoint.repo.common.task.AbstractSearchIterativeTaskHandler
createHandler, createQuery, createQueryFromTask, createQueryFromTaskIfExists, createSearchOptions, createSearchOptionsFromTask, finish, getDefaultChannel, getExpressionProfile, getIdentifierDefinitionProvider, getIterationMethodFromTask, getObjectQueryTypeFromTask, getObjectQueryTypeFromTaskObjectRef, getPrismContext, getRepositoryService, getStatisticsCollectionStrategy, getTaskManager, getTaskName, getTaskOperationPrefix, getType, getTypeFromTask, getUseRepositoryDirectlyFromTask, heartbeat, initializeRun, 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
getCategoryName, getCategoryNames
-
Methods inherited from interface com.evolveum.midpoint.task.api.WorkBucketAwareTaskHandler
getObjectQueryTypeFromTaskExtension, onNoMoreBuckets, run, run
-
-
-
-
Field Detail
-
modelObjectResolver
@Autowired protected ModelObjectResolver modelObjectResolver
-
securityEnforcer
@Autowired protected SecurityEnforcer securityEnforcer
-
expressionFactory
@Autowired protected ExpressionFactory expressionFactory
-
systemObjectCache
@Autowired protected SystemObjectCache systemObjectCache
-
-
Method Detail
-
preProcessQuery
protected ObjectQuery preProcessQuery(ObjectQuery query, Task coordinatorTask, OperationResult opResult) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException
Description copied from class:AbstractSearchIterativeTaskHandler
Pre-processing query (e.g. evaluate expressions).- Overrides:
preProcessQuery
in classAbstractSearchIterativeTaskHandler<O extends ObjectType,H extends AbstractSearchIterativeResultHandler<O>>
- Throws:
SchemaException
ObjectNotFoundException
ExpressionEvaluationException
CommunicationException
ConfigurationException
SecurityViolationException
-
countObjects
protected <O extends ObjectType> Integer countObjects(Class<O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> queryOptions, Task coordinatorTask, OperationResult opResult) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException
Description copied from class:AbstractSearchIterativeTaskHandler
Used to count objects using model or any similar higher-level interface. Defaults to repository count.- Overrides:
countObjects
in classAbstractSearchIterativeTaskHandler<O extends ObjectType,H extends AbstractSearchIterativeResultHandler<O>>
- Throws:
SchemaException
ObjectNotFoundException
CommunicationException
ConfigurationException
SecurityViolationException
ExpressionEvaluationException
-
searchIterative
protected <O extends ObjectType> void searchIterative(Class<O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> searchOptions, ResultHandler<O> resultHandler, Task coordinatorTask, OperationResult opResult) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException
Description copied from class:AbstractSearchIterativeTaskHandler
Used to search using model or any similar higher-level interface. Defaults to search using repository.- Overrides:
searchIterative
in classAbstractSearchIterativeTaskHandler<O extends ObjectType,H extends AbstractSearchIterativeResultHandler<O>>
- Throws:
SchemaException
ObjectNotFoundException
CommunicationException
ConfigurationException
SecurityViolationException
ExpressionEvaluationException
-
resolveObjectRef
protected <T extends ObjectType> T resolveObjectRef(Class<T> type, TaskRunResult runResult, Task task, OperationResult opResult)
-
getExecuteOptionsFromTask
protected ModelExecuteOptions getExecuteOptionsFromTask(Task task)
-
checkRawAuthorization
protected void checkRawAuthorization(Task task, OperationResult result) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException
- Overrides:
checkRawAuthorization
in classAbstractSearchIterativeTaskHandler<O extends ObjectType,H extends AbstractSearchIterativeResultHandler<O>>
- Throws:
CommunicationException
ObjectNotFoundException
SchemaException
SecurityViolationException
ConfigurationException
ExpressionEvaluationException
-
-