Examples of persistUser()


Examples of com.changestuffs.server.utils.UserBeanOAM.persistUser()

    boolean emailSent = true;
    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();
    UserBeanOAM oam = provider.get();
    User newUser = new User(action.getEmail(), UserBeanOAM.AUTH_DOMAIN_NOT_REGISTERED, new BigInteger(130, random).toString(32));
    InfoLoginResult result = oam.persistUser(null, newUser, user.getEmail(), user.getEmail());
    if(result.isSendEmail()){
      try {
        String token = result.getToken();
        sendEmail(user.getEmail(), newUser.getEmail(), token);
      } catch (MessagingException|IOException e) {
View Full Code Here

Examples of com.changestuffs.server.utils.UserBeanOAM.persistUser()

    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();
    if(user!=null){
      log.info("User is "+user);
          UserBeanOAM oam = provider.get();
          oam.persistUser(new Date(), user, req.getRemoteAddr(), null);
    }
    StringBuilder builder = new StringBuilder(UrlUtils.getBaseURL(req.getRequestURL().toString(), req.getRequestURI())).append("?");
    @SuppressWarnings("unchecked")
    Map<String,String[]> params = req.getParameterMap();
    boolean first=true;
View Full Code Here

Examples of com.changestuffs.server.utils.UserBeanOAM.persistUser()

  @Test
  public void inviteAndRegister() throws ActionException, IOException{
    final String ravenWasInvitedBy = "the@owner.com";
    UserBeanOAM oam = injector.getInstance(UserBeanOAM.class);
    com.google.appengine.api.users.User user = new com.google.appengine.api.users.User(email, UserBeanOAM.AUTH_DOMAIN_NOT_REGISTERED, "anyUserId");
    oam.persistUser(new Date(0), user, ravenWasInvitedBy, ravenWasInvitedBy);
   
   
    RedirectImpl register = injector.getInstance(RedirectImpl.class);
   
    HttpServletRequest req = mock(HttpServletRequest.class);
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.