public List < SiteNode > getNodesInContextFromSiteTree ( Context context ) { List < SiteNode > nodes = new LinkedList <> ( ) ; SiteNode rootNode = getSiteTree ( ) . getRoot ( ) ; fillNodesInContext ( rootNode , nodes , context ) ; return nodes ; }
Gets the nodes from the site tree which are In Scope in a given context . Searches recursively starting from the root node . Should be used with care as it is time - consuming querying the database for every node in the Site Tree .