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 providesOperationResult
summarizing functionality for result handler. Result is summarized after every handled object.- Author:
- lazyman
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSummarizingResultHandler()
protected
AbstractSummarizingResultHandler(boolean summarizeErrors, boolean summarizePartialErrors, boolean summarizeSuccesses)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
handle(PrismObject<T> object, OperationResult parentResult)
Handle a single result.protected abstract boolean
handleObject(PrismObject<T> object, OperationResult parentResult)
Handle a single result.
-
-
-
Method Detail
-
handle
public boolean handle(PrismObject<T> object, OperationResult parentResult)
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
protected abstract boolean handleObject(PrismObject<T> object, OperationResult parentResult)
Handle a single result.- Parameters:
object
- Resource object to process.- Returns:
- true if the operation should proceed, false if it should stop
-
-