Interface ResultHandler<T extends ObjectType>

  • All Superinterfaces:
    ObjectHandler<PrismObject<T>>
    All Known Implementing Classes:
    AbstractSummarizingResultHandler
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ResultHandler<T extends ObjectType>
    extends ObjectHandler<PrismObject<T>>
    Classes implementing this interface are used to handle iterative results. It is only used to handle iterative search results now. It may be reused for other purposes as well. Also see ObjectHandler which is not limited to ObjectType and handles real values instead of prism values. TODO this should perhaps be named ObjectResultHandler
    Author:
    Radovan Semancik
    • Method Detail

      • handle

        boolean handle​(PrismObject<T> object,
                       OperationResult parentResult)
        Handle a single result.
        Specified by:
        handle in interface ObjectHandler<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