Examples of User


Examples of example.avro.User

    DatumWriter<User> userDatumWriter = new SpecificDatumWriter<User>(User.class);
    DataFileWriter<User> dataFileWriter = new DataFileWriter<User>(userDatumWriter);
    dataFileWriter.create(User.SCHEMA$, file);

    // Create random users
    User user;
    Random random = new Random();
    for (int i = 0; i < USERS; i++) {
      user = new User("user", null, COLORS[random.nextInt(COLORS.length)]);
      dataFileWriter.append(user);
      System.out.println(user);
    }

    dataFileWriter.close();
View Full Code Here

Examples of examples.entity.user.User

  String  id = "402880e740a648990140a6489c470000";
 
 
  //@Test
  public void testInsert() {
    User user = new User();
    user.setName("张代浩2");
    user.setAge(22);
   
    userDao.saveByHiber(user);
  }
View Full Code Here

Examples of facebook4j.User

            String response = apiResponse.asString();
            AccessToken newAccessToken = new AccessToken(response);
            String newToken = newAccessToken.getToken();

            if(newToken != null) {
                User facebookUser = facebook.getMe();

                loginUserModel.setFacebookAccessToken(new Text(newToken));
                loginUserModel.setFacebookAccountName(facebookUser.getName());

                // ユーザーグループを変更
                if(loginUserModel.getGroup() < 10) {
                    Random rnd = new Random();
                    loginUserModel.setGroup(rnd.nextInt(10) + 10);
View Full Code Here

Examples of fr.cesi.chat.domain.User

    }
  }

  @Override
  public void run() {
    User user = null;
    try {
      // Affiche les messages reçus
      while (true) {
        user = (User) in.readObject();
View Full Code Here

Examples of fr.enseirbmatmeca.apms.spring.model.user.User

      // create a new criteria
      Criteria crit = session.createCriteria(User.class);
      crit.add(Restrictions.ilike("login", login));
      crit.add(Restrictions.eq("password", password));

      User user = (User)crit.uniqueResult();
      return (user != null);
    }
    catch(DataException e) {
      // Critical errors : database unreachable, etc.
      //      logger.error("Exception - DataAccessException occurs : "+e.getMessage()
View Full Code Here

Examples of fr.ippon.tatami.domain.User

        if (firstName == null && lastName == null) {
            // if we haven't first nor last name, we use fullName as last name to begin with :
            lastName = fullName;
        }

        User user = new User();
        // Note : The email could change... and the OpenId not
        // moreover an OpenId account could potentially be associated with several email addresses
        // so we store it for future use case :
        user.setOpenIdUrl(token.getName());

        user.setLogin(login);
        user.setFirstName(firstName);
        user.setLastName(lastName);
        userService.createUser(user);

        return userDetailsService.getTatamiUserDetails(login, user.getPassword());
    }
View Full Code Here

Examples of fr.montreuil.wargame.domain.User

    }else if(lastname.isEmpty() || lastname == ""){
      message = "LastName vide !";
    }
   
    // Récuperation d'un user avec l'username
    User exist = repository.findByUsername(username);
    // Si il est deja utiliser
    if(exist != null){
      message = "Username déjà utilisé !";
    }
     
    // Si il n'y a aucune erreur
    if(message.isEmpty()){
      // Creation de l'user en base
      User user = new User();
      user.setFirstName(firstname);
      user.setLastName(lastname);
      user.setPassword(getEncodedPassword(password_confirm));
      user.setUsername(username);
      user.setRole(new Role());
      user.getRole().setRole(2);
      user.getRole().setUser(user);
      // Insertion en base
      repository.save(user);
     
      // Redirection
      return "redirect:/register/success";
View Full Code Here

Examples of fr.openwide.maven.artifact.notifier.core.business.user.model.User

      followedArtifact.setLastNotifiedVersionDate(new Date());
      followedArtifactService.update(followedArtifact);
      return Lists.newArrayListWithCapacity(0);
    }
   
    User follower = followedArtifact.getUser();
    List<ArtifactVersion> lastVersions = artifactService.listArtifactVersionsAfterDate
        (followedArtifact.getArtifact(), followedArtifact.getLastNotifiedVersionDate());
   
    List<ArtifactNotificationRule> rules = followedArtifactService.listArtifactNotificationRules(followedArtifact);
   
    List<ArtifactVersionNotification> notifications = Lists.newArrayList();
    for (ArtifactVersion version : lastVersions) {
      // Rules check
      if (!artifactNotificationRuleService.checkRulesForVersion(version.getVersion(), rules)) {
        continue;
      }
     
      ArtifactVersionNotification notification = new ArtifactVersionNotification(version);
      artifactVersionNotificationService.create(notification);
     
      follower.addNotification(notification);
      notifications.add(notification);
      if (followedArtifact.getLastNotifiedVersionDate().before(version.getLastUpdateDate())) {
        followedArtifact.setLastNotifiedVersionDate(version.getLastUpdateDate());
      }
    }
View Full Code Here

Examples of fr.univ.jfc.java.grp7.commun.User

    fireIntervalRemoved(this, 0, index);
 
 
  public String getElementAt(int index) { // renvoi le titre de la note a cet
                      // emplacement dans la combo
    User user = myUsers.get(index);
    String res = "";
    this.index = index;
    try {
      res = user.getNom() + " " + user.getPrenom();
    } catch (RemoteException e) {
      e.printStackTrace();
    }
    return res;
  }
View Full Code Here

Examples of gaetest.domain.User

    // em.remove(usr);
  }

  @Override
  public User find(Class<? extends User> clazz, Long id) {
    return new User();
    // return em.find(clazz, id);
  }
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.