Interface DropboxService
- All Superinterfaces:
- com.google.gwt.user.client.rpc.RemoteService
- All Known Implementing Classes:
- DropboxServiceImpl
@RemoteServiceRelativePath("dropbox")
public interface DropboxService
extends com.google.gwt.user.client.rpc.RemoteService
The client side stub for the Dropbox Service.
- Since:
- 7.0
- Author:
- Marco Meschieri - LogicalDOC
- 
Nested Class SummaryNested Classes
- 
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 user
- 
Method Details- 
isConnectedChecks if the user has connected the LogicalDOC application to his Dropbox account- Returns:
- if the account has been connected
- Throws:
- ServerException- an error happened in the server application
 
- 
startAuthorizationStarts the authorization process and returns the Dropbox authorization page URL to be shown to the user- Returns:
- the authorization token
- Throws:
- ServerException- an error happened in the server application
 
- 
finishAuthorizationEnds the authorization code and saves the access token in the database- Parameters:
- authorizationCode- the authorization code
- Returns:
- returned value
- Throws:
- ServerException- an error happened in the server application
 
- 
exportDocumentsboolean exportDocuments(String targetPath, List<Long> folderIds, List<Long> docIds) throws ServerException Exports documents and folders into Dropbox- 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- Throws:
- ServerException
 
- 
saveSettingsSave the settings used by the Dropbox API- Parameters:
- apiKey- identifier of the client
- apiSecret- the secret key specified by he user
- Throws:
- ServerException- an error happened in the server application
 
- 
loadSettingsSave the settings used by the Dropbox module- Returns:
- apiKey, apiSecret
- Throws:
- ServerException- an error happened in the server application
 
 
-