Package com.nevernote.service

Examples of com.nevernote.service.ClientService


    GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
    ctx.load("classpath:app-context.xml");
    ctx.refresh();

    PreferencesService prefService = ctx.getBean("preferencesService", PreferencesService.class);
    ClientService cs = ctx.getBean("clientService", ClientService.class);
   
    Users user = (Users) session.getAttribute("userSession");
    if (user == null){
      response.sendRedirect("Login.jsp");
    }
    if (!user.getEnabled()) {
      response.sendRedirect("Login.jsp");
    }
   
    //Test that we got the user
    System.out.println("********Users object passed from Login**************");
    System.out.println( user.getId() );
    System.out.println("********************");
   
    // Obtain Collection of all Nodes (Folders + Notes )
    List<Notes> userNotes = new ArrayList<Notes>();
   
    userNotes = cs.findAllForUser(user.getId());
   
    if (userNotes == null || !userNotes.isEmpty()) {
      //Test Notes results on console
      for (Notes note : userNotes) {
        System.out.println("Here is a file name: " + note.getFileName());
View Full Code Here

TOP

Related Classes of com.nevernote.service.ClientService

Copyright © 2018 www.massapicom. 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.