Package org.onehippo.repository.update
Interface NodeUpdateVisitorContext
public interface NodeUpdateVisitorContext
Provided as an execution context to
NodeUpdateVisitor
instance in order to allow an NodeUpdateVisitor
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
Modifier and TypeMethodDescriptionboolean
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 Details
-
reportSkipped
Manually report/increment the skipped count in the current execution. -
reportUpdated
Manually report/increment the updated count in the current execution.WARNING: this invocation may trigger committing or reverting the batch.
-
reportFailed
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
-