Class ReconciliationTaskHandler
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.task.AbstractTaskHandler<TH,TE>
-
- com.evolveum.midpoint.model.impl.tasks.AbstractModelTaskHandler<ReconciliationTaskHandler,ReconciliationTaskExecution>
-
- com.evolveum.midpoint.model.impl.sync.tasks.recon.ReconciliationTaskHandler
-
- All Implemented Interfaces:
TaskHandler
,WorkBucketAwareTaskHandler
@Component public class ReconciliationTaskHandler extends AbstractModelTaskHandler<ReconciliationTaskHandler,ReconciliationTaskExecution>
The task handler for reconciliation. This handler takes care of executing reconciliation "runs". It means that the handler "run" method will be as scheduled (every few days). The responsibility is to iterate over accounts and compare the real state with the assumed IDM state.- Author:
- Radovan Semancik
-
-
Field Summary
Fields Modifier and Type Field Description protected ExpressionFactory
expressionFactory
-
Fields inherited from class com.evolveum.midpoint.model.impl.tasks.AbstractModelTaskHandler
clock, clockwork, contextFactory, model, modelObjectResolver, provisioningService, securityEnforcer, synchronizationService, systemObjectCache, taskManager
-
Fields inherited from class com.evolveum.midpoint.repo.common.task.AbstractTaskHandler
globalReportingOptions, lightweightIdentifierGenerator, matchingRuleRegistry, operationExecutionRecorder, prismContext, repositoryService, taskTypeName
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ReconciliationTaskHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getArchetypeOid()
String
getCategoryName(Task task)
Returns a category name for a given task.String
getDefaultChannel()
ResourceObjectChangeListener
getObjectChangeListener()
ReconciliationTaskResultListener
getReconciliationTaskResultListener()
void
launch(ResourceType resource, QName objectclass, Task task, OperationResult parentResult)
Launch an import.void
setReconciliationTaskResultListener(ReconciliationTaskResultListener reconciliationTaskResultListener)
-
Methods inherited from class com.evolveum.midpoint.model.impl.tasks.AbstractModelTaskHandler
getClock, getExpressionFactory, getProvisioningService, getSynchronizationService, getSyncTaskHelper, getSystemObjectsCache
-
Methods inherited from class com.evolveum.midpoint.repo.common.task.AbstractTaskHandler
createTaskExecution, getCacheConfigurationManager, getGlobalReportingOptions, getLogger, getMatchingRuleRegistry, getOperationExecutionRecorder, getPrismContext, getRepositoryService, getStatisticsCollectionStrategy, getTaskManager, getTaskTypeName, getTracer, heartbeat, refreshStatus, run
-
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, run
-
Methods inherited from interface com.evolveum.midpoint.task.api.WorkBucketAwareTaskHandler
onNoMoreBuckets, run
-
-
-
-
Field Detail
-
expressionFactory
@Autowired protected ExpressionFactory expressionFactory
-
-
Method Detail
-
getReconciliationTaskResultListener
public ReconciliationTaskResultListener getReconciliationTaskResultListener()
-
setReconciliationTaskResultListener
public void setReconciliationTaskResultListener(ReconciliationTaskResultListener reconciliationTaskResultListener)
-
launch
public void launch(ResourceType resource, QName objectclass, Task task, OperationResult parentResult)
Launch an import. Calling this method will start import in a new thread, possibly on a different node.
-
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.
-
getDefaultChannel
public String getDefaultChannel()
- Returns:
- Channel URI for tasks managed by this handler, if applicable.
-
getObjectChangeListener
public ResourceObjectChangeListener getObjectChangeListener()
-
-