Package com.logicaldoc.google
Class GoogleClient
java.lang.Object
com.logicaldoc.google.GoogleClient
- Direct Known Subclasses:
CalendarClient
,DriveClient
A generic client of the Google API
- Author:
- Marco Meschieri - LogicalDOC
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
connect
(com.google.api.client.auth.oauth2.Credential credential) Connects to remote APIlong
abstract boolean
Checks if the client is connected to the remote APIstatic com.logicaldoc.core.generic.Generic
loadSettings
(long userId)
-
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
-