Interface GoogleService
- All Superinterfaces:
- com.google.gwt.user.client.rpc.RemoteService
@RemoteServiceRelativePath("google")
public interface GoogleService
extends com.google.gwt.user.client.rpc.RemoteService
The client side stub for the Google Service.
- Since:
- 7.3
- Author:
- Marco Meschieri - LogicalDOC
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionPerforms the check-in of a Google Drives's document into the LogicalDOC repositoryCreates a new Google DocumentvoidDeletes a document in Google DrivevoidenableCalendar(boolean enable) Enables or disables the connection with Google CalendarexportDocuments(List<Long> ids) Exports a selection of documents from LogicalDOC into GoogleDocsvoidimportDocuments(List<String> resourceIds, long targetFolderId, String format) Imports some Google documents into LogicalDOCloadSettings(String name) Save the settings used by the Google Drive modulesaveSettings(String name, String clientId, String clientSecret) Save the settings used by the Google APISearch in documents into Google DrivevoidSynchronizes the user's calendar with it's external oneupload(long docId) Uploads a document to Google Drive
- 
Method Details- 
uploadUploads a document to Google Drive- Parameters:
- docId- ID of the document to upload
- Returns:
- The resourceId of the uploaded document
- Throws:
- ServerException- an error happened in the server application
 
- 
deleteDeletes a document in Google Drive- Parameters:
- resourceId- ID of the document to delete
- Throws:
- ServerException- an error happened in the server applications
 
- 
checkinPerforms the check-in of a Google Drives's document into the LogicalDOC repository- Parameters:
- docId- ID of the document to update
- comment- The comment left for the checkin
- major- If this is a major or minor release
- Returns:
- The checked-in document
- Throws:
- ServerException- an error happened in the server application
 
- 
importDocumentsvoid importDocuments(List<String> resourceIds, long targetFolderId, String format) throws ServerException Imports some Google documents into LogicalDOC- Parameters:
- resourceIds- IDs of the documents to import
- targetFolderId- ID of the import folder
- format- The type of the documents
- Throws:
- ServerException- an error happened in the server application
 
- 
exportDocumentsExports a selection of documents from LogicalDOC into GoogleDocs- Parameters:
- ids- The ids of the document to be exported
- Returns:
- The list of the imported documents into Google Drive
- Throws:
- ServerException- an error happened in the server application
 
- 
saveSettingsSave the settings used by the Google API- Parameters:
- name- the Google configuration name
- clientId- identifier of the client
- clientSecret- the secret key specified by he user
- Returns:
- The URL of the consent page
- Throws:
- ServerException- an error happened in the server application
 
- 
loadSettingsSave the settings used by the Google Drive module- Parameters:
- name- the Google configuration name
- Returns:
- clientId, clientSecret, calendar enabled
- Throws:
- ServerException- an error happened in the server application
 
- 
createCreates a new Google Document- Parameters:
- fileName- name of the file to create
- Returns:
- The newly created document's ID in Google Drive
- Throws:
- ServerException- an error happened in the server application
 
- 
searchSearch in documents into Google Drive- Parameters:
- expression- the expression to search
- Returns:
- the found hits
- Throws:
- ServerException- an error happened in the server application
 
- 
synchronizeCalendarSynchronizes the user's calendar with it's external one- Throws:
- ServerException- an error happened in the server application
 
- 
enableCalendarEnables or disables the connection with Google Calendar- Throws:
- ServerException- an error happened in the server application
 
 
-