Revision 895035a2 gss/src/gr/ebs/gss/client/FileUploadDialog.java
b/gss/src/gr/ebs/gss/client/FileUploadDialog.java | ||
---|---|---|
19 | 19 |
package gr.ebs.gss.client; |
20 | 20 |
|
21 | 21 |
import gr.ebs.gss.client.FileMenu.Images; |
22 |
import gr.ebs.gss.client.rest.AbstractRestCommand;
|
|
23 |
import gr.ebs.gss.client.rest.ExecuteGet;
|
|
24 |
import gr.ebs.gss.client.rest.ExecutePost;
|
|
22 |
import gr.ebs.gss.client.rest.RestCommand; |
|
23 |
import gr.ebs.gss.client.rest.GetCommand;
|
|
24 |
import gr.ebs.gss.client.rest.PostCommand;
|
|
25 | 25 |
import gr.ebs.gss.client.rest.RestException; |
26 | 26 |
import gr.ebs.gss.client.rest.resource.FileResource; |
27 | 27 |
import gr.ebs.gss.client.rest.resource.FolderResource; |
... | ... | |
190 | 190 |
} else |
191 | 191 |
apath = selectedFile.getUri(); |
192 | 192 |
form.setAction(apath); |
193 |
String dateString = AbstractRestCommand.getDate();
|
|
193 |
String dateString = RestCommand.getDate(); |
|
194 | 194 |
String resource = apath.substring(GSS.GSS_REST_PATH.length() - 1, apath.length()); |
195 |
String sig = AbstractRestCommand.calculateSig("POST", dateString, resource, AbstractRestCommand.base64decode(GSS.get().getToken()));
|
|
195 |
String sig = RestCommand.calculateSig("POST", dateString, resource, RestCommand.base64decode(GSS.get().getToken()));
|
|
196 | 196 |
date.setValue(dateString); |
197 | 197 |
auth.setValue(GSS.get().getCurrentUserResource().getUsername() + " " + sig); |
198 | 198 |
GWT.log("FolderPATH:" + folder.getUri(), null); |
... | ... | |
400 | 400 |
if (!apath.endsWith("/")) |
401 | 401 |
apath = apath + "/"; |
402 | 402 |
apath = apath + URL.encodeComponent(fileNameToUse) + "?progress=" + fileNameToUse; |
403 |
ExecuteGet eg = new ExecuteGet<UploadStatusResource>(UploadStatusResource.class, apath, false) {
|
|
403 |
GetCommand eg = new GetCommand<UploadStatusResource>(UploadStatusResource.class, apath, false) {
|
|
404 | 404 |
|
405 | 405 |
@Override |
406 | 406 |
public void onComplete() { |
... | ... | |
445 | 445 |
private void updateTrashedFile(String newName, FileResource trashedFile) { |
446 | 446 |
JSONObject json = new JSONObject(); |
447 | 447 |
json.put("name", new JSONString(newName)); |
448 |
ExecutePost cf = new ExecutePost(trashedFile.getUri() + "?update=", json.toString(), 200) {
|
|
448 |
PostCommand cf = new PostCommand(trashedFile.getUri() + "?update=", json.toString(), 200) {
|
|
449 | 449 |
|
450 | 450 |
@Override |
451 | 451 |
public void onComplete() { |
Also available in: Unified diff