Class BaseNodeUpdateVisitor

    • Constructor Detail

      • BaseNodeUpdateVisitor

        public BaseNodeUpdateVisitor()
    • Method Detail

      • setLogger

        public void setLogger​(org.slf4j.Logger log)
      • setParametersMap

        public void setParametersMap​(Map<String,​Object> parametersMap)
      • logSkippedNodePaths

        public boolean logSkippedNodePaths()
        Overridable boolean function to indicate if skipped node paths should be logged (default true)
        Returns:
        true if skipped node paths should be logged
      • skipCheckoutNodes

        public boolean skipCheckoutNodes()
        Overridable boolean function to indicate if node checkout can be skipped (default false)
        Returns:
        true if node checkout can be skipped (e.g. for readonly visitors and/or updates unrelated to versioned content)
      • initialize

        public void initialize​(javax.jcr.Session session)
                        throws javax.jcr.RepositoryException
        Description copied from interface: NodeUpdateVisitor
        Allows initialization of this updater. Called before any other method is called.
        Specified by:
        initialize in interface NodeUpdateVisitor
        Parameters:
        session - a JCR Session with system credentials
        Throws:
        javax.jcr.RepositoryException - when thrown, the updater will not be run by the framework
      • firstNode

        public javax.jcr.Node firstNode​(javax.jcr.Session session)
                                 throws javax.jcr.RepositoryException
        Initiates the retrieval of the nodes when using custom, instead of path or xpath (query) based, node selection/navigation, returning the first node to visit. Intended to be overridden, default implementation returns null.
        Parameters:
        session -
        Returns:
        first node to visit, or null if none found
        Throws:
        javax.jcr.RepositoryException
      • nextNode

        public javax.jcr.Node nextNode()
                                throws javax.jcr.RepositoryException
        Return a following node, when using custom, instead of path or xpath (query) based, node selection/navigation. Intended to be overridden, default implementation returns null.
        Returns:
        next node to visit, or null if none left
        Throws:
        javax.jcr.RepositoryException
      • destroy

        public void destroy()
        Description copied from interface: NodeUpdateVisitor
        Allows cleanup of resources held by this updater. Called after an updater run was completed.
        Specified by:
        destroy in interface NodeUpdateVisitor