Class FolderTreeNode

    • Constructor Detail

      • FolderTreeNode

        public FolderTreeNode​(JcrNodeModel model,
                              DocumentListFilter config)
        Constructs a folder tree node using model and config.
        Parameters:
        model - jcr folder node model
        config - document list filtering configuration
      • FolderTreeNode

        public FolderTreeNode​(JcrNodeModel model,
                              DocumentListFilter config,
                              Comparator<IJcrTreeNode> subfolderComparator)
        Constructs a folder tree node using model, config and subfolderComparator.

        If non-null subfolderComparator is provided, subfolders are sorted by the given comparator. And,

        Parameters:
        model - jcr folder node model
        config - document list filtering configuration
        subfolderComparator - subfolder comparator used in sorting if non-null object is provided
    • Method Detail

      • loadChildNodes

        protected List<javax.jcr.Node> loadChildNodes()
                                               throws javax.jcr.RepositoryException
        Loads child nodes.

        Overrides to filter out child nodes based on folder filter configuration.

        Overrides:
        loadChildNodes in class JcrTreeNode
        Returns:
        loaded child nodes
        Throws:
        javax.jcr.RepositoryException - if repository exception occurs
      • sortChildTreeNodes

        protected void sortChildTreeNodes​(List<IJcrTreeNode> childTreeNodes)
                                   throws javax.jcr.RepositoryException
        Sort child tree nodes.

        Overrides to sort children by the subfolderComparator if set to any. Otherwise, follow the default behavior of JcrTreeNode.

        Overrides:
        sortChildTreeNodes in class JcrTreeNode
        Parameters:
        childTreeNodes - child tree nodes
        Throws:
        javax.jcr.RepositoryException - if repository exception occurs