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.RemoteServiceThe client side stub for the Dropbox Service.- Since:
 - 7.0
 - Author:
 - Marco Meschieri - LogicalDOC
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDropboxService.Instance 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanexportDocuments(String targetPath, long[] folderIds, long[] docIds)Exports documents and folders into DropboxStringfinishAuthorization(String authorizationCode)Ends the authorization code and saves the access token in the databaseintimportDocuments(long targetFolder, String[] paths)booleanisConnected()Checks if the user has connected the LogicalDOC application to his Dropbox accountStringstartAuthorization()Starts the authorization process and returns the Dropbox authorization page URL to be shown to the user 
 - 
 
- 
- 
Method Detail
- 
isConnected
boolean isConnected() throws ServerExceptionChecks 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
 
- 
startAuthorization
String startAuthorization() throws ServerException
Starts 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
 
- 
finishAuthorization
String finishAuthorization(String authorizationCode) throws ServerException
Ends 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
 
- 
exportDocuments
boolean exportDocuments(String targetPath, long[] folderIds, 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 welldocIds- 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
int importDocuments(long targetFolder, String[] paths) throws ServerException- Throws:
 ServerException
 
 - 
 
 -