Add a uri property to the JSON representation for files, for completeness.
authorpastith <devnull@localhost>
Tue, 21 Apr 2009 13:50:19 +0000 (13:50 +0000)
committerpastith <devnull@localhost>
Tue, 21 Apr 2009 13:50:19 +0000 (13:50 +0000)
gss/src/gr/ebs/gss/server/rest/FilesHandler.java

index 6a65f52..b29eccb 100644 (file)
@@ -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()).