Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
  public Collection getChilds(TreeModelItem item) {
    SalasConsultaVOBase elemento = (SalasConsultaVOBase) item;

    if (elemento instanceof EdificioVO) {
      return gestionSalasConsultaBI.getSalas(elemento.getId());
    }
    return null;
  }