Package es.ipsa.atril.sec.authentication

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


      oUsr.setEmail(generateRandomId(6, null,Character.LOWERCASE_LETTER)+"@"+generateRandomId(6, null,Character.LOWERCASE_LETTER)+".com");
      oUsr.setFirstName("Test First Name "+generateRandomId(6, null,Character.UPPERCASE_LETTER));
      oUsr.setLastName("Test Last Name "+generateRandomId(6, null,Character.UPPERCASE_LETTER));
      oUsr.setPassword("12345678");
      oUsr.create(oSes);
      oSes.commit();
      String sBizName = "Test Company "+generateRandomId(6, null,Character.UPPERCASE_LETTER);
      CustomerAccount oCac = CustomerAccount.create(oSes, oUsr, sBizName);
    oSes.commit();
    TaxPayer.create(oSes, oCac, sBizName, "", oUsr.getFirstName()+" "+oUsr.getLastName(), oUsr.getEmail(), true, null);
    oSes.commit();
View Full Code Here


      oUsr.setPassword("12345678");
      oUsr.create(oSes);
      oSes.commit();
      String sBizName = "Test Company "+generateRandomId(6, null,Character.UPPERCASE_LETTER);
      CustomerAccount oCac = CustomerAccount.create(oSes, oUsr, sBizName);
    oSes.commit();
    TaxPayer.create(oSes, oCac, sBizName, "", oUsr.getFirstName()+" "+oUsr.getLastName(), oUsr.getEmail(), true, null);
    oSes.commit();
      closeTestSession(oSes);
  }
 
View Full Code Here

      oSes.commit();
      String sBizName = "Test Company "+generateRandomId(6, null,Character.UPPERCASE_LETTER);
      CustomerAccount oCac = CustomerAccount.create(oSes, oUsr, sBizName);
    oSes.commit();
    TaxPayer.create(oSes, oCac, sBizName, "", oUsr.getFirstName()+" "+oUsr.getLastName(), oUsr.getEmail(), true, null);
    oSes.commit();
      closeTestSession(oSes);
  }
 
  //-----------------------------------------------------------
 
View Full Code Here

              break;
          case -1:
              DAO.log(oSes, oAcc.getDocument(), CustomerAccount.class, "NEGATIVE CREDITS", AtrilEvent.Level.WARNING, oAcc.getCreditsLeft().toString()+";"+oSrvFlv.uid()+";"+sUser);
              break;
        }
        oSes.commit();
        oSes.disconnect();
        oSes.close();
        oSes = null;
      } catch (Exception xcpt) {
        Log.out.error("CreditBurner "+xcpt.getClass().getName()+" "+xcpt.getMessage(), xcpt);
View Full Code Here

          break;
        case INVOICES:
          addDocumentsToInvoices(oSes);
          break;
      }
      oSes.commit();
      oSes.disconnect();
      oSes.close();
      oSes = null;
    } catch (Exception xcpt) {
      Log.out.error("DepositToZespedBridge.run() "+xcpt.getClass().getName()+" "+xcpt.getMessage(), xcpt);
View Full Code Here

    try {
      oDepT.addParent(oIncT);
      oDepT.save();
    } catch (IllegalArgumentException yaespadre) { }

    oSess.commit();

    String sMountBase = "/usr/local/apache-tomcat-6.0.36/webapps/zesped/WEB-INF/volumes/"; // DAO.getVolumesMountBase();
    if (sMountBase.length()>0) {
      boolean bDefaultVolumeExists = false;
      VolumeManager oVolm = oDms.getVolumeManager();
View Full Code Here

          oVol.setMounted(true);
          oVol.setUsable(true);
          oVol.setMaxDirectories(1000);
          oVol.setMaxFiles(1000);
          oVol.save();
          oSess.commit();       
      }
    }
   
    oSess.disconnect();
    oSess.close();
View Full Code Here

      AuthorizationManager oAum = oSess.getAuthorizationManager();
     
    Zesped.createGroups(oSess);
   
      oSess.commit();
     
    Dms oDms = oSess.getDms();
    DocumentIndexer oIdx = oSess.getDocumentIndexer();
    Document oZespedDoc = null;
View Full Code Here

    if (oLst.isEmpty()) {
      Document oDit = oDms.newDocument(oDms.getDocumentType("DeviceInformationType"), oDms.getRootDocument());
      oDit.attribute("model").set("TWAIN");
      oDit.attribute("brand").set("TWAIN");
      oDit.save("");
      oSess.commit();
      oUsrsGrp.grantReadOnly(oDit);
      oOpersGrp.grantReadOnly(oDit);
      oSess.commit();
    }
View Full Code Here

      oDit.attribute("brand").set("TWAIN");
      oDit.save("");
      oSess.commit();
      oUsrsGrp.grantReadOnly(oDit);
      oOpersGrp.grantReadOnly(oDit);
      oSess.commit();
    }

    oLst = oDms.query("Endorsement$endorsement_id='01'");
    if (oLst.isEmpty()) {
      Configurations oCnf = null;
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.