Examples of Gebruiker


Examples of net.atos.java.example.boodschappen.model.Gebruiker

  /** {@inheritDoc} */
  @Override
  public Gebruiker vindGebruikerPerUserId(String userId) {
    PersistenceManager pm = PersistenceHelper.getPersistenceManager();
    Gebruiker gebruiker;
    try {
      Query query = pm.newQuery(PersistentGebruiker.class);
      query.setFilter("id == idParam");
      query.declareParameters("String idParam");
      @SuppressWarnings("unchecked")
View Full Code Here

Examples of net.atos.java.example.boodschappen.model.Gebruiker

      }
    } else {
      // Set the user in the session.
      User user = userService.getCurrentUser();
      String userId = user.getUserId();
      Gebruiker gebruiker = gebruikerRepository
          .vindGebruikerPerUserId(userId);
      String identificatie;
      if (gebruiker == null) {
        // Make a new user.
        gebruiker = new Gebruiker.Builder().id(user.getUserId())
            .naam(user.getNickname()).email(user.getEmail())
            .build();
        identificatie = gebruikerRepository.opslaan(gebruiker);
      } else {
        identificatie = gebruiker.getPk();
      }
      synchronized (session) {
        session.setAttribute(USER_KEY, identificatie);
      }
      return identificatie;
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.