Package com.nevernote.service

Examples of com.nevernote.service.UsersService.save()


      newUser.setId(request.getParameter("un"));
      newUser.setPassword(encryptedPassword);
      newUser.setPriviledge("standard");
      newUser.setEnabled(true);
      System.out.println(newUser.toString())
      Users savedUser = usersService.save(request.getParameter("un"),newUser);

      Preferences prefs = new Preferences();
      prefs.setUserID(savedUser.getId());
      prefs.setColors(ColorScheme.valueOf("BLACK_ON_WHITE").toString());
      prefs.setSort(SortingMethod.valueOf("ALPHA_ASCENDING").toString());
View Full Code Here


             noteUsers.add(u);
             theNote.setUsers(noteUsers);
             notesService.save(theNote);

             userFromDB.addNote(theNote);
             Users savedUser = usersService.save(userFromDB.getId(), userFromDB);
             session.setAttribute("userSession", savedUser);
    }

    String url = "/ClientDashServlet";
    RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(url);
View Full Code Here

    }

    String userId = request.getParameter("disable");
    Users userToDisable = us.findById(userId);
    userToDisable.setEnabled(false);
    us.save(userToDisable.getId(), userToDisable);

    response.sendRedirect("AdminDashServlet");
  }

  /**
 
View Full Code Here

    }

    String userId = request.getParameter("enable");
    Users userToEnable = us.findById(userId);
    userToEnable.setEnabled(true);
    us.save(userToEnable.getId(), userToEnable);

    response.sendRedirect("AdminDashServlet");
  }

  /**
 
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.