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 TypeMethodDescriptionvoidconnect(com.google.api.client.auth.oauth2.Credential credential) Connects to remote APIbooleanChecks if the client is connected to the remote APIstatic com.logicaldoc.core.generic.GenericloadSettings(String name)
-
Method Details
-
loadSettings
public static com.logicaldoc.core.generic.Generic loadSettings(String name) throws com.logicaldoc.core.PersistenceException - Throws:
com.logicaldoc.core.PersistenceException
-
getUserName
-
getAccessToken
-
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
-