Package com.erudika.para.core

Examples of com.erudika.para.core.User.create()


                    } else {
                      user.setPicture("http://www.gravatar.com/avatar?d=mm&size=200");
                    }
                  }

                  String id = user.create();
                  if (id == null) {
                    throw new AuthenticationServiceException("Authentication failed: cannot create new user.");
                  }
                }
                userAuth = new UserAuthentication(user);
View Full Code Here


                    } else {
                      user.setPicture("http://www.gravatar.com/avatar?d=mm&size=200");
                    }
                  }

                  String id = user.create();
                  if (id == null) {
                    throw new AuthenticationServiceException("Authentication failed: cannot create new user.");
                  }
                }
                userAuth = new UserAuthentication(user);
View Full Code Here

          user.setPicture("http://www.gravatar.com/avatar/" + emailHash + "?size=200&d=mm&r=pg");
        } else {
          user.setPicture("http://www.gravatar.com/avatar?d=mm&size=200");
        }
      }
      String id = user.create();
      if (id == null) {
        throw new BadCredentialsException("Authentication failed: cannot create new user.");
      }
    }
View Full Code Here

                      user.setPicture("http://graph.facebook.com/" + fbId +
                          "/picture?width=400&height=400&type=square");
                    }
                  }

                  String id = user.create();
                  if (id == null) {
                    throw new AuthenticationServiceException("Authentication failed: cannot create new user.");
                  }
                }
                userAuth = new UserAuthentication(user);
View Full Code Here

      user = new User();
      user.setEmail(email);
      user.setName(fullName);
      user.setPassword(new UUID().toString());
      user.setIdentifier(token.getIdentityUrl());
      String id = user.create();
      if (id == null) {
        throw new BadCredentialsException("Authentication failed: cannot create new user.");
      }
    }
View Full Code Here

          user = new User();
          user.setEmail(StringUtils.isBlank(fbEmail) ? "email@domain.com" : fbEmail);
          user.setName(StringUtils.isBlank(fbName) ? "No Name" : fbName);
          user.setPassword(new UUID().toString());
          user.setIdentifier(Config.FB_PREFIX.concat(fbID));
          String id = user.create();
          if (id == null) {
            throw new AuthenticationServiceException("Authentication failed: cannot create new user.");
          }
        }
        userAuth = new UserAuthentication(user);
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.