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
    • Method Detail

      • exportDocuments

        boolean 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
      • importDocuments

        int importDocuments​(long targetFolder,
                            String[] folderCompositeIds,
                            String[] documentIds)
                     throws ServerException
        Exports 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
      • upload

        String 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
      • delete

        void 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
      • checkin

        GUIDocument 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