Class Overview
This is a wrapper/helper class that manages the connection to a business notestore. It maintains two
AsyncLinkedNoteStoreClient
objects, one points to the users personal store and the other to
the business 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 business notebook@return
|
LinkedNotebook
|
createNotebook(Notebook notebook)
Create Business Notebook from a Notebook
Synchronous call
|
int
|
deleteNotebook(LinkedNotebook linkedNotebook)
Providing a LinkedNotebook referencing a Business notebook, perform a delete
Synchronous call
|
Notebook
|
getCorrespondingNotebook(LinkedNotebook linkedNotebook)
Will return the Notebook associated with the LinkedNotebook from the business account
Synchronous call
|
List<LinkedNotebook>
|
listNotebooks()
Helper method to list business notebooks synchronously@return
|
[Expand]
Inherited Methods |
From class
com.evernote.client.android.AsyncLinkedNoteStoreClient
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()
|
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
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Methods
public
Note
createNote
(Note note, LinkedNotebook linkedNotebook)
Helper method to create a note synchronously in a business notebook@return
Throws
| com.evernote.edam.error.EDAMUserException |
| com.evernote.edam.error.EDAMSystemException |
| com.evernote.thrift.TException |
EDAMNotFoundException
| |
EDAMUserException
| |
EDAMSystemException
| |
TException
| |
public
LinkedNotebook
createNotebook
(Notebook notebook)
Create Business Notebook from a Notebook
Synchronous call
Returns
- LinkedNotebook with guid from server
Throws
TException
| |
EDAMUserException
| |
EDAMSystemException
| |
EDAMNotFoundException
| |
public
int
deleteNotebook
(LinkedNotebook linkedNotebook)
Providing a LinkedNotebook referencing a Business notebook, perform a delete
Synchronous call
Throws
TException
| |
EDAMUserException
| |
EDAMSystemException
| |
EDAMNotFoundException
| |
public
Notebook
getCorrespondingNotebook
(LinkedNotebook linkedNotebook)
Will return the Notebook associated with the LinkedNotebook from the business account
Synchronous call
Throws
TException
| |
EDAMUserException
| |
EDAMSystemException
| |
EDAMNotFoundException
| |
public
List<LinkedNotebook>
listNotebooks
()
Helper method to list business notebooks synchronously@return
Throws
| EDAMUserException |
| EDAMSystemException |
| TException |
EDAMNotFoundException
| |
EDAMUserException
| |
EDAMSystemException
| |
TException
| |