public List<GraphNode> getGraphs(JrdsServlet caller) { // Neither id or pid where specified, nothing can be done if(id == null && pid == null) return Collections.emptyList(); if(id != null) { GraphTree node = hostlist.getNodeById(id); if(node != null) { logger.debug(jrds.Util.delayedFormatString("Tree found: %s", node)); Filter filter = getFilter(); return node.enumerateChildsGraph(filter); } } GraphNode gn = getGraphNode(caller); if(gn != null) { logger.debug(jrds.Util.delayedFormatString("Graph found: %s", gn)); return Collections.singletonList(gn); } return Collections.emptyList(); }
return evaluateTree(params, w, root, tree); } else if(ParamsBean.FILTERCHOICE.equals(params.getChoiceType())) { Filter filter = params.getFilter(); logger.debug(jrds.Util.delayedFormatString("Filter specified: %s", params.getChoiceValue())); if(filter == null)