Class GoogleClient

java.lang.Object
com.logicaldoc.google.GoogleClient
Direct Known Subclasses:
CalendarClient, DriveClient

public abstract class GoogleClient extends Object
A generic client of the Google API
Author:
Marco Meschieri - LogicalDOC
  • Method Details

    • loadSettings

      public static com.logicaldoc.core.generic.Generic loadSettings(String name) throws com.logicaldoc.core.PersistenceException
      Throws:
      com.logicaldoc.core.PersistenceException
    • getUserName

      public String getUserName()
    • getAccessToken

      public String getAccessToken()
    • getRefreshToken

      public String getRefreshToken()
    • connect

      public void connect(com.google.api.client.auth.oauth2.Credential credential)
      Connects to remote API
      Parameters:
      credential - the credentials to use
    • isConnected

      public boolean isConnected()
      Checks if the client is connected to the remote API
      Returns:
      true only if it is connected