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 Summary

    Modifier and Type
    Method
    Description
    abstract void
    connect(com.google.api.client.auth.oauth2.Credential credential)
    Connects to remote API
    long
     
    abstract boolean
    Checks if the client is connected to the remote API
    static com.logicaldoc.core.generic.Generic
    loadSettings(long userId)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • loadSettings

      public static com.logicaldoc.core.generic.Generic loadSettings(long userId) throws com.logicaldoc.core.PersistenceException
      Throws:
      com.logicaldoc.core.PersistenceException
    • getUserId

      public long getUserId()
    • connect

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

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