Revision 895035a2 gss/src/gr/ebs/gss/client/FilePropertiesDialog.java
b/gss/src/gr/ebs/gss/client/FilePropertiesDialog.java | ||
---|---|---|
18 | 18 |
*/ |
19 | 19 |
package gr.ebs.gss.client; |
20 | 20 |
|
21 |
import gr.ebs.gss.client.rest.ExecuteGet;
|
|
22 |
import gr.ebs.gss.client.rest.ExecutePost;
|
|
21 |
import gr.ebs.gss.client.rest.GetCommand;
|
|
22 |
import gr.ebs.gss.client.rest.PostCommand;
|
|
23 | 23 |
import gr.ebs.gss.client.rest.RestException; |
24 | 24 |
import gr.ebs.gss.client.rest.resource.FileResource; |
25 | 25 |
import gr.ebs.gss.client.rest.resource.GroupResource; |
... | ... | |
362 | 362 |
* @param userId |
363 | 363 |
*/ |
364 | 364 |
private void updateTags() { |
365 |
ExecuteGet<TagsResource> tc = new ExecuteGet<TagsResource>(TagsResource.class, GSS.get().getCurrentUserResource().getTagsPath()) {
|
|
365 |
GetCommand<TagsResource> tc = new GetCommand<TagsResource>(TagsResource.class, GSS.get().getCurrentUserResource().getTagsPath()) {
|
|
366 | 366 |
|
367 | 367 |
public void onComplete() { |
368 | 368 |
allTagsContent.clear(); |
... | ... | |
463 | 463 |
GWT.log("NO CHANGES", null); |
464 | 464 |
return; |
465 | 465 |
} |
466 |
ExecutePost cf = new ExecutePost(file.getUri() + "?update=", jsonString, 200) {
|
|
466 |
PostCommand cf = new PostCommand(file.getUri() + "?update=", jsonString, 200) {
|
|
467 | 467 |
|
468 | 468 |
public void onComplete() { |
469 | 469 |
GSS.get().getFileList().updateFileCache(true, false /* do not clear selected file*/); |
... | ... | |
496 | 496 |
JSONObject json = new JSONObject(); |
497 | 497 |
json.put("versioned", JSONBoolean.getInstance(false)); |
498 | 498 |
GWT.log(json.toString(), null); |
499 |
ExecutePost cf = new ExecutePost(file.getUri() + "?update=", json.toString(), 200) {
|
|
499 |
PostCommand cf = new PostCommand(file.getUri() + "?update=", json.toString(), 200) {
|
|
500 | 500 |
|
501 | 501 |
public void onComplete() { |
502 | 502 |
toggleVersioned(true); |
... | ... | |
527 | 527 |
JSONObject json = new JSONObject(); |
528 | 528 |
json.put("versioned", JSONBoolean.getInstance(versionedValue)); |
529 | 529 |
GWT.log(json.toString(), null); |
530 |
ExecutePost cf = new ExecutePost(file.getUri() + "?update=", json.toString(), 200) {
|
|
530 |
PostCommand cf = new PostCommand(file.getUri() + "?update=", json.toString(), 200) {
|
|
531 | 531 |
|
532 | 532 |
public void onComplete() { |
533 | 533 |
GSS.get().getFileList().updateFileCache(true, false /* do not clear selected file*/); |
Also available in: Unified diff