Package com.zesped.model

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


          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.