Package com.nevernote.service

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


      Preferences prefs = new Preferences();
      prefs.setUserID(savedUser.getId());
      prefs.setColors(ColorScheme.valueOf("BLACK_ON_WHITE").toString());
      prefs.setSort(SortingMethod.valueOf("ALPHA_ASCENDING").toString());
      preferenceService.save(prefs);

      String relativeWebPath = "WEB-INF/notesRepo";
      String absoluteDiskPath = getServletContext().getRealPath(relativeWebPath);
      File directory = new File(absoluteDiskPath + "/" + newUser.getId());
      boolean success = directory.mkdirs();
View Full Code Here


    if (sort != null && colors != null) {
      Preferences pref = preferencesService.findOne(u.getId());
      pref.setColors(colors);
      pref.setSort(sort);
      preferencesService.save(pref);
    }
    response.sendRedirect("ClientDashServlet");
  }
}
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.