Package com.logicaldoc.dropbox
Class DropboxServiceImpl
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.jakarta.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.jakarta.RemoteServiceServlet
com.logicaldoc.dropbox.DropboxServiceImpl
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.RemoteService,- com.google.gwt.user.server.rpc.SerializationPolicyProvider,- DropboxService,- jakarta.servlet.Servlet,- jakarta.servlet.ServletConfig,- Serializable
public class DropboxServiceImpl
extends com.google.gwt.user.server.rpc.jakarta.RemoteServiceServlet
implements DropboxService
Implementation of the DropboxService
- Since:
- 7.0
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.logicaldoc.gui.frontend.client.dropbox.DropboxServiceDropboxService.Instance
- 
Field SummaryFields inherited from class jakarta.servlet.http.HttpServletLEGACY_DO_HEAD
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanExports documents and folders into DropboxfinishAuthorization(String authorizationCode) Ends the authorization code and saves the access token in the databaseintimportDocuments(long targetFolder, List<String> paths) booleanChecks if the user has connected the LogicalDOC application to his Dropbox accountSave the settings used by the Dropbox modulevoidsaveSettings(String apiKey, String apiSecret) Save the settings used by the Dropbox APIStarts the authorization process and returns the Dropbox authorization page URL to be shown to the userstatic SessionvalidateSession(jakarta.servlet.http.HttpServletRequest request) Methods inherited from class com.google.gwt.user.server.rpc.jakarta.RemoteServiceServletgetSerializationPolicy, init, processCall, processCall, processPostMethods inherited from class com.google.gwt.user.server.rpc.jakarta.AbstractRemoteServiceServletdoPostMethods inherited from class jakarta.servlet.http.HttpServletserviceMethods inherited from class jakarta.servlet.GenericServletdestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
- 
Constructor Details- 
DropboxServiceImplpublic DropboxServiceImpl()
 
- 
- 
Method Details- 
validateSessionpublic static Session validateSession(jakarta.servlet.http.HttpServletRequest request) throws InvalidSessionServerException - Throws:
- InvalidSessionServerException
 
- 
isConnectedDescription copied from interface:DropboxServiceChecks if the user has connected the LogicalDOC application to his Dropbox account- Specified by:
- isConnectedin interface- DropboxService
- Returns:
- if the account has been connected
- Throws:
- ServerException- an error happened in the server application
 
- 
startAuthorizationDescription copied from interface:DropboxServiceStarts the authorization process and returns the Dropbox authorization page URL to be shown to the user- Specified by:
- startAuthorizationin interface- DropboxService
- Returns:
- the authorization token
- Throws:
- ServerException- an error happened in the server application
 
- 
finishAuthorizationDescription copied from interface:DropboxServiceEnds the authorization code and saves the access token in the database- Specified by:
- finishAuthorizationin interface- DropboxService
- Parameters:
- authorizationCode- the authorization code
- Returns:
- returned value
- Throws:
- ServerException- an error happened in the server application
 
- 
exportDocumentspublic boolean exportDocuments(String targetPath, List<Long> folderIds, List<Long> docIds) throws ServerException Description copied from interface:DropboxServiceExports documents and folders into Dropbox- Specified by:
- exportDocumentsin interface- DropboxService
- Parameters:
- targetPath- the target path in Dropbox (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 export has been successful
- Throws:
- ServerException- an error happened in the server application
 
- 
importDocuments- Specified by:
- importDocumentsin interface- DropboxService
- Throws:
- ServerException
 
- 
saveSettingsDescription copied from interface:DropboxServiceSave the settings used by the Dropbox API- Specified by:
- saveSettingsin interface- DropboxService
- Parameters:
- apiKey- identifier of the client
- apiSecret- the secret key specified by he user
- Throws:
- ServerException- an error happened in the server application
 
- 
loadSettingsDescription copied from interface:DropboxServiceSave the settings used by the Dropbox module- Specified by:
- loadSettingsin interface- DropboxService
- Returns:
- apiKey, apiSecret
- Throws:
- ServerException- an error happened in the server application
 
 
-