Interface MoveValidator
- All Known Implementing Classes:
DefaultMoveValidator
A validator that also receives notifications about moved nodes.
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@Nullable MoveValidatorchildNodeAdded(String name, NodeState after) Validate an added node@Nullable MoveValidatorchildNodeChanged(String name, NodeState before, NodeState after) Validate a changed node@Nullable MoveValidatorchildNodeDeleted(String name, NodeState before) Validate a deleted nodevoidCalled when a moved node has been detected.Methods inherited from interface org.apache.jackrabbit.oak.spi.commit.Validator
propertyAdded, propertyChanged, propertyDeleted
-
Method Details
-
move
Called when a moved node has been detected.- Parameters:
name- name of the node after the movesourcePath- path of the node before the movemoved- the node state moved here- Throws:
CommitFailedException- if validation fails. remove
-
childNodeAdded
@Nullable @Nullable MoveValidator childNodeAdded(String name, NodeState after) throws CommitFailedException Description copied from interface:ValidatorValidate an added node- Specified by:
childNodeAddedin interfaceEditor- Specified by:
childNodeAddedin interfaceValidator- Parameters:
name- the name of the added nodeafter- the added node- Returns:
- a
Validatorforafterornullif validation should not decent into the subtree rooted atafter. - Throws:
CommitFailedException- if validation fails.
-
childNodeChanged
@Nullable @Nullable MoveValidator childNodeChanged(String name, NodeState before, NodeState after) throws CommitFailedException Description copied from interface:ValidatorValidate a changed node- Specified by:
childNodeChangedin interfaceEditor- Specified by:
childNodeChangedin interfaceValidator- Parameters:
name- the name of the changed nodebefore- the original nodeafter- the changed node- Returns:
- a
Validatorforafterornullif validation should not decent into the subtree rooted atafter. - Throws:
CommitFailedException- if validation fails.
-
childNodeDeleted
@Nullable @Nullable MoveValidator childNodeDeleted(String name, NodeState before) throws CommitFailedException Description copied from interface:ValidatorValidate a deleted node- Specified by:
childNodeDeletedin interfaceEditor- Specified by:
childNodeDeletedin interfaceValidator- Parameters:
name- The name of the deleted node.before- the original node- Returns:
- a
Validatorfor the removed subtree ornullif validation should not decent into the subtree - Throws:
CommitFailedException- if validation fails.
-