Package com.evolveum.midpoint.schema
Class AbstractSummarizingResultHandler<T extends ObjectType>
java.lang.Object
com.evolveum.midpoint.schema.AbstractSummarizingResultHandler<T>
- All Implemented Interfaces:
ObjectHandler<PrismObject<T>>
,ResultHandler<T>
public abstract class AbstractSummarizingResultHandler<T extends ObjectType>
extends Object
implements ResultHandler<T>
Class provides
OperationResult
summarizing functionality for result handler.
Result is summarized after every handled object.- Author:
- lazyman
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
AbstractSummarizingResultHandler
(boolean summarizeErrors, boolean summarizePartialErrors, boolean summarizeSuccesses) -
Method Summary
Modifier and TypeMethodDescriptionboolean
handle
(PrismObject<T> object, OperationResult parentResult) Handle a single result.protected abstract boolean
handleObject
(PrismObject<T> object, OperationResult parentResult) Handle a single result.
-
Constructor Details
-
AbstractSummarizingResultHandler
protected AbstractSummarizingResultHandler() -
AbstractSummarizingResultHandler
protected AbstractSummarizingResultHandler(boolean summarizeErrors, boolean summarizePartialErrors, boolean summarizeSuccesses)
-
-
Method Details
-
handle
Description copied from interface:ResultHandler
Handle a single result.- Specified by:
handle
in interfaceObjectHandler<T extends ObjectType>
- Specified by:
handle
in interfaceResultHandler<T extends ObjectType>
- Parameters:
object
- Resource object to process.parentResult
- Where to store the result of the processing.- Returns:
- true if the operation should proceed, false if it should stop
-
handleObject
Handle a single result.- Parameters:
object
- Resource object to process.- Returns:
- true if the operation should proceed, false if it should stop
-