Examples of AtrilSession


Examples of es.ipsa.atril.sec.authentication.AtrilSession

  }
 
  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

Examples of es.ipsa.atril.sec.authentication.AtrilSession

  }

  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

Examples of es.ipsa.atril.sec.authentication.AtrilSession

  }

  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

Examples of es.ipsa.atril.sec.authentication.AtrilSession

  }
 
  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

Examples of es.ipsa.atril.sec.authentication.AtrilSession

  }

  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

Examples of es.ipsa.atril.sec.authentication.AtrilSession

  }

  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

Examples of es.ipsa.atril.sec.authentication.AtrilSession

  }

  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

Examples of es.ipsa.atril.sec.authentication.AtrilSession

  }

  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

Examples of es.ipsa.atril.sec.authentication.AtrilSession

    Log.out.debug("Begin TaxPayer.convert("+sTaxPayerId+")");
    if (sTaxPayerId==null) return null;
    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

Examples of es.ipsa.atril.sec.authentication.AtrilSession

  }

  @Override
  public InvoiceThumbnail convert(String sId, Class<? extends InvoiceThumbnail> invThumbClass, Collection<ValidationError> conversionErrors) {
    Log.out.debug("InvoiceThumbnail convert("+sId+")");
    AtrilSession oSes = null;
    InvoiceThumbnail oThn = null;
    try {
      oSes = DAO.getAdminSession("InvoiceThumbnailTypeConverter");
      oThn = new InvoiceThumbnail(oSes.getDms(), sId);
    } catch (ElementNotFoundException enfe) {
      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.