Package com.puzzlebazar.shared.model

Examples of com.puzzlebazar.shared.model.User


    //               this saves a trip to the datastore.
    if (userKey == null) {
      return null;
    }

    User user = getUser(userKey);
    if (user == null) {
      createInvalidSession(getSessionId());
    } else {
      ((UserImpl) user).setAuthenticated(true);
    }
View Full Code Here


      logger.warning("Setting a user with a null email. Call logout instead?");
      return;
    }
    String locale =  availableLocales.getBestLocale(axSchema.get("language")).getLocale();

    User user = getUserByEmailOrCreate(email, locale);
    if (user != null) {
      String sessionId = getSessionId();
      ofy().put(new Session(sessionId, user.createKey()));
    }
  }
View Full Code Here

  }

  private void apply() {
    MyView view = getView();
    int localeIndex = view.getLanguage().getSelectedIndex();
    final User newUser = currentUser.getUserCopy();
    newUser.setNickname(view.getNickname().getText());
    newUser.setRealname(view.getRealName().getText());
    newUser.setLocale(availableLocales.getLocale(localeIndex).getLocale());
    final EditUserAction action = new EditUserAction(newUser, currentUser.getUserCopy());

    execute(action);
  }
View Full Code Here

TOP

Related Classes of com.puzzlebazar.shared.model.User

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.