public Collection getRootNodes() { Collection treeList = null; if (StringUtils.isEmpty(idElementoForSubtree)) { List custodyArchiveList = serviceClient.getCustodyArchiveList(); treeList = gestionSalasConsultaBI.getEdificiosByIdsArchivo( (ArrayUtils.toString(custodyArchiveList.toArray()))); } else { treeList = new ArrayList(); treeList.add(gestionSalasConsultaBI.getEdificioById(idElementoForSubtree)); } return treeList; }
public Collection getChilds(TreeModelItem item) { SalasConsultaVOBase elemento = (SalasConsultaVOBase) item; if (elemento instanceof EdificioVO) { return gestionSalasConsultaBI.getSalas(elemento.getId()); } return null; }