Interface ZohoService
- 
- All Superinterfaces:
- com.google.gwt.user.client.rpc.RemoteService
 
 @RemoteServiceRelativePath("zoho") public interface ZohoService extends com.google.gwt.user.client.rpc.RemoteServiceThe client side stub for the Zoho Service.- Since:
- 7.5.2
- Author:
- Marco Meschieri - LogicalDOC
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classZohoService.Instance
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description GUIDocumentcheckin(long docId, String comment, boolean major)Performs the check-in of a Zoho's document into the LogicalDOC repositoryvoiddelete(String resourceId)Deletes a document in ZohobooleanexportDocuments(String targetFolderId, long[] folderIds, long[] docIds)Exports documents and folders into ZohointimportDocuments(long targetFolder, String[] folderCompositeIds, String[] documentIds)Exports documents and folders from Zoho into LogicalDOCString[]loadSettings()Save the settings used by the Zoho moduleStringsaveSettings(String clientId, String clientSecret)Save the settings used by the Zoho moduleStringupload(long docId)Uploads a document to Zoho.
 
- 
- 
- 
Method Detail- 
saveSettingsString saveSettings(String clientId, String clientSecret) throws ServerException Save the settings used by the Zoho module- Parameters:
- 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
 
 - 
loadSettingsString[] loadSettings() throws ServerException Save the settings used by the Zoho module- Returns:
- clientId, clientSecret
- Throws:
- ServerException- an error happened in the server application
 
 - 
exportDocumentsboolean exportDocuments(String targetFolderId, long[] folderIds, 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 well
- docIds- Ids of the documents to be imported
- Returns:
- true if the import was successful
- Throws:
- ServerException- error in the server application
 
 - 
importDocumentsint importDocuments(long targetFolder, String[] folderCompositeIds, String[] documentIds) throws ServerExceptionExports documents and folders from Zoho into LogicalDOC- Parameters:
- targetFolder- ID of the root folder that will receive the imported elements
- folderCompositeIds- array of the identifiers of the Zoho folder each one is a tokenized string folder_name:folder_id
- documentIds- identifiers of the documents in Zoho to be imported
- Returns:
- number of imported files
- Throws:
- ServerException- error in the server application
 
 - 
uploadString upload(long docId) throws ServerException 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
 
 - 
deletevoid delete(String resourceId) throws ServerException Deletes a document in Zoho- Parameters:
- resourceId- identifier of the document to delete
- Throws:
- ServerException- error in the server application
 
 - 
checkinGUIDocument checkin(long docId, String comment, boolean major) throws ServerException Performs the check-in of a Zoho's document into the LogicalDOC repository- Parameters:
- docId- identifier 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- error in the server application
 
 
- 
 
-