org.springframework.social.evernote.api.impl
Class EvernoteTemplate

java.lang.Object
  extended by org.springframework.social.evernote.api.impl.EvernoteTemplate
All Implemented Interfaces:
org.springframework.social.ApiBinding, Evernote

public class EvernoteTemplate
extends Object
implements Evernote

API Binding implementation for Evernote.

Author:
Tadaya Tsuyukubo

Constructor Summary
EvernoteTemplate(com.evernote.auth.EvernoteService evernoteService, EvernoteOAuthToken accessToken)
           
EvernoteTemplate(com.evernote.auth.EvernoteService evernoteService, String accessToken)
           
EvernoteTemplate(com.evernote.auth.EvernoteService evernoteService, String token, String noteStoreUrl, String webApiUrlPrefix, int userId)
           
EvernoteTemplate(com.evernote.auth.EvernoteService evernoteService, String token, String noteStoreUrl, String webApiUrlPrefix, String userId)
           
 
Method Summary
 com.evernote.clients.BusinessNoteStoreClient businessNoteStoreClient()
          Retrieve BusinessNoteStoreClient instance from underlying ClientFactory.
 BusinessNoteStoreOperations businessNoteStoreOperations()
          API for performing operations on BusinessNoteStoreClient.
 com.evernote.clients.ClientFactory clientFactory()
          Returns underlying ClientFactory instance.
 boolean isAuthorized()
           
 com.evernote.clients.LinkedNoteStoreClient linkedNoteStoreClient(com.evernote.edam.type.LinkedNotebook linkedNotebook)
          Retrieve LinkedNoteStoreClient instance from underlying ClientFactory.
 LinkedNoteStoreOperations linkedNoteStoreOperations(com.evernote.edam.type.LinkedNotebook linkedNotebook)
          API for performing operations on LinkedNoteStoreClient.
 com.evernote.clients.NoteStoreClient noteStoreClient()
          Retrieve NoteStoreClient instance from underlying ClientFactory.
 NoteStoreOperations noteStoreOperations()
          API for performing operations on NoteStoreClient.
 void setApplyNullSafe(boolean applyNullSafe)
          Set to false not to make a proxy for thrift object for null safe collections.
 com.evernote.clients.UserStoreClient userStoreClient()
          Retrieve UserStoreClient instance from underlying ClientFactory.
 UserStoreOperations userStoreOperations()
          API for performing operations on UserStoreClient.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvernoteTemplate

public EvernoteTemplate(com.evernote.auth.EvernoteService evernoteService,
                        String accessToken)

EvernoteTemplate

public EvernoteTemplate(com.evernote.auth.EvernoteService evernoteService,
                        String token,
                        String noteStoreUrl,
                        String webApiUrlPrefix,
                        String userId)

EvernoteTemplate

public EvernoteTemplate(com.evernote.auth.EvernoteService evernoteService,
                        String token,
                        String noteStoreUrl,
                        String webApiUrlPrefix,
                        int userId)

EvernoteTemplate

public EvernoteTemplate(com.evernote.auth.EvernoteService evernoteService,
                        EvernoteOAuthToken accessToken)
Method Detail

clientFactory

public com.evernote.clients.ClientFactory clientFactory()
Description copied from interface: Evernote
Returns underlying ClientFactory instance.

Specified by:
clientFactory in interface Evernote
Returns:
ClientFactory instance.

businessNoteStoreClient

public com.evernote.clients.BusinessNoteStoreClient businessNoteStoreClient()
                                                                     throws EvernoteException
Description copied from interface: Evernote
Retrieve BusinessNoteStoreClient instance from underlying ClientFactory.

When checked exception has thrown while creating BusinessNoteStoreClient, it will be converted to EvernoteException which is an unchecked exception.

Specified by:
businessNoteStoreClient in interface Evernote
Returns:
BusinessNoteStoreClient instance.
Throws:
EvernoteException - encapsulating thrown checked exception.

linkedNoteStoreClient

public com.evernote.clients.LinkedNoteStoreClient linkedNoteStoreClient(com.evernote.edam.type.LinkedNotebook linkedNotebook)
                                                                 throws EvernoteException
Description copied from interface: Evernote
Retrieve LinkedNoteStoreClient instance from underlying ClientFactory.

When checked exception has thrown while creating LinkedNoteStoreClient, it will be converted to EvernoteException which is an unchecked exception.

Specified by:
linkedNoteStoreClient in interface Evernote
Returns:
LinkedNoteStoreClient instance.
Throws:
EvernoteException - encapsulating thrown checked exception.

noteStoreClient

public com.evernote.clients.NoteStoreClient noteStoreClient()
                                                     throws EvernoteException
Description copied from interface: Evernote
Retrieve NoteStoreClient instance from underlying ClientFactory.

When checked exception has thrown while creating NoteStoreClient, it will be converted to EvernoteException which is an unchecked exception.

Specified by:
noteStoreClient in interface Evernote
Returns:
NoteStoreClient instance.
Throws:
EvernoteException - encapsulating thrown checked exception.

userStoreClient

public com.evernote.clients.UserStoreClient userStoreClient()
                                                     throws EvernoteException
Description copied from interface: Evernote
Retrieve UserStoreClient instance from underlying ClientFactory.

When checked exception has thrown while creating UserStoreClient, it will be converted to EvernoteException which is an unchecked exception.

Specified by:
userStoreClient in interface Evernote
Returns:
UserStoreClient instance.
Throws:
EvernoteException - encapsulating thrown checked exception.

businessNoteStoreOperations

public BusinessNoteStoreOperations businessNoteStoreOperations()
Description copied from interface: Evernote
API for performing operations on BusinessNoteStoreClient.

Specified by:
businessNoteStoreOperations in interface Evernote
Returns:
operations for BusinessNoteStoreClient.

linkedNoteStoreOperations

public LinkedNoteStoreOperations linkedNoteStoreOperations(com.evernote.edam.type.LinkedNotebook linkedNotebook)
Description copied from interface: Evernote
API for performing operations on LinkedNoteStoreClient.

Specified by:
linkedNoteStoreOperations in interface Evernote
Returns:
operations for LinkedNoteStoreClient.

noteStoreOperations

public NoteStoreOperations noteStoreOperations()
Description copied from interface: Evernote
API for performing operations on NoteStoreClient.

Specified by:
noteStoreOperations in interface Evernote
Returns:
operations for NoteStoreClient.

userStoreOperations

public UserStoreOperations userStoreOperations()
                                        throws EvernoteException
Description copied from interface: Evernote
API for performing operations on UserStoreClient.

Specified by:
userStoreOperations in interface Evernote
Returns:
operations for UserStoreClient.
Throws:
EvernoteException - converted unchecked exception.

isAuthorized

public boolean isAuthorized()
Specified by:
isAuthorized in interface org.springframework.social.ApiBinding

setApplyNullSafe

public void setApplyNullSafe(boolean applyNullSafe)
Description copied from interface: Evernote
Set to false not to make a proxy for thrift object for null safe collections.

Default is true.

Specified by:
setApplyNullSafe in interface Evernote
Parameters:
applyNullSafe - set false to disable ThriftWrapper


Copyright © 2014. All Rights Reserved.