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 SummaryModifier 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- 
loadSettingspublic static com.logicaldoc.core.generic.Generic loadSettings(String name) throws com.logicaldoc.core.PersistenceException - Throws:
- com.logicaldoc.core.PersistenceException
 
- 
getUserName
- 
getAccessToken
- 
getRefreshToken
- 
connectpublic void connect(com.google.api.client.auth.oauth2.Credential credential) Connects to remote API- Parameters:
- credential- the credentials to use
 
- 
isConnectedpublic boolean isConnected()Checks if the client is connected to the remote API- Returns:
- true only if it is connected
 
 
-