Package es.ipsa.atril.sec.authentication

Examples of es.ipsa.atril.sec.authentication.AtrilSession.disconnect()


  public long getPendingInvoicesCount() throws DmsException, ClassNotFoundException, NullPointerException, IllegalStateException, SQLException, IOException {
    HashMap<String,Object> oCounters = Cache.getEntryMap(id()+"TaxPayerCounters");
    if (null==oCounters) {
      AtrilSession oSes = DAO.getAdminSession("TaxPayer");
        oCounters = refreshCounters(oSes);
        oSes.disconnect();
        oSes.close();
    }
    return ((BigDecimal) oCounters.get("pending_invoices")).longValue();
  }
View Full Code Here


  public long getProcessedInvoicesCount() throws DmsException, ClassNotFoundException, NullPointerException, IllegalStateException, SQLException, IOException {
    HashMap<String,Object> oCounters = Cache.getEntryMap(id()+"TaxPayerCounters");
    if (null==oCounters) {
      AtrilSession oSes = DAO.getAdminSession("TaxPayer");
        oCounters = refreshCounters(oSes);
        oSes.disconnect();
        oSes.close();
    }
    return ((BigDecimal) oCounters.get("processed_invoices")).longValue();
  }
View Full Code Here

  public long getApprovedInvoicesCount() throws DmsException, ClassNotFoundException, NullPointerException, IllegalStateException, SQLException, IOException {
    HashMap<String,Object> oCounters = Cache.getEntryMap(id()+"TaxPayerCounters");
    if (null==oCounters) {
      AtrilSession oSes = DAO.getAdminSession("TaxPayer");
        oCounters = refreshCounters(oSes);
        oSes.disconnect();
        oSes.close();
    }
    return ((BigDecimal) oCounters.get("approved_invoices")).longValue();
  }
 
View Full Code Here

  public long getTotalInvoicesCount() throws DmsException, ClassNotFoundException, NullPointerException, IllegalStateException, SQLException, IOException {
    HashMap<String,Object> oCounters = Cache.getEntryMap(id()+"TaxPayerCounters");
    if (null==oCounters) {
      AtrilSession oSes = DAO.getAdminSession("TaxPayer");
        oCounters = refreshCounters(oSes);
        oSes.disconnect();
        oSes.close();
    }
    return ((BigDecimal) oCounters.get("total_invoices")).longValue();
  }
View Full Code Here

  public long getPendingTicketsCount() throws DmsException, ClassNotFoundException, NullPointerException, IllegalStateException, SQLException, IOException {
    HashMap<String,Object> oCounters = Cache.getEntryMap(id()+"TaxPayerCounters");
    if (null==oCounters) {
      AtrilSession oSes = DAO.getAdminSession("TaxPayer");
        oCounters = refreshCounters(oSes);
        oSes.disconnect();
        oSes.close();
    }
    return ((BigDecimal) oCounters.get("pending_tickets")).longValue();
  }
View Full Code Here

  public long getProcessedTicketsCount() throws DmsException, ClassNotFoundException, NullPointerException, IllegalStateException, SQLException, IOException {
    HashMap<String,Object> oCounters = Cache.getEntryMap(id()+"TaxPayerCounters");
    if (null==oCounters) {
      AtrilSession oSes = DAO.getAdminSession("TaxPayer");
        oCounters = refreshCounters(oSes);
        oSes.disconnect();
        oSes.close();
    }
    return ((BigDecimal) oCounters.get("processed_tickets")).longValue();
  }
View Full Code Here

  public long getSettledTicketsCount() throws DmsException, ClassNotFoundException, NullPointerException, IllegalStateException, SQLException, IOException {
    HashMap<String,Object> oCounters = Cache.getEntryMap(id()+"TaxPayerCounters");
    if (null==oCounters) {
      AtrilSession oSes = DAO.getAdminSession("TaxPayer");
        oCounters = refreshCounters(oSes);
        oSes.disconnect();
        oSes.close();
    }
    return ((BigDecimal) oCounters.get("settled_tickets")).longValue();
  }
View Full Code Here

  public long getTotalTicketsCount() throws DmsException, ClassNotFoundException, NullPointerException, IllegalStateException, SQLException, IOException {
    HashMap<String,Object> oCounters = Cache.getEntryMap(id()+"TaxPayerCounters");
    if (null==oCounters) {
      AtrilSession oSes = DAO.getAdminSession("TaxPayer");
        oCounters = refreshCounters(oSes);
        oSes.disconnect();
        oSes.close();
    }
    return ((BigDecimal) oCounters.get("total_tickets")).longValue();
  }
View Full Code Here

    if (sTaxPayerId.length()==0) return null;
    TaxPayer oTxpr = null;
    try {
      AtrilSession oSes = DAO.getAdminSession("TaxPayer");
      oTxpr = new TaxPayer(oSes.getDms(), sTaxPayerId);
      oSes.disconnect();
      oSes.close();
      oSes = null;
      if (null==oTxpr) {
        Log.out.error("No tax payer with id "+sTaxPayerId+" was found");
        conversionErrors.add(new SimpleError("No tax payer with id "+sTaxPayerId+" was found"));
View Full Code Here

      Log.out.error("Thumbnail "+sId+" not found "+enfe.getMessage(), enfe);
    } catch (Exception xcpt) {
      Log.out.error(xcpt.getClass().getName()+" "+xcpt.getMessage(), xcpt);
    } finally {
      if (oSes!=null) {
        if (oSes.isConnected()) oSes.disconnect();
        if (oSes.isOpen()) oSes.close();
      }
    }
    return oThn;
  }
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.