Search in sources :

Example 1 with SyncItemProcessingRequest

use of com.evolveum.midpoint.model.impl.sync.tasks.SyncItemProcessingRequest in project midpoint by Evolveum.

the class AsyncUpdateActivityRun method iterateOverItemsInBucket.

@Override
public void iterateOverItemsInBucket(OperationResult opResult) throws CommunicationException, ObjectNotFoundException, SchemaException, ConfigurationException, ExpressionEvaluationException {
    AsyncUpdateEventHandler handler = (event, hResult) -> {
        SyncItemProcessingRequest<AsyncUpdateEvent> request = new SyncItemProcessingRequest<>(event, this);
        return coordinator.submit(request, hResult);
    };
    RunningTask runningTask = getRunningTask();
    ModelImplUtils.clearRequestee(runningTask);
    getModelBeans().provisioningService.processAsynchronousUpdates(resourceObjectClass.getCoords(), handler, runningTask, opResult);
}
Also used : ItemProcessingRequest(com.evolveum.midpoint.repo.common.activity.run.processing.ItemProcessingRequest) ActivityRunException(com.evolveum.midpoint.repo.common.activity.run.ActivityRunException) com.evolveum.midpoint.xml.ns._public.common.common_3(com.evolveum.midpoint.xml.ns._public.common.common_3) com.evolveum.midpoint.repo.common.activity.run(com.evolveum.midpoint.repo.common.activity.run) RunningTask(com.evolveum.midpoint.task.api.RunningTask) ModelBeans(com.evolveum.midpoint.model.impl.ModelBeans) ResourceObjectClass(com.evolveum.midpoint.model.impl.sync.tasks.ResourceObjectClass) OperationResult(com.evolveum.midpoint.schema.result.OperationResult) com.evolveum.midpoint.util.exception(com.evolveum.midpoint.util.exception) ResourceObjectShadowChangeDescription(com.evolveum.midpoint.provisioning.api.ResourceObjectShadowChangeDescription) ModelImplUtils(com.evolveum.midpoint.model.impl.util.ModelImplUtils) SyncItemProcessingRequest(com.evolveum.midpoint.model.impl.sync.tasks.SyncItemProcessingRequest) NotNull(org.jetbrains.annotations.NotNull) AsyncUpdateEvent(com.evolveum.midpoint.provisioning.api.AsyncUpdateEvent) AsyncUpdateEventHandler(com.evolveum.midpoint.provisioning.api.AsyncUpdateEventHandler) SyncItemProcessingRequest(com.evolveum.midpoint.model.impl.sync.tasks.SyncItemProcessingRequest) RunningTask(com.evolveum.midpoint.task.api.RunningTask) AsyncUpdateEventHandler(com.evolveum.midpoint.provisioning.api.AsyncUpdateEventHandler)

Aggregations

ModelBeans (com.evolveum.midpoint.model.impl.ModelBeans)1 ResourceObjectClass (com.evolveum.midpoint.model.impl.sync.tasks.ResourceObjectClass)1 SyncItemProcessingRequest (com.evolveum.midpoint.model.impl.sync.tasks.SyncItemProcessingRequest)1 ModelImplUtils (com.evolveum.midpoint.model.impl.util.ModelImplUtils)1 AsyncUpdateEvent (com.evolveum.midpoint.provisioning.api.AsyncUpdateEvent)1 AsyncUpdateEventHandler (com.evolveum.midpoint.provisioning.api.AsyncUpdateEventHandler)1 ResourceObjectShadowChangeDescription (com.evolveum.midpoint.provisioning.api.ResourceObjectShadowChangeDescription)1 com.evolveum.midpoint.repo.common.activity.run (com.evolveum.midpoint.repo.common.activity.run)1 ActivityRunException (com.evolveum.midpoint.repo.common.activity.run.ActivityRunException)1 ItemProcessingRequest (com.evolveum.midpoint.repo.common.activity.run.processing.ItemProcessingRequest)1 OperationResult (com.evolveum.midpoint.schema.result.OperationResult)1 RunningTask (com.evolveum.midpoint.task.api.RunningTask)1 com.evolveum.midpoint.util.exception (com.evolveum.midpoint.util.exception)1 com.evolveum.midpoint.xml.ns._public.common.common_3 (com.evolveum.midpoint.xml.ns._public.common.common_3)1 NotNull (org.jetbrains.annotations.NotNull)1