Package es.ipsa.atril.sec.authentication

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


      Dms oDms = oSes.getDms();
      Order oOrder = new Order(oDms, order_id);
      BigDecimal oStatus = oOrder.getBigDecimal("status_number");
      if (oStatus != null && (oStatus.compareTo(Tpv.PAGADO) != 0 && oStatus.compareTo(Tpv.PENDIENTE_CONFIRMACION) != 0)) {
        oOrder.getDocument().deleteWithChildren();
        oSes.commit();
      }
      disconnect();
      return new ForwardResolution("");
    } catch (StorageException ex) {
      Exceptions.printStackTrace(ex);
View Full Code Here


      oGgrp.grantReadOnly(oDoc);
      oUgrp.grantAll(oDoc);
      oOgrp.grantAll(oDoc);
      oAgrp.grantAll(oDoc);
    }
    oSes.commit();
    if (oSes.isConnected()) oSes.disconnect();
    if (oSes.isOpen()) oSes.close();
  }

  public void createGroups(AtrilSession oSesthrows NullPointerException, IllegalArgumentException {
View Full Code Here

      order.put("cardholder", cardholder);
      order.put("expiration_month_card", expiration_month_card);
      order.put("expiration_year_card", expiration_year_card);
      order.put("cvv2", cvv2);
            order.save(oSes);
            oSes.commit();
      HttpServletRequest request = getContext().getRequest();
      String peticion = "<tpv><oppago>"
          + "<modelopago>"+Tpv.getModelopago()+"</modelopago>"         
                   + "<idterminal>"+Tpv.getIdterminal()+"</idterminal>"
                   + "<idcomercio>"+Tpv.getIdcomercio()+"</idcomercio>"
View Full Code Here

            connect();
            AtrilSession oSes = getSession();
            Dms oDms = oSes.getDms();
            CustomerAccount cacc = new CustomerAccount(oDms, getSessionAttribute("customer_account_docid"));
      oSes.commit();
     
            cacc.put("name_billing",getName());
            cacc.put("cif_billing",getCif());
            cacc.put("phone_billing",getPhone());
            cacc.put("mail_billing",getMail());
View Full Code Here

            cacc.put("postcode_billing",getPostcode());
            cacc.put("city_billing",getCity());
            cacc.put("state_billing",getState());
            cacc.put("country_billing",getCountry());
            cacc.save(oSes);
            oSes.commit();
     
            order = cacc.createOrder(oSes);
            order.put("user_id", getSessionAttribute("user_docid"));
            order.put("credits_bought", selectedProduct.getCredits());
            //order.save(oSes);
View Full Code Here

 
  oMan.writeAccountingAccounts(oSes);
  oSes.commit();

  oMan.writeCountries(oSes);
  oSes.commit();

  oMan.writeStates(oSes, "es");
  oSes.commit();

  /*
 
View Full Code Here

  oMan.writeCountries(oSes);
  oSes.commit();

  oMan.writeStates(oSes, "es");
  oSes.commit();

  /*
  oMan.writeCities(oSes, "es");
  oSes.commit();
  */
 
View Full Code Here

    AtrilSession oSes = null;
    try {
      oSes = DAO.getAdminSession("AsyncAccountCreator");
      final String sTemporaryBusinessName = Gadgets.generateUUID();     
      CustomerAccount oCac = CustomerAccount.create(oSes, oUsr, sTemporaryBusinessName);
      oSes.commit();
      TaxPayer oTxp = TaxPayer.create(oSes, oCac, sTemporaryBusinessName, "", oUsr.getFirstName()+" "+oUsr.getLastName(), oUsr.getEmail(), true, DAO.getVolumesMountBase());
      oSes.commit();
      Employee oEmp = new Employee(oSes, oTxp.employees(oSes));
      oEmp.setActive(true);
      oEmp.setUuid(oUsr.getNickName());
View Full Code Here

      oSes = DAO.getAdminSession("AsyncAccountCreator");
      final String sTemporaryBusinessName = Gadgets.generateUUID();     
      CustomerAccount oCac = CustomerAccount.create(oSes, oUsr, sTemporaryBusinessName);
      oSes.commit();
      TaxPayer oTxp = TaxPayer.create(oSes, oCac, sTemporaryBusinessName, "", oUsr.getFirstName()+" "+oUsr.getLastName(), oUsr.getEmail(), true, DAO.getVolumesMountBase());
      oSes.commit();
      Employee oEmp = new Employee(oSes, oTxp.employees(oSes));
      oEmp.setActive(true);
      oEmp.setUuid(oUsr.getNickName());
      oEmp.setName(oUsr.getFirstName()+" "+oUsr.getLastName());
      oEmp.save(oSes);
View Full Code Here

      Employee oEmp = new Employee(oSes, oTxp.employees(oSes));
      oEmp.setActive(true);
      oEmp.setUuid(oUsr.getNickName());
      oEmp.setName(oUsr.getFirstName()+" "+oUsr.getLastName());
      oEmp.save(oSes);
      oSes.commit();
      oSes.disconnect();
      oSes.close();
      oSes=null;
    } catch (Exception xcpt) {
      Log.out.error("AsyncAccountCreator.run() "+xcpt.getClass().getName()+" "+xcpt.getMessage(), xcpt);
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.