Package com.evernote.edam.userstore

Examples of com.evernote.edam.userstore.AuthenticationResult


             logger.log(logger.EXTREME, "Share Key Not Null: " +books.get(i).getShareKey());
             linkedAuthResult = linkedNoteStore.authenticateToSharedNotebook(books.get(i).getShareKey(), authToken);
             logger.log(logger.EXTREME, "Authentication Token" +linkedAuthResult.getAuthenticationToken());
           } else {
             logger.log(logger.EXTREME, "Share key is null");
             linkedAuthResult = new AuthenticationResult();
             linkedAuthResult.setAuthenticationToken("");
           }
           SyncState linkedSyncState =
             linkedNoteStore.getLinkedNotebookSyncState(linkedAuthResult.getAuthenticationToken(), books.get(i));
           if (linkedSyncState.getUpdateCount() > lastSequenceNumber) {
View Full Code Here


  public LinkedNoteStoreClient createLinkedNoteStoreClient(
      LinkedNotebook linkedNotebook) throws EDAMUserException,
      EDAMSystemException, TException, EDAMNotFoundException {

    NoteStoreClient mainNoteStoreClient = createNoteStoreClient();
    AuthenticationResult sharedAuth = mainNoteStoreClient
        .authenticateToSharedNotebook(linkedNotebook.getShareKey());
    NoteStoreClient linkedNoteStoreClient = createStoreClient(
        NoteStoreClient.class, linkedNotebook.getNoteStoreUrl(),
        sharedAuth.getAuthenticationToken());

    return new LinkedNoteStoreClient(mainNoteStoreClient,
        linkedNoteStoreClient, sharedAuth);
  }
View Full Code Here

   */
  public BusinessNoteStoreClient createBusinessNoteStoreClient()
      throws TException, EDAMUserException, EDAMSystemException {

    NoteStoreClient mainNoteStoreClient = createNoteStoreClient();
    AuthenticationResult businessAuthResult = createUserStoreClient()
        .authenticateToBusiness();
    NoteStoreClient linkedNoteStoreClient = createStoreClient(
        NoteStoreClient.class, businessAuthResult.getNoteStoreUrl(),
        businessAuthResult.getAuthenticationToken());

    return new BusinessNoteStoreClient(mainNoteStoreClient,
        linkedNoteStoreClient, businessAuthResult);
  }
View Full Code Here

          .toReturn(createdLinkedNotebook);

      User user = new User();
      user.setUsername("username");
      user.setShardId("shardId");
      AuthenticationResult authenticationResult = new AuthenticationResult();
      authenticationResult.setUser(user);

      client = new BusinessNoteStoreClient(personalClient, noteStoreClient,
          authenticationResult);
    } else {
      EvernoteAuth auth = new EvernoteAuth(EvernoteService.SANDBOX, token);
View Full Code Here

      LinkedNotebook createdLinkedNotebook = new LinkedNotebook();
      stub(personalClient.createLinkedNotebook(isA(LinkedNotebook.class)))
          .toReturn(createdLinkedNotebook);

      AuthenticationResult authenticationResult = new AuthenticationResult();

      client = new LinkedNoteStoreClient(personalClient, noteStoreClient,
          authenticationResult);
    } else {
      EvernoteAuth auth = new EvernoteAuth(EvernoteService.SANDBOX, token);
View Full Code Here

TOP

Related Classes of com.evernote.edam.userstore.AuthenticationResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.