Package es.ipsa.atril.sec.authentication

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


      oSes.disconnect();
      oSes.close();
      throw new ElementNotFoundException(sTaxId+" not found");
    } else {
      String sId = oLst.get(0).id();
      oSes.disconnect();
      oSes.close();
      return sId;     
    }
  }
View Full Code Here


      Cache.putEntry(oUsr.id()+"activationinfo", oActivationInfo);
    } catch (Exception xcpt) {
      Log.out.error("AsyncSendInvitation Cache.putEntry() "+xcpt.getClass().getName()+" "+xcpt.getMessage(), xcpt);
    }
   
    oSes.disconnect();
    oSes.close();
      Log.out.debug("End AsyncSendInvitation()");
  }
}
View Full Code Here

      CustomerAccount oAcc = new CustomerAccount(oSes.getDms().getDocument(getSessionAttribute("customer_account_docid")));
      clients = oAcc.clients(oSes).list(oSes);
      for (Client oCli : clients)
        if (oCli.getTaxId().length()>0)
          oCli.setBusinessName(oCli.getBusinessName()+" ("+oCli.getTaxId()+")");
      oSes.disconnect();
      oSes.close();
      try {
        Cache.putEntry(getSessionAttribute("customer_account_docid")+"clients", clients);
      } catch (Exception e) {
        Log.out.error("CaptureInvoice.getClients() Cache.putEntry("+getSessionAttribute("customer_account_docid")+"clients) "+e.getClass().getName()+" "+e.getMessage(), e);
View Full Code Here

      setCaptureType(oUsr.defaultCaptureType(oSes).name());
      if (getSessionAttribute("incoming_deposits")==null) {
        TaxPayer oTxp = new TaxPayer (oSes.getDms(), getSessionAttribute("taxpayer_docid"));
        setSessionAttribute("incoming_deposits", oTxp.incomingDeposits(oSes));
      }
      oSes.disconnect();
      oSes.close();
    } catch (Exception xcpt) {
      Log.out.error("CaptureInvoice.form() "+xcpt.getClass().getName()+" "+xcpt.getMessage());
      setScanDeviceName("Twain");
      setCaptureType("UnsignedSinglePageFullDuplexNoGUI");
View Full Code Here

      oSes.close();
    } catch (Exception xcpt) {
      Log.out.error("CaptureInvoice.form() "+xcpt.getClass().getName()+" "+xcpt.getMessage());
      setScanDeviceName("Twain");
      setCaptureType("UnsignedSinglePageFullDuplexNoGUI");
      if (oSes.isConnected()) oSes.disconnect();
      if (oSes.isOpen()) oSes.close();
    }
    setFullDuplex(getCaptureType().indexOf("FullDuplex")>0);
    setGUI(getCaptureType().indexOf("NoGUI")<0);
    setSign(getCaptureType().startsWith("Signed"));
View Full Code Here

  /*
  oMan.writeCities(oSes, "es");
  oSes.commit();
  */
 
    oSes.disconnect();
    oSes.close();
    oDao.destroy();
  System.out.println("Done!");
  }

View Full Code Here

      DAO oDao = new DAO();   
      oDao.init(oMan.getConnectionProperties());
      AtrilSession oSes = DAO.getAdminSession("CityWriter");
      oSes.autoCommit(true);
      oMan.writeCities(oSes, "es");
      oSes.disconnect();
      oSes.close();
      oDao.destroy();
      }
}
View Full Code Here

  public Collection<TaxPayer> getTaxPayers() throws ElementNotFoundException, NotEnoughRightsException, DmsException, InstantiationException, IllegalAccessException {
    AtrilSession oSes = DAO.getAdminSession("EditUser");
    CustomerAccount oAcc = new CustomerAccount(oSes.getDms().getDocument(getSessionAttribute("customer_account_docid")));
    Collection<TaxPayer> taxpayers = oAcc.taxpayers(oSes).list(oSes);
    oSes.disconnect();
    oSes.close();
    return taxpayers;
  }

  @DefaultHandler
View Full Code Here

          } catch (Exception xcpt) {
            Log.out.error(xcpt.getClass().getName()+" "+xcpt.getMessage(), xcpt);
            oRes = resolve(oCls, "systemsecurity", oBab.getLastUrl());
          } finally {
            if (null!=oSes) {
              if (oSes.isConnected()) oSes.disconnect();
              if (oSes.isOpen()) oSes.close();
            } // fi
          }         
        } else if (oBab.getSessionAttribute("businessname").length()==32) {
          if (CHKTXP.contains(oCls)) {
View Full Code Here

            if (oTxp.getRequiresActivation()) {
              oRes = new RedirectResolution(ActivateTaxPayer.class);
            } else if (!oActive.contains(sTaxPayer)) {
              oActive.add(sTaxPayer);
            }
            oSes.disconnect();
            oSes.close();           
          }
        }
      } // fi
    }
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.