public class ExecutionResult extends Object
Constructor and Description |
---|
ExecutionResult(OutputWriter writer)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addError(String error) |
void |
addResultItem(org.apache.sling.api.resource.Resource resource)
Add a resource to the results
|
CompositeData |
asCompositeData() |
void |
emptyCurrentSet()
Empty the current path set
|
Collection<String> |
getCurrentPathSet()
return currentPathSet
|
long |
size()
amount of changed items
|
String |
toString() |
public ExecutionResult(OutputWriter writer)
writer
- output writer around which to create the resultpublic void addResultItem(org.apache.sling.api.resource.Resource resource)
resource
- resource to addpublic void emptyCurrentSet()
public Collection<String> getCurrentPathSet()
public long size()
public CompositeData asCompositeData() throws OpenDataException
OpenDataException
- in case something went wrong building up the composite datapublic void addError(String error)
error
- path to recordCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.