Examples of userToAdmin()


Examples of com.ourlinc.helloworld.model.User.userToAdmin()

      if (null == user) {
        return null;
      }
      // 把用户提升为管理员
      if ("toadmin".equals(op)) {
        user.userToAdmin();
        user.flush();
      } else {// 把管理员降为用户
        user.adminToUser();
        user.flush();
      }
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.