Class ExecutionResult


  • public class ExecutionResult
    extends Object
    holds results of the execution
    • Constructor Detail

      • ExecutionResult

        public ExecutionResult​(OutputWriter writer)
        Constructor
        Parameters:
        writer - output writer around which to create the result
    • Method Detail

      • addResultItem

        public void addResultItem​(org.apache.sling.api.resource.Resource resource)
        Add a resource to the results
        Parameters:
        resource - resource to add
      • emptyCurrentSet

        public void emptyCurrentSet()
        Empty the current path set
      • getCurrentPathSet

        public Collection<String> getCurrentPathSet()
        return currentPathSet
        Returns:
        current path set
      • size

        public long size()
        amount of changed items
        Returns:
        total size of changed items
      • asCompositeData

        public CompositeData asCompositeData()
                                      throws OpenDataException
        Returns:
        Composite data view of that result. With size of the execution, and string output (can be json, csv, ...)
        Throws:
        OpenDataException - in case something went wrong building up the composite data
      • addError

        public void addError​(String error)
        Parameters:
        error - path to record