Interface ZohoService
- All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
@RemoteServiceRelativePath("zoho")
public interface ZohoService
extends com.google.gwt.user.client.rpc.RemoteService
The client side stub for the Zoho Service.
- Since:
- 7.5.2
- Author:
- Marco Meschieri - LogicalDOC
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionPerforms the check-in of a Zoho's document into the LogicalDOC repositoryvoid
Deletes a document in Zohoboolean
Exports documents and folders into Zohoint
importDocuments
(long targetFolder, List<String> folderCompositeIds, List<String> documentIds) Exports documents and folders from Zoho into LogicalDOCSave the settings used by the Zoho modulesaveSettings
(String clientId, String clientSecret) Save the settings used by the Zoho moduleupload
(long docId) Uploads a document to Zoho.
-
Method Details
-
saveSettings
Save the settings used by the Zoho 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 Zoho module- Returns:
- clientId, clientSecret
- Throws:
ServerException
- an error happened in the server application
-
exportDocuments
boolean exportDocuments(String targetFolderId, List<Long> folderIds, List<Long> docIds) throws ServerException Exports documents and folders into Zoho- Parameters:
targetFolderId
- the target path in Zoho (must be a folder)folderIds
- Ids of the folders to be imported (all subfolders and docs will be imported as welldocIds
- Ids of the documents to be imported- Returns:
- true if the import was successful
- Throws:
ServerException
- error in the server application
-
importDocuments
int importDocuments(long targetFolder, List<String> folderCompositeIds, List<String> documentIds) throws ServerException Exports documents and folders from Zoho into LogicalDOC- Parameters:
targetFolder
- ID of the root folder that will receive the imported elementsfolderCompositeIds
- array of the identifiers of the Zoho folder each one is a tokenized string folder_name:folder_iddocumentIds
- identifiers of the documents in Zoho to be imported- Returns:
- number of imported files
- Throws:
ServerException
- error in the server application
-
upload
Uploads a document to Zoho.- Parameters:
docId
- ID of the document to upload- Returns:
- The resourceId of the uploaded document
- Throws:
ServerException
- error in the server application
-
delete
Deletes a document in Zoho- Parameters:
resourceId
- identifier of the document to delete- Throws:
ServerException
- error in the server application
-
checkin
Performs the check-in of a Zoho's document into the LogicalDOC repository- Parameters:
docId
- identifier 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
- error in the server application
-