Object selection = app.getCurrentSelection();\r
if (selection != null && selection instanceof FileResource) {\r
FileResource file = (FileResource) selection;\r
+ return getDownloadURL(file);\r
+ }\r
+ return "";\r
+ }\r
+\r
+ public String getDownloadURL(FileResource file) {\r
+ GSS app = GSS.get();\r
+ if (file != null) {\r
String dateString = RestCommand.getDate();\r
String resource = file.getUri().substring(app.getApiPath().length()-1,file.getUri().length());\r
String sig = app.getCurrentUserResource().getUsername()+" "+RestCommand.calculateSig("GET", dateString, resource, RestCommand.base64decode(app.getToken()));\r