com.evernote.clients
Class LinkedNoteStoreClient

java.lang.Object
  extended by com.evernote.clients.LinkedNoteStoreClient
Direct Known Subclasses:
BusinessNoteStoreClient

public class LinkedNoteStoreClient
extends Object

This is a wrapper/helper class that manages the connection to a linked notestore. It maintains two LinkedNoteStoreClient objects, one points to the users personal store and the other to linked notebooks shard.

Author:
@tylersmithnet, kentaro suzuki

Method Summary
 Note createNote(Note note, LinkedNotebook linkedNotebook)
          Helper method to create a note in a linked notebook
 NoteStoreClient getClient()
          Returns the NoteStoreClient object that has been instantiated to the appropriate shard
 Notebook getCorrespondingNotebook(LinkedNotebook linkedNotebook)
          Will return the Notebook associated with the LinkedNotebook from the linked account
 boolean isNotebookWritable(LinkedNotebook linkedNotebook)
          Checks writable permissions of LinkedNotebook on Linked account
 List<LinkedNotebook> listNotebooks()
          Helper method to list linked notebooks
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getClient

public NoteStoreClient getClient()
Returns the NoteStoreClient object that has been instantiated to the appropriate shard

Returns:

createNote

public Note createNote(Note note,
                       LinkedNotebook linkedNotebook)
                throws EDAMUserException,
                       EDAMSystemException,
                       TException,
                       EDAMNotFoundException
Helper method to create a note in a linked notebook

Parameters:
note -
linkedNotebook -
Returns:
Throws:
EDAMUserException
EDAMSystemException
TException
EDAMNotFoundException

listNotebooks

public List<LinkedNotebook> listNotebooks()
                                   throws EDAMUserException,
                                          EDAMSystemException,
                                          TException,
                                          EDAMNotFoundException
Helper method to list linked notebooks

Throws:
EDAMUserException
EDAMSystemException
TException
EDAMNotFoundException
See Also:
com.evernote.edam.notestore.NoteStore.Client#listLinkedNotebooks(String)}

getCorrespondingNotebook

public Notebook getCorrespondingNotebook(LinkedNotebook linkedNotebook)
                                  throws TException,
                                         EDAMUserException,
                                         EDAMSystemException,
                                         EDAMNotFoundException
Will return the Notebook associated with the LinkedNotebook from the linked account

Parameters:
linkedNotebook -
Throws:
TException
EDAMUserException
EDAMSystemException
EDAMNotFoundException

isNotebookWritable

public boolean isNotebookWritable(LinkedNotebook linkedNotebook)
                           throws EDAMUserException,
                                  TException,
                                  EDAMSystemException,
                                  EDAMNotFoundException
Checks writable permissions of LinkedNotebook on Linked account

Parameters:
linkedNotebook -
Throws:
EDAMUserException
TException
EDAMSystemException
EDAMNotFoundException


Copyright © 2013. All Rights Reserved.