public class EvernoteBusinessNotebookHelper extends EvernoteAsyncClient
EvernoteClientFactory.getBusinessNotebookHelper().| Constructor and Description |
|---|
EvernoteBusinessNotebookHelper(EvernoteNoteStoreClient client,
java.util.concurrent.ExecutorService executorService,
java.lang.String businessUserName,
java.lang.String businessUserShardId) |
| Modifier and Type | Method and Description |
|---|---|
LinkedNotebook |
createBusinessNotebook(Notebook notebook,
EvernoteNoteStoreClient defaultClient) |
LinkedNotebook |
createBusinessNotebook(Notebook notebook,
EvernoteSession session) |
java.util.concurrent.Future<LinkedNotebook> |
createBusinessNotebookAsync(Notebook notebook,
EvernoteNoteStoreClient defaultClient,
EvernoteCallback<LinkedNotebook> callback) |
java.util.concurrent.Future<LinkedNotebook> |
createBusinessNotebookAsync(Notebook notebook,
EvernoteSession session,
EvernoteCallback<LinkedNotebook> callback) |
java.lang.String |
getBusinessUserName() |
java.lang.String |
getBusinessUserShardId() |
EvernoteNoteStoreClient |
getClient() |
static boolean |
isBusinessNotebook(LinkedNotebook linkedNotebook) |
java.util.List<LinkedNotebook> |
listBusinessNotebooks(EvernoteNoteStoreClient defaultClient) |
java.util.List<LinkedNotebook> |
listBusinessNotebooks(EvernoteSession session) |
java.util.concurrent.Future<java.util.List<LinkedNotebook>> |
listBusinessNotebooksAsync(EvernoteNoteStoreClient defaultClient,
EvernoteCallback<java.util.List<LinkedNotebook>> callback) |
java.util.concurrent.Future<java.util.List<LinkedNotebook>> |
listBusinessNotebooksAsync(EvernoteSession session,
EvernoteCallback<java.util.List<LinkedNotebook>> callback) |
runOnUiThread, submitTaskpublic EvernoteBusinessNotebookHelper(EvernoteNoteStoreClient client, java.util.concurrent.ExecutorService executorService, java.lang.String businessUserName, java.lang.String businessUserShardId)
client - The note store client referencing the business note store url.executorService - The executor running the actions in the background.businessUserName - The name of the business user.businessUserShardId - The shard ID of the business user.public EvernoteNoteStoreClient getClient()
public java.lang.String getBusinessUserName()
public java.lang.String getBusinessUserShardId()
public java.util.List<LinkedNotebook> listBusinessNotebooks(EvernoteSession session) throws EDAMUserException, EDAMSystemException, TException, EDAMNotFoundException
session - The current valid session.LinkedNotebooks, which all have a business ID.EDAMUserExceptionEDAMSystemExceptionTExceptionEDAMNotFoundExceptionpublic java.util.List<LinkedNotebook> listBusinessNotebooks(EvernoteNoteStoreClient defaultClient) throws EDAMUserException, EDAMSystemException, TException, EDAMNotFoundException
defaultClient - The note store client, which references the user's note store.LinkedNotebooks, which all have a business ID.EDAMUserExceptionEDAMSystemExceptionTExceptionEDAMNotFoundExceptionpublic java.util.concurrent.Future<java.util.List<LinkedNotebook>> listBusinessNotebooksAsync(EvernoteSession session, EvernoteCallback<java.util.List<LinkedNotebook>> callback)
listBusinessNotebooks(EvernoteSession)public java.util.concurrent.Future<java.util.List<LinkedNotebook>> listBusinessNotebooksAsync(EvernoteNoteStoreClient defaultClient, EvernoteCallback<java.util.List<LinkedNotebook>> callback)
public LinkedNotebook createBusinessNotebook(Notebook notebook,
EvernoteSession session)
throws TException,
EDAMUserException,
EDAMSystemException,
EDAMNotFoundException
notebook - The new business notebook.session - The current valid session.LinkedNotebook, which has an business ID.TExceptionEDAMUserExceptionEDAMSystemExceptionEDAMNotFoundExceptionpublic LinkedNotebook createBusinessNotebook(Notebook notebook,
EvernoteNoteStoreClient defaultClient)
throws TException,
EDAMUserException,
EDAMSystemException,
EDAMNotFoundException
notebook - The new business notebook.defaultClient - The note store client, which references the user's note store.LinkedNotebook, which has an business ID.TExceptionEDAMUserExceptionEDAMSystemExceptionEDAMNotFoundExceptionpublic java.util.concurrent.Future<LinkedNotebook> createBusinessNotebookAsync(Notebook notebook,
EvernoteSession session,
EvernoteCallback<LinkedNotebook> callback)
public java.util.concurrent.Future<LinkedNotebook> createBusinessNotebookAsync(Notebook notebook,
EvernoteNoteStoreClient defaultClient,
EvernoteCallback<LinkedNotebook> callback)
public static boolean isBusinessNotebook(LinkedNotebook linkedNotebook)
true if this linked notebook has a business ID.