Class GDriveServiceImpl

  • All Implemented Interfaces:
    com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, com.logicaldoc.gui.frontend.client.services.GDriveService, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class GDriveServiceImpl
    extends com.google.gwt.user.server.rpc.RemoteServiceServlet
    implements com.logicaldoc.gui.frontend.client.services.GDriveService
    Implementation of GDriveService
    Since:
    7.3
    Author:
    Marco Meschieri - LogicalDOC
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.logicaldoc.gui.frontend.client.services.GDriveService

        com.logicaldoc.gui.frontend.client.services.GDriveService.Instance
    • Constructor Detail

      • GDriveServiceImpl

        public GDriveServiceImpl()
    • Method Detail

      • upload

        public String upload​(long docId)
                      throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        upload in interface com.logicaldoc.gui.frontend.client.services.GDriveService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • delete

        public void delete​(String fileId)
                    throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        delete in interface com.logicaldoc.gui.frontend.client.services.GDriveService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • importDocuments

        public void importDocuments​(String[] resourceIds,
                                    long targetFolderId,
                                    String format)
                             throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        importDocuments in interface com.logicaldoc.gui.frontend.client.services.GDriveService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • exportDocuments

        public String[] exportDocuments​(long[] ids)
                                 throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        exportDocuments in interface com.logicaldoc.gui.frontend.client.services.GDriveService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • search

        public com.logicaldoc.gui.common.client.beans.GUIDocument[] search​(String expression)
                                                                    throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        search in interface com.logicaldoc.gui.frontend.client.services.GDriveService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • loadSettings

        public String[] loadSettings()
                              throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        loadSettings in interface com.logicaldoc.gui.frontend.client.services.GDriveService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • saveSettings

        public String saveSettings​(String clientId,
                                   String clientSecret)
                            throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        saveSettings in interface com.logicaldoc.gui.frontend.client.services.GDriveService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • checkin

        public com.logicaldoc.gui.common.client.beans.GUIDocument checkin​(long docId,
                                                                          String comment,
                                                                          boolean major)
                                                                   throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        checkin in interface com.logicaldoc.gui.frontend.client.services.GDriveService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • create

        public String create​(String fileName)
                      throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        create in interface com.logicaldoc.gui.frontend.client.services.GDriveService
        Throws:
        com.logicaldoc.gui.common.client.ServerException