Package org.onehippo.repository.update
Interface NodeUpdateVisitorContext
-
public interface NodeUpdateVisitorContext
Provided as an execution context toNodeUpdateVisitor
instance in order to allow anNodeUpdateVisitor
to be able to manually update skipped/updated/failed node count while being executed on single node iteration (e.g, in#doUpdate(node)
method in a groovy updater script).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isDryRun()
Returns true if the current execution is on dry run mode.void
reportFailed(String path)
Manually report/increment the failed count in the current execution.void
reportSkipped(String path)
Manually report/increment the skipped count in the current execution.void
reportUpdated(String path)
Manually report/increment the updated count in the current execution.
-
-
-
Method Detail
-
reportSkipped
void reportSkipped(String path)
Manually report/increment the skipped count in the current execution.
-
reportUpdated
void reportUpdated(String path)
Manually report/increment the updated count in the current execution.WARNING: this invocation may trigger committing or reverting the batch.
-
reportFailed
void reportFailed(String path)
Manually report/increment the failed count in the current execution.
-
isDryRun
boolean isDryRun()
Returns true if the current execution is on dry run mode.- Returns:
- true if the current execution is on dry run mode
-
-