/** * Helper method to list linked notebooks * * @see {@link com.evernote.edam.notestore.NoteStore.Client#listLinkedNotebooks(String)} * */ public List<LinkedNotebook> listNotebooks() throws EDAMUserException, EDAMSystemException, TException, EDAMNotFoundException { return getPersonalClient().listLinkedNotebooks(); }
@Override public UserStoreClient execute() throws Exception { return clientFactory.createUserStoreClient(); } });
@Override public LinkedNoteStoreClient execute() throws Exception { return clientFactory.createLinkedNoteStoreClient(linkedNotebook); } });
/** * @see NoteStore.Client#getLinkedNotebookSyncState(String, * com.evernote.edam.type.LinkedNotebook) */ public SyncState getLinkedNotebookSyncState(LinkedNotebook linkedNotebook) throws EDAMUserException, EDAMSystemException, EDAMNotFoundException, TException { return getClient().getLinkedNotebookSyncState(getToken(), linkedNotebook); }
/** * Will return the {@link com.evernote.edam.type.Notebook} associated with the * {@link com.evernote.edam.type.LinkedNotebook} from the linked account * * @param linkedNotebook */ public Notebook getCorrespondingNotebook(LinkedNotebook linkedNotebook) throws TException, EDAMUserException, EDAMSystemException, EDAMNotFoundException { SharedNotebook sharedNotebook = getClient().getSharedNotebookByAuth(); return getClient().getNotebook(sharedNotebook.getNotebookGuid()); }
@Override public NoteStoreClient execute() throws Exception { return clientFactory.createNoteStoreClient(); } });
@Override public BusinessNoteStoreClient execute() throws Exception { return clientFactory.createBusinessNoteStoreClient(); } });
/** * @see NoteStore.Client#authenticateToSharedNote(String, String) */ public AuthenticationResult authenticateToSharedNote(String guid, String noteKey, String authenticationToken) throws EDAMUserException, EDAMNotFoundException, EDAMSystemException, TException { return getClient().authenticateToSharedNote(guid, noteKey, authenticationToken); }
/** * @return * @see NoteStore.Client#getLinkedNotebookSyncChunk(String, * com.evernote.edam.type.LinkedNotebook, int, int, boolean) */ public SyncChunk getLinkedNotebookSyncChunk(LinkedNotebook linkedNotebook, int afterUSN, int maxEntries, boolean fullSyncOnly) throws EDAMUserException, EDAMSystemException, EDAMNotFoundException, TException { return getClient().getLinkedNotebookSyncChunk(getToken(), linkedNotebook, afterUSN, maxEntries, fullSyncOnly); }
/** * Will return the {@link com.evernote.edam.type.Notebook} associated with the * {@link com.evernote.edam.type.LinkedNotebook} from the linked account * * @param linkedNotebook */ public Notebook getCorrespondingNotebook(LinkedNotebook linkedNotebook) throws TException, EDAMUserException, EDAMSystemException, EDAMNotFoundException { SharedNotebook sharedNotebook = getClient().getSharedNotebookByAuth(); return getClient().getNotebook(sharedNotebook.getNotebookGuid()); }
/** * Helper method to list linked notebooks * * @see {@link com.evernote.edam.notestore.NoteStore.Client#listLinkedNotebooks(String)} * */ public List<LinkedNotebook> listNotebooks() throws EDAMUserException, EDAMSystemException, TException, EDAMNotFoundException { return getPersonalClient().listLinkedNotebooks(); }
/** * @see NoteStore.Client#getNote(String, String, boolean, boolean, boolean, * boolean) */ public Note getNote(String guid, boolean withContent, boolean withResourcesData, boolean withResourcesRecognition, boolean withResourcesAlternateData) throws EDAMUserException, EDAMSystemException, EDAMNotFoundException, TException { return getClient() .getNote(getToken(), guid, withContent, withResourcesData, withResourcesRecognition, withResourcesAlternateData); }