Package org.xdams.xmlengine.connection.manager

Examples of org.xdams.xmlengine.connection.manager.ConnectionManager.closeConnection()


      e.printStackTrace();
      modelMap.put("confBean", null);
      modelMap.put("managingBean", null);     
      throw new Exception(e.toString());
    } finally {
      connectionManager.closeConnection(xwconn);
    }

    return managingBean;
  }
}
View Full Code Here


    } catch (Exception e) {
      e.printStackTrace();
      valori = "{\"value\":\"\", \"label\":\"nessun elemento\", \"frequency\":0}";
    } finally {
      ajaxBean.setStrXmlOutput("{\"items\": [" + valori + "]}");
      connectionManager.closeConnection(xwconn);
    }
//      System.out.println("zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz "+valori);

    return ajaxBean;
  }
View Full Code Here

      e.printStackTrace();
      modelMap.put("confBean", confBean);
      modelMap.put("preInsertBean", preInsertBean);
      throw new Exception(e.toString());
    } finally {
      connectionManager.closeConnection(xwconn);
    }
  }
}
View Full Code Here

      e.printStackTrace();
      modelMap.put("confBean", null);
      modelMap.put("editingBean", null);
      throw new Exception(e.toString());
    } finally {
      connectionManager.closeConnection(xwconn);
    }
  }
}
View Full Code Here

      modelMap.put("orientation", orientation);
      modelMap.put("startParam", startParam);
      modelMap.put("totResult", totResult);
      modelMap.put("searchAlias", searchAlias);
      modelMap.put("name", name);
      connectionManager.closeConnection(xwconn);
    }
  }
}
View Full Code Here

      workFlowBean = (WorkFlowBean) modelMap.get("workFlowBean");
      XWConnection xwconnone = connectionManager.getConnection(workFlowBean.getArchive());
      MultiEditingManager editingManager = new MultiEditingManager(parameterMap, confBean, userBean, workFlowBean);
      editingManager.setTheXML(new XMLBuilder(xwconnone.getSingleXMLFromNumDoc(Integer.parseInt(physDoc)), "ISO-8859-1"));
      confBean = editingManager.rewriteMultipleConf(confControl);
      connectionManager.closeConnection(xwconnone);
      XMLBuilder theXMLconf = confBean.getTheXMLConfEditing();
      if (!codeToFind.equals("") && makeAction.equals("")) {
       
        Map<String, List<ElementToFindBean>> hashDbToFind = buildElementToFindBean.buildElementToFindBean(theXMLconf, workFlowBean.getAlias());
        System.out.println("ModifyAuther.execute() (hashDbToFind) " + (hashDbToFind));
View Full Code Here

                  qr = xwconn.getQRfromPhrase(query);
                  System.out.println("ModifyAuther.execute() qr " + qr.elements);
                } catch (Exception e) {
                  // throw new Exception("ERRORE NELLA CONNESSIONE CON IL DATABASE " + archiviBean.getTheArch());
                } finally {
                  connectionManager.closeConnection(xwconn);
                }
                // System.out.println("<span style=\"background:#fff;\"><b>" + archivioCorrente + "</b>" + query + " occorrenze=" + qr.elements + "</span><br>");
                autherBean.setArchivioAlias(archivioCorrente);
                autherBean.setArchivioDescr(descrArchive);
                autherBean.setElementToFindBean(elementToFindBean);
View Full Code Here

                    modificatiXPathToChange = 0;
                  }
                } catch (Exception e) {
                  modifyAutherBean.addErrorMsg("Errore in proietta authority " + e.getMessage());
                } finally {
                  connectionManager.closeConnection(xwconn);
                }
              }
            }

          } catch (Exception e) {
View Full Code Here

    } catch (Exception e) {
      e.printStackTrace();
      ajaxBean.setStrXmlOutput("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n<error>" + StringEscapeUtils.escapeXml("Attenzione:\nimpossibile effettuare l'operazione, il documento selezionato potrebbe non essere pi� in gerarchia") + "\n" + e.getMessage() + "</error>");
    } finally {
      httpSession.setAttribute(workFlowBean.getManagingBeanName(), managingBean);
      connectionManager.closeConnection(xwconn);
    }

    // ajaxBean.setStrXmlOutput("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n<?xml-stylesheet type=\"text/xsl\" href=\"http://localhost:8080//xdams-front/REGEXE/xslt/prova.xslt\"?>\n" + "<sessionList>\n" + valori + "</sessionList>");
    return ajaxBean;
  }
View Full Code Here

          e.printStackTrace();
        }
      }
      modelMap.put("treeBean", treeBean);
      modelMap.put("confBean", confBean);
      connectionManager.closeConnection(xwconn);
    }
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.