Class NodeGroupHelper

    • Method Detail

      • getGroupPaths

        private static String getGroupPaths​(Node node,
                                            int maxNodesPerGroup)
                                     throws RepositoryException
        Get the virtual a node's path relative to its parent. If the parent node has more than a specified node count, "virtual" paths are added between the parent and the node. The empty string is returned if the parent doesn't have more nodes than the maximum.
        Parameters:
        node - the node to get the virtual path of.
        maxNodesPerGroup - the maximum node per group.
        Returns:
        the virtual path part of the node in its parent.
        Throws:
        RepositoryException - if a repository error occurs.