Interface NodeUpdateVisitor

  • All Known Implementing Classes:
    BaseNodeUpdateVisitor

    public interface NodeUpdateVisitor
    Visitor for updating repository content.
    • Method Detail

      • initialize

        void initialize​(Session session)
                 throws RepositoryException
        Allows initialization of this updater. Called before any other method is called.
        Parameters:
        session - a JCR Session with system credentials
        Throws:
        RepositoryException - when thrown, the updater will not be run by the framework
      • doUpdate

        boolean doUpdate​(Node node)
                  throws RepositoryException
        Update the given node.
        Parameters:
        node - the Node to be updated
        Returns:
        true if the node was changed, false if not
        Throws:
        RepositoryException - if an exception occurred while updating the node
      • destroy

        void destroy()
        Allows cleanup of resources held by this updater. Called after an updater run was completed.