use of org.apereo.portal.rest.layout.TabListOfNodes in project uPortal by Jasig.
the class LayoutRESTController method getNodeList.
private NodeList getNodeList(String tab, Document document) {
if (tab != null) {
NodeList folders = document.getElementsByTagName("folder");
for (int i = 0; i < folders.getLength(); i++) {
Node node = folders.item(i);
if (tab.equalsIgnoreCase(node.getAttributes().getNamedItem("name").getNodeValue())) {
TabListOfNodes tabNodes = new TabListOfNodes();
tabNodes.addAllChannels(node.getChildNodes());
return tabNodes;
}
}
}
return document.getElementsByTagName("channel");
}
Aggregations