java.lang.Object | |
↳ | com.evernote.client.android.AsyncLinkedNoteStoreClient |
Known Direct Subclasses |
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.
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
|
Helper method to create a note synchronously in a linked notebook@return
com.evernote.edam.error.EDAMUserException | |
com.evernote.edam.error.EDAMSystemException | |
com.evernote.thrift.TException | |
EDAMNotFoundException | |
EDAMSystemException | |
EDAMUserException | |
TException |
Helper method to create a note asynchronously in a linked/business notebook
Create Linked Notebook from a Notebook Synchronous call
EDAMNotFoundException | |
---|---|
EDAMSystemException | |
EDAMUserException | |
TException |
Create Linked Notebook from a Notebook Asynchronous call
Providing a LinkedNotebook referencing a linked account, perform a delete Synchronous call
EDAMNotFoundException | |
---|---|
EDAMSystemException | |
EDAMUserException | |
TException |
Providing a LinkedNotebook referencing a linked/business account, perform a delete Asynchronous call
Returns the AsyncNoteStoreClient
object that has been instantiated to the appropriate shard
Will return the com.evernote.edam.type.Notebook associated with the com.evernote.edam.type.LinkedNotebook from the linked account Synchronous call
EDAMNotFoundException | |
---|---|
EDAMSystemException | |
EDAMUserException | |
TException |
Will return the Notebook associated with the LinkedNotebook from the linked/business account Asynchronous call
Checks writable permissions of LinkedNotebook on Linked account Synchronous call
EDAMNotFoundException | |
---|---|
EDAMSystemException | |
EDAMUserException | |
TException |
Checks writable permissions of LinkedNotebook on Linked/business account Asynchronous call
Helper method to list linked notebooks synchronously
EDAMNotFoundException | |
---|---|
EDAMSystemException | |
EDAMUserException | |
TException |
Helper method to list linked/business notebooks asynchronously