public class

AsyncLinkedNoteStoreClient

extends Object
java.lang.Object
   ↳ com.evernote.client.android.AsyncLinkedNoteStoreClient
Known Direct Subclasses

Class Overview

This is a wrapper/helper class that manages the connection to a linked notestore. It maintains two AsyncLinkedNoteStoreClient objects, one points to the users personal store and the other to linked notebooks shard. These helper methods make network calls across both shards to return the appropriate data.

Summary

Public Methods
Note createNote(Note note, LinkedNotebook linkedNotebook)
Helper method to create a note synchronously in a linked notebook@return
void createNoteAsync(Note note, LinkedNotebook linkedNotebook, OnClientCallback<Note> callback)
Helper method to create a note asynchronously in a linked/business notebook
LinkedNotebook createNotebook(Notebook notebook)
Create Linked Notebook from a Notebook Synchronous call
void createNotebookAsync(Notebook notebook, OnClientCallback<LinkedNotebook> callback)
Create Linked Notebook from a Notebook Asynchronous call
int deleteNotebook(LinkedNotebook linkedNotebook)
Providing a LinkedNotebook referencing a linked account, perform a delete Synchronous call
void deleteNotebookAsync(LinkedNotebook linkedNotebook, OnClientCallback<Integer> callback)
Providing a LinkedNotebook referencing a linked/business account, perform a delete Asynchronous call
AsyncNoteStoreClient getAsyncClient()
Returns the AsyncNoteStoreClient object that has been instantiated to the appropriate shard
Notebook getCorrespondingNotebook(LinkedNotebook linkedNotebook)
Will return the com.evernote.edam.type.Notebook associated with the com.evernote.edam.type.LinkedNotebook from the linked account Synchronous call
void getCorrespondingNotebookAsync(LinkedNotebook linkedNotebook, OnClientCallback<Notebook> callback)
Will return the Notebook associated with the LinkedNotebook from the linked/business account Asynchronous call
boolean isNotebookWritable(LinkedNotebook linkedNotebook)
Checks writable permissions of LinkedNotebook on Linked account Synchronous call
void isNotebookWritableAsync(LinkedNotebook linkedNotebook, OnClientCallback<Boolean> callback)
Checks writable permissions of LinkedNotebook on Linked/business account Asynchronous call
List<LinkedNotebook> listNotebooks()
Helper method to list linked notebooks synchronously
void listNotebooksAsync(OnClientCallback<List<LinkedNotebook>> callback)
Helper method to list linked/business notebooks asynchronously
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public Note createNote (Note note, LinkedNotebook linkedNotebook)

Helper method to create a note synchronously in a linked notebook@return

Throws
com.evernote.edam.error.EDAMUserException
com.evernote.edam.error.EDAMSystemException
com.evernote.thrift.TException
EDAMNotFoundException
EDAMSystemException
EDAMUserException
TException

public void createNoteAsync (Note note, LinkedNotebook linkedNotebook, OnClientCallback<Note> callback)

Helper method to create a note asynchronously in a linked/business notebook

public LinkedNotebook createNotebook (Notebook notebook)

Create Linked Notebook from a Notebook Synchronous call

Returns
  • LinkedNotebook with guid from server
Throws
EDAMNotFoundException
EDAMSystemException
EDAMUserException
TException

public void createNotebookAsync (Notebook notebook, OnClientCallback<LinkedNotebook> callback)

Create Linked Notebook from a Notebook Asynchronous call

public int deleteNotebook (LinkedNotebook linkedNotebook)

Providing a LinkedNotebook referencing a linked account, perform a delete Synchronous call

Returns
  • guid of notebook deleted
Throws
EDAMNotFoundException
EDAMSystemException
EDAMUserException
TException

public void deleteNotebookAsync (LinkedNotebook linkedNotebook, OnClientCallback<Integer> callback)

Providing a LinkedNotebook referencing a linked/business account, perform a delete Asynchronous call

public AsyncNoteStoreClient getAsyncClient ()

Returns the AsyncNoteStoreClient object that has been instantiated to the appropriate shard

public Notebook getCorrespondingNotebook (LinkedNotebook linkedNotebook)

Will return the com.evernote.edam.type.Notebook associated with the com.evernote.edam.type.LinkedNotebook from the linked account Synchronous call

Throws
EDAMNotFoundException
EDAMSystemException
EDAMUserException
TException

public void getCorrespondingNotebookAsync (LinkedNotebook linkedNotebook, OnClientCallback<Notebook> callback)

Will return the Notebook associated with the LinkedNotebook from the linked/business account Asynchronous call

public boolean isNotebookWritable (LinkedNotebook linkedNotebook)

Checks writable permissions of LinkedNotebook on Linked account Synchronous call

Throws
EDAMNotFoundException
EDAMSystemException
EDAMUserException
TException

public void isNotebookWritableAsync (LinkedNotebook linkedNotebook, OnClientCallback<Boolean> callback)

Checks writable permissions of LinkedNotebook on Linked/business account Asynchronous call

public List<LinkedNotebook> listNotebooks ()

Helper method to list linked notebooks synchronously

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

public void listNotebooksAsync (OnClientCallback<List<LinkedNotebook>> callback)

Helper method to list linked/business notebooks asynchronously

See Also
  • {@link com.evernote.edam.notestore.NoteStore.Client#listLinkedNotebooks(String)}