Class MovingNode

    • Constructor Detail

      • MovingNode

        public MovingNode()
    • Method Detail

      • isCopiedBeforeMove

        public abstract boolean isCopiedBeforeMove()
      • isSupposedToBeReferenced

        public abstract boolean isSupposedToBeReferenced()
      • isAbleToHaveChildren

        public abstract boolean isAbleToHaveChildren()
      • addChild

        public void addChild​(MovingNode child)
      • isLeaf

        public boolean isLeaf()
      • isSourceActivated

        public boolean isSourceActivated()
      • getSourcePath

        public String getSourcePath()
        Returns:
        the sourcePath
      • setSourcePath

        public void setSourcePath​(String sourcePath)
        Parameters:
        sourcePath - the sourcePath to set
      • getDestinationPath

        public String getDestinationPath()
        Returns:
        the destinationPath
      • setDestinationPath

        public void setDestinationPath​(String destinationPath)
        Parameters:
        destinationPath - the destinationPath to set
      • getParent

        public MovingNode getParent()
        Returns:
        the parent
      • setParent

        public void setParent​(MovingNode parent)
        Parameters:
        parent - the parent to set
      • getChildren

        public List<MovingNode> getChildren()
        Returns:
        the children
      • setChildren

        public void setChildren​(List<MovingNode> children)
        Parameters:
        children - the children to set
      • getAllReferences

        public List<String> getAllReferences()
        Returns:
        the references
      • getPublishedReferences

        public List<String> getPublishedReferences()
        Returns:
        the references
      • isDestinationAlreadyExists

        public boolean isDestinationAlreadyExists()
        Returns:
        the destinationAlreadyExists
      • setDestinationAlreadyExists

        public void setDestinationAlreadyExists​(boolean destinationAlreadyExists)
        Parameters:
        destinationAlreadyExists - the destinationAlreadyExists to set
      • getPreviousSibling

        public String getPreviousSibling()
      • visit

        public void visit​(Consumer<MovingNode> consumer)
        Depth-first visitor, provide consumer function every node in the tree
        Parameters:
        consumer - Consumer which accepts nodes
      • visit

        public void visit​(Consumer<MovingNode> consumer,
                          Consumer<MovingNode> leafConsumer,
                          Function<MovingNode,​Boolean> traversalFilter)
        Depth-first visitor
        Parameters:
        consumer - Consumer for traversed nodes
        leafConsumer - Consumer for leaf nodes (first level after traversalFilter returns false), if no traversal function this is never called
        traversalFilter - Function which determines if the tree should be evaluated any deeper, Null means always true
      • hasChild

        public boolean hasChild​(String path)
      • getClonedProperties

        protected Map<String,​Object> getClonedProperties​(org.apache.sling.api.resource.Resource source)