Class JcrTreeNode

    • Constructor Detail

      • JcrTreeNode

        public JcrTreeNode​(org.apache.wicket.model.IModel<javax.jcr.Node> nodeModel,
                           IJcrTreeNode parent)
    • Method Detail

      • getChild

        public IJcrTreeNode getChild​(String name)
                              throws javax.jcr.RepositoryException
        Resolve the child that corresponds to a particular name.
        Specified by:
        getChild in interface IJcrTreeNode
        Parameters:
        name -
        Returns:
        child node
        Throws:
        javax.jcr.RepositoryException
      • isLeaf

        public boolean isLeaf()
        Specified by:
        isLeaf in interface TreeNode
      • ensureChildrenSorted

        public void ensureChildrenSorted()
        Ensure child tree nodes sorted properly.
      • detach

        public void detach()
        Specified by:
        detach in interface org.apache.wicket.model.IDetachable
        Specified by:
        detach in interface org.apache.wicket.model.IModel<JcrTreeNode>
        Overrides:
        detach in class NodeModelWrapper<JcrTreeNode>
      • loadChildren

        protected List<IJcrTreeNode> loadChildren()
                                           throws javax.jcr.RepositoryException
        Loads child tree nodes.
        Returns:
        loaded child tree nodes
        Throws:
        javax.jcr.RepositoryException - if repository exception occurs
      • loadChildNodes

        protected List<javax.jcr.Node> loadChildNodes()
                                               throws javax.jcr.RepositoryException
        Loads child nodes.
        Returns:
        loaded child nodes
        Throws:
        javax.jcr.RepositoryException - if repository exception occurs
      • createChildJcrTreeNode

        protected JcrTreeNode createChildJcrTreeNode​(JcrNodeModel childNodeModel)
        Creates child tree node.
        Parameters:
        childNodeModel - child node model
        Returns:
        child tree node.
      • sortChildTreeNodes

        protected void sortChildTreeNodes​(List<IJcrTreeNode> childTreeNodes)
                                   throws javax.jcr.RepositoryException
        Sort child tree nodes.
        Parameters:
        childTreeNodes - child tree nodes
        Throws:
        javax.jcr.RepositoryException - if repository exception occurs
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object