Interface MoveValidator

All Superinterfaces:
Editor, Validator
All Known Implementing Classes:
DefaultMoveValidator

public interface MoveValidator extends Validator
A validator that also receives notifications about moved nodes.
See Also:
  • Method Details

    • move

      void move(String name, String sourcePath, NodeState moved) throws org.apache.jackrabbit.oak.api.CommitFailedException
      Called when a moved node has been detected.
      Parameters:
      sourcePath - path of the node before the move
      name - name of the node after the move
      moved - the node state moved here
      Throws:
      org.apache.jackrabbit.oak.api.CommitFailedException - if validation fails. remove
    • childNodeAdded

      @Nullable @Nullable MoveValidator childNodeAdded(String name, NodeState after) throws org.apache.jackrabbit.oak.api.CommitFailedException
      Description copied from interface: Validator
      Validate an added node
      Specified by:
      childNodeAdded in interface Editor
      Specified by:
      childNodeAdded in interface Validator
      Parameters:
      name - the name of the added node
      after - the added node
      Returns:
      a Validator for after or null if validation should not decent into the subtree rooted at after.
      Throws:
      org.apache.jackrabbit.oak.api.CommitFailedException - if validation fails.
    • childNodeChanged

      @Nullable @Nullable MoveValidator childNodeChanged(String name, NodeState before, NodeState after) throws org.apache.jackrabbit.oak.api.CommitFailedException
      Description copied from interface: Validator
      Validate a changed node
      Specified by:
      childNodeChanged in interface Editor
      Specified by:
      childNodeChanged in interface Validator
      Parameters:
      name - the name of the changed node
      before - the original node
      after - the changed node
      Returns:
      a Validator for after or null if validation should not decent into the subtree rooted at after.
      Throws:
      org.apache.jackrabbit.oak.api.CommitFailedException - if validation fails.
    • childNodeDeleted

      @Nullable @Nullable MoveValidator childNodeDeleted(String name, NodeState before) throws org.apache.jackrabbit.oak.api.CommitFailedException
      Description copied from interface: Validator
      Validate a deleted node
      Specified by:
      childNodeDeleted in interface Editor
      Specified by:
      childNodeDeleted in interface Validator
      Parameters:
      name - The name of the deleted node.
      before - the original node
      Returns:
      a Validator for the removed subtree or null if validation should not decent into the subtree
      Throws:
      org.apache.jackrabbit.oak.api.CommitFailedException - if validation fails.