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 Details

    • AbstractSummarizingResultHandler

      protected AbstractSummarizingResultHandler()
    • AbstractSummarizingResultHandler

      protected AbstractSummarizingResultHandler(boolean summarizeErrors, boolean summarizePartialErrors, boolean summarizeSuccesses)
  • Method Details

    • handle

      public boolean handle(PrismObject<T> object, OperationResult parentResult)
      Description copied from interface: ResultHandler
      Handle a single result.
      Specified by:
      handle in interface ObjectHandler<T extends ObjectType>
      Specified by:
      handle in interface ResultHandler<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