Package com.zesped.model

Examples of com.zesped.model.User.save()


          setSessionAttribute("password", sNewPassword1);
        }
        oUsr.setFirstName(sFirstName);
        oUsr.setLastName(sLastName);
        oUsr.setEmail(sEmail);
        oUsr.save(getSession());         
        setSessionAttribute("fullname", oUsr.getFirstName()+" "+oUsr.getLastName());
        disconnect();
        addDataLine("id",oUsr.id());
      } catch (RecentlyUsedPasswordException rupe) {
        addError("password", new LocalizableError("com.zesped.action.SaveConfig.recentlyUsedPassword"));
View Full Code Here


      if (!changepassw) {
        try {
          connect();
          oUser = new User(getSession(), id);
          oUser.activate();
          oUser.save(getSession());
          DAO.log(User.class, "ACTIVATE USER", AtrilEvent.Level.INFO, email+";"+id+";"+uid);
          disconnect();
        } catch (StorageException stge) {
          Log.out.error("ActivateUser.form() "+stge.getClass().getName()+" "+stge.getMessage(), stge);
        } finally {
View Full Code Here

        if (!oUser.getNickName().equals(uid) && !oUser.getPassword().equals(passw))
          throw new AuthenticationException("User Id. does not match UUID or Password");
        email = oUser.getEmail();
        if (!changepassw) {
          oUser.activate();
          oUser.save(getSession());
          DAO.log(User.class, "ACTIVATE USER", AtrilEvent.Level.INFO, email+";"+id+";"+uid);
        }
        CustomerAccount oCacc = new CustomerAccount(getSession(), oUser);
        Employee oEmpl = new Employee();
        String sEmpl = null;
View Full Code Here

    try {
      connect();
      User oUser = new User(getSession(), getId());
      oUser.setPassword(getPassword());
      oUser.activate();
      oUser.save(getSession());
      DAO.log(User.class, "ACTIVATE USER", AtrilEvent.Level.INFO, email+";"+id+";"+uid);
      disconnect();
      setSessionAttribute("password", getPassword());
    } catch (Exception xcpt) {
      Log.out.error("ActivateUser.save() "+xcpt.getClass().getName()+" "+xcpt.getMessage(), xcpt);
View Full Code Here

        else
          if (bMultiPage)
            oUsr.defaultCaptureOptions(sSignType+"MultiPageHalfDuplexNoGUI", "Twain");
          else
            oUsr.defaultCaptureOptions(sSignType+"SinglePageHalfDuplexNoGUI", "Twain");
      oUsr.save(getSession());
      disconnect();
      Log.out.debug("default_capture_type="+oUsr.getString("default_capture_type"));
      Log.out.debug("default_scanner="+oUsr.getString("default_scanner"));
        addDataLine("id",oUsr.id());
        addDataLine("id",oUsr.getString("default_capture_type"));
View Full Code Here

        oUsr = new User(oSes, sUid);
        oUsr.canApproveInvoices(bApprove);
        oUsr.canSettleBillNotes(bSettle);
        oUsr.canUsePremiumCaptureServiceFlavor(bPremium);
        oUsr.setRole(oSes, oAcc, Role.user);
        oUsr.save(oSes);     

        try {
          oUsr.allowTaxPayer(oSes, oTxp.id());
        } catch (Exception xcpt) {
          Log.out.error("AsyncSendInvitation User.allowTaxPayer() "+xcpt.getClass().getName()+" "+xcpt.getMessage(), xcpt);
View Full Code Here

          } else {
            oUsr.canApproveInvoices(true);
            oUsr.canSettleBillNotes(true);
            oUsr.canUsePremiumCaptureServiceFlavor(true);
          }
          oUsr.save(getSession());
          if (!oUsr.getRole(oAcc).equals(Role.valueOf(sRole)))
            oUsr.setRole(getSession(), oAcc, Role.valueOf(sRole));
        } else {
          String sUid = User.create(getSession(), getParam("user.firstName"), getParam("user.lastName"), getParam("user.email"), getParam("user.password"), bActive).id();
          commit();
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.