public class EvernoteLinkedNotebookHelper extends EvernoteAsyncClient
LinkedNotebooks. The easiest way to create an instance
is to call EvernoteClientFactory.getLinkedNotebookHelper(LinkedNotebook).| Modifier and Type | Field and Description |
|---|---|
protected EvernoteNoteStoreClient |
mClient |
protected LinkedNotebook |
mLinkedNotebook |
| Constructor and Description |
|---|
EvernoteLinkedNotebookHelper(EvernoteNoteStoreClient client,
LinkedNotebook linkedNotebook,
java.util.concurrent.ExecutorService executorService) |
| Modifier and Type | Method and Description |
|---|---|
Note |
createNoteInLinkedNotebook(Note note) |
java.util.concurrent.Future<Note> |
createNoteInLinkedNotebookAsync(Note note,
EvernoteCallback<Note> callback) |
int |
deleteLinkedNotebook(EvernoteNoteStoreClient defaultClient) |
int |
deleteLinkedNotebook(EvernoteSession session) |
java.util.concurrent.Future<java.lang.Integer> |
deleteLinkedNotebookAsync(EvernoteNoteStoreClient defaultClient,
EvernoteCallback<java.lang.Integer> callback) |
java.util.concurrent.Future<java.lang.Integer> |
deleteLinkedNotebookAsync(EvernoteSession session,
EvernoteCallback<java.lang.Integer> callback) |
EvernoteNoteStoreClient |
getClient() |
Notebook |
getCorrespondingNotebook() |
java.util.concurrent.Future<Notebook> |
getCorrespondingNotebookAsync(EvernoteCallback<Notebook> callback) |
LinkedNotebook |
getLinkedNotebook() |
boolean |
isNotebookWritable() |
java.util.concurrent.Future<java.lang.Boolean> |
isNotebookWritableAsync(EvernoteCallback<java.lang.Boolean> callback) |
runOnUiThread, submitTaskprotected final EvernoteNoteStoreClient mClient
protected final LinkedNotebook mLinkedNotebook
public EvernoteLinkedNotebookHelper(EvernoteNoteStoreClient client, LinkedNotebook linkedNotebook, java.util.concurrent.ExecutorService executorService)
client - The note store client referencing the linked notebook note store url.linkedNotebook - The desired linked notebook.executorService - The executor running the actions in the background.public EvernoteNoteStoreClient getClient()
public LinkedNotebook getLinkedNotebook()
public Note createNoteInLinkedNotebook(Note note)
throws EDAMUserException,
EDAMSystemException,
TException,
EDAMNotFoundException
note - The new note.EDAMUserExceptionEDAMSystemExceptionTExceptionEDAMNotFoundExceptionpublic java.util.concurrent.Future<Note> createNoteInLinkedNotebookAsync(Note note,
EvernoteCallback<Note> callback)
createNoteInLinkedNotebook(Note)public int deleteLinkedNotebook(EvernoteSession session) throws TException, EDAMUserException, EDAMSystemException, EDAMNotFoundException
session - The current valid session.TExceptionEDAMUserExceptionEDAMSystemExceptionEDAMNotFoundExceptionEvernoteNoteStoreClient.expungeLinkedNotebook(String)public int deleteLinkedNotebook(EvernoteNoteStoreClient defaultClient) throws TException, EDAMUserException, EDAMSystemException, EDAMNotFoundException
defaultClient - The note store client, which references the user's note store.TExceptionEDAMUserExceptionEDAMSystemExceptionEDAMNotFoundExceptionEvernoteNoteStoreClient.expungeLinkedNotebook(String)public java.util.concurrent.Future<java.lang.Integer> deleteLinkedNotebookAsync(EvernoteSession session, EvernoteCallback<java.lang.Integer> callback)
deleteLinkedNotebook(EvernoteSession)public java.util.concurrent.Future<java.lang.Integer> deleteLinkedNotebookAsync(EvernoteNoteStoreClient defaultClient, EvernoteCallback<java.lang.Integer> callback)
public Notebook getCorrespondingNotebook()
throws TException,
EDAMUserException,
EDAMSystemException,
EDAMNotFoundException
TExceptionEDAMUserExceptionEDAMSystemExceptionEDAMNotFoundExceptionpublic java.util.concurrent.Future<Notebook> getCorrespondingNotebookAsync(EvernoteCallback<Notebook> callback)
getCorrespondingNotebook()public boolean isNotebookWritable()
throws EDAMUserException,
TException,
EDAMSystemException,
EDAMNotFoundException
true if this linked notebook is writable.EDAMUserExceptionTExceptionEDAMSystemExceptionEDAMNotFoundExceptionpublic java.util.concurrent.Future<java.lang.Boolean> isNotebookWritableAsync(EvernoteCallback<java.lang.Boolean> callback)
isNotebookWritable()