Class AbstractSearchIterativeItemProcessor<O extends ObjectType,TH extends AbstractTaskHandler<TH,TE>,TE extends AbstractTaskExecution<TH,TE>,PE extends AbstractSearchIterativeTaskPartExecution<O,TH,TE,PE,IP>,IP extends AbstractSearchIterativeItemProcessor<O,TH,TE,PE,IP>>
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.task.AbstractIterativeItemProcessor<PrismObject<O>,TH,TE,PE,IP>
-
- com.evolveum.midpoint.repo.common.task.AbstractSearchIterativeItemProcessor<O,TH,TE,PE,IP>
-
- Direct Known Subclasses:
AbstractScannerItemProcessor
,ImportFromResourceTaskPartExecution.ItemProcessor
,ObjectIntegrityCheckItemProcessor
,ShadowIntegrityCheckItemProcessor
,SimpleIterativeTaskHandler.ItemProcessor
public abstract class AbstractSearchIterativeItemProcessor<O extends ObjectType,TH extends AbstractTaskHandler<TH,TE>,TE extends AbstractTaskExecution<TH,TE>,PE extends AbstractSearchIterativeTaskPartExecution<O,TH,TE,PE,IP>,IP extends AbstractSearchIterativeItemProcessor<O,TH,TE,PE,IP>> extends AbstractIterativeItemProcessor<PrismObject<O>,TH,TE,PE,IP>
Processes individual objects found by the iterative search. It provides backwards-compatibleprocessObject(PrismObject, ItemProcessingRequest, RunningTask, OperationResult)
to be used instead of more genericprocess(ItemProcessingRequest, RunningTask, OperationResult)
method. But also allows separate processing of errored objects byprocessError(PrismObject, OperationResultType, RunningTask, OperationResult)
.
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.repo.common.task.AbstractIterativeItemProcessor
logger, partExecution, taskExecution, taskHandler
-
-
Constructor Summary
Constructors Constructor Description AbstractSearchIterativeItemProcessor(PE partExecution)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
process(ItemProcessingRequest<PrismObject<O>> request, RunningTask workerTask, OperationResult result)
Does the "pure" processing, free of any reporting, error handling, tracing, and similar issues.protected boolean
processError(PrismObject<O> object, @NotNull OperationResultType errorFetchResult, RunningTask workerTask, OperationResult result)
protected abstract boolean
processObject(PrismObject<O> object, ItemProcessingRequest<PrismObject<O>> request, RunningTask workerTask, OperationResult result)
Processes given object that came as part of a request.-
Methods inherited from class com.evolveum.midpoint.repo.common.task.AbstractIterativeItemProcessor
createItemProcessingRequestIdentifier, getTaskExecution
-
-
-
-
Constructor Detail
-
AbstractSearchIterativeItemProcessor
public AbstractSearchIterativeItemProcessor(PE partExecution)
-
-
Method Detail
-
process
public boolean process(ItemProcessingRequest<PrismObject<O>> request, RunningTask workerTask, OperationResult result) throws CommonException, PreconditionViolationException
Description copied from class:AbstractIterativeItemProcessor
Does the "pure" processing, free of any reporting, error handling, tracing, and similar issues.- Specified by:
process
in classAbstractIterativeItemProcessor<PrismObject<O extends ObjectType>,TH extends AbstractTaskHandler<TH,TE>,TE extends AbstractTaskExecution<TH,TE>,PE extends AbstractSearchIterativeTaskPartExecution<O,TH,TE,PE,IP>,IP extends AbstractSearchIterativeItemProcessor<O,TH,TE,PE,IP>>
- Throws:
CommonException
PreconditionViolationException
-
processObject
protected abstract boolean processObject(PrismObject<O> object, ItemProcessingRequest<PrismObject<O>> request, RunningTask workerTask, OperationResult result) throws CommonException, PreconditionViolationException
Processes given object that came as part of a request. BEWARE: Object may have been preprocessed, and may be different from the object present in the request.
-
processError
protected boolean processError(PrismObject<O> object, @NotNull @NotNull OperationResultType errorFetchResult, RunningTask workerTask, OperationResult result) throws CommonException, PreconditionViolationException
-
-