Package com.zesped.model

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


      hasorders = ((Boolean) oSessionInfo.get("hasorders")).booleanValue();
      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);
View Full Code Here


        oUser = new User(getSession(), id);
        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();
View Full Code Here

  public Resolution save() {
    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) {
View Full Code Here

          oUsr = new User(getSession(), sFormerId);
          LoginInterceptor.expire(oUsr.getNickName(), oUsr.getPassword());
          oUsr.setFirstName(getParam("user.firstName"));
          oUsr.setLastName(getParam("user.lastName"));
          oUsr.setEmail(getParam("user.email"));
          if (bActive) oUsr.activate(); else oUsr.deactivate();
          if (!Role.valueOf(sRole).equals(Role.admin)) {
            oUsr.canApproveInvoices(getParam("approve","").length()>0);
            oUsr.canSettleBillNotes(getParam("settle","").length()>0);
            oUsr.canUsePremiumCaptureServiceFlavor(getParam("premium","").length()>0);
          } else {
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.