Package mindnotes.shared.services

Examples of mindnotes.shared.services.UserInfo


  @Override
  public UserInfo getUserInfo() {
    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();
    UserInfo info = new UserInfo();
    if (user == null) {
      info.setLoginURL(userService.createLoginURL("/MindNotes.html"));
    } else {
      info.setLogoutURL(userService.createLogoutURL("/MindNotes.html"));

      info.setEmail(user.getEmail());
      info.setNickname(user.getNickname());
      info.setUserId(user.getUserId());

    }
    return info;
  }
View Full Code Here

TOP

Related Classes of mindnotes.shared.services.UserInfo

Copyright © 2018 www.massapicom. 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.