Package es.ipsa.atril.sec.authentication

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


      oCntr = new Countries().getCountry(oSes, getCountry());
      if (!isNull("state"))
        oStat = oCntr.states(oSes).getState(oSes, getState());
      else
        oStat = null;
      oSes.disconnect();
      oSes.close();
    } else {
      oCntr = null;
      oStat = null;
    }
View Full Code Here


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

        oPipe.between(new ByteArrayInputStream(byThumb), oOutStrm);
        oThl.save("");
        oOutStrm.close();
        Log.out.debug("Thumbnail creation done");
        DAO.log(oSes, oThl, Class.forName("com.zesped.model."+oDoc.type().name()+"Thumbnail"), "INSERT THUMBNAIL", AtrilEvent.Level.INFO, sItemName);
        oSes.disconnect();
        oSes.close();
        oSes=null;
      } catch (Exception e) {
        Log.out.error("ThumbnailCreator.run() "+e.getClass().getName()+" "+e.getMessage(), e);
      } finally {
View Full Code Here

        oSes=null;
      } catch (Exception e) {
        Log.out.error("ThumbnailCreator.run() "+e.getClass().getName()+" "+e.getMessage(), e);
      } finally {
        if (oSes!=null) {
          if (oSes.isConnected()) oSes.disconnect();
          if (oSes.isOpen()) oSes.close();
        }
      }
    Log.out.debug("End ThumbnailCreator.run()");
    }
View Full Code Here

      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);
    } finally {
View Full Code Here

      oSes=null;
    } catch (Exception xcpt) {
      Log.out.error("AsyncAccountCreator.run() "+xcpt.getClass().getName()+" "+xcpt.getMessage(), xcpt);
    } finally {
      if (oSes!=null) {
        if (oSes.isConnected()) oSes.disconnect();
        if (oSes.isOpen()) oSes.close();
      }
    }
  }
}
View Full Code Here

    HttpRequest oReq;
   
    try {
      AtrilSession oSes = DAO.getAdminSession("AsyncAccountCache");
      User oUsr = new User(oSes, User.forUuid(sUsrNick));
      oSes.disconnect();
      oSes.close();

      oReq = new HttpRequest(sBaseUrl+"login.jsp", null, "post",
                   new NameValuePair[]{new NameValuePair("email", oUsr.getEmail()),
                                   new NameValuePair("passw", sUsrPwd),
View Full Code Here

   
    CustomerAccount oAcc = new CustomerAccount(oSes.getDms(), ACCID);
    if (oAcc.taxpayers(oSes).list(oSes).size()==0)
      TaxPayer.create(oSes, oAcc, TEST_BUSINESSNAME+" tax payer", "John Smith", "johnj@junittesting.com", null);

    oSes.disconnect();
    oSes.close();
    }

  //-----------------------------------------------------------
 
View Full Code Here

          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);
      } finally {
View Full Code Here

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