projects
/
pithos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2487135
)
Add a uri property to the JSON representation for files, for completeness.
author
pastith
<devnull@localhost>
Tue, 21 Apr 2009 13:50:19 +0000
(13:50 +0000)
committer
pastith
<devnull@localhost>
Tue, 21 Apr 2009 13:50:19 +0000
(13:50 +0000)
gss/src/gr/ebs/gss/server/rest/FilesHandler.java
patch
|
blob
|
history
diff --git
a/gss/src/gr/ebs/gss/server/rest/FilesHandler.java
b/gss/src/gr/ebs/gss/server/rest/FilesHandler.java
index
6a65f52
..
b29eccb
100644
(file)
--- a/
gss/src/gr/ebs/gss/server/rest/FilesHandler.java
+++ b/
gss/src/gr/ebs/gss/server/rest/FilesHandler.java
@@
-1687,6
+1687,7
@@
public class FilesHandler extends RequestHandler {
put("readForAll", file.isReadForAll()).
put("tags", file.getTags()).
put("path",URLEncoder.encode(file.getFolder().getPath(),"UTF-8")).
+ put("uri", file.getURI()).
put("deleted", file.isDeleted());
JSONObject j = new JSONObject();
j.put("uri", file.getFolder().getURI()).