Interface GDriveService
- All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
@RemoteServiceRelativePath("gdrive")
public interface GDriveService
extends com.google.gwt.user.client.rpc.RemoteService
The client side stub for the Google Drive Service.
- Since:
- 7.3
- Author:
- Marco Meschieri - LogicalDOC
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionPerforms the check-in of a Google Drives's document into the LogicalDOC repositoryCreates a new Google Documentvoid
Deletes a document in Google DriveexportDocuments
(List<Long> ids) Exports a selection of documents from LogicalDOC into GoogleDocsvoid
importDocuments
(List<String> resourceIds, long targetFolderId, String format) Imports some Google documents into LogicalDOCSave the settings used by the Google Drive modulesaveSettings
(String clientId, String clientSecret) Save the settings used by the Google Drive moduleSearch in documents into Google Driveupload
(long docId) Uploads a document to Google Drive
-
Method Details
-
upload
Uploads 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
-
delete
Deletes a document in Google Drive- Parameters:
resourceId
- ID of the document to delete- Throws:
ServerException
- an error happened in the server applications
-
checkin
Performs the check-in of a Google Drives's document into the LogicalDOC repository- Parameters:
docId
- ID of the document to updatecomment
- The comment left for the checkinmajor
- If this is a major or minor release- Returns:
- The checked-in document
- Throws:
ServerException
- an error happened in the server application
-
importDocuments
void importDocuments(List<String> resourceIds, long targetFolderId, String format) throws ServerException Imports some Google documents into LogicalDOC- Parameters:
resourceIds
- IDs of the documents to importtargetFolderId
- ID of the import folderformat
- The type of the documents- Throws:
ServerException
- an error happened in the server application
-
exportDocuments
Exports 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
-
saveSettings
Save the settings used by the Google Drive module- Parameters:
clientId
- identifier of the clientclientSecret
- the secret key specified by he user- Returns:
- The URL of the consent page
- Throws:
ServerException
- an error happened in the server application
-
loadSettings
Save the settings used by the Google Drive module- Returns:
- clientId, clientSecret
- Throws:
ServerException
- an error happened in the server application
-
create
Creates 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
-
search
Search in documents into Google Drive- Parameters:
expression
- the expression to search- Returns:
- the found hits
- Throws:
ServerException
- an error happened in the server application
-