Show display name in FilePropertiesDialog
[pithos-web-client] / src / gr / grnet / pithos / web / client / FilePermissionsDialog.java
index 5192a52..3cf468e 100644 (file)
@@ -144,7 +144,7 @@ public class FilePermissionsDialog extends AbstractPropertiesDialog {
     private VerticalPanel createSharingPanel() {\r
         VerticalPanel permPanel = new VerticalPanel();\r
 \r
-        permList = new PermissionsList(images, file.getPermissions(), file.getOwner(), false, new Command() {\r
+        permList = new PermissionsList(images, file.getPermissions(), file.getOwnerID(), false, new Command() {\r
                        \r
                        @Override\r
                        public void execute() {\r
@@ -240,7 +240,7 @@ public class FilePermissionsDialog extends AbstractPropertiesDialog {
     void showLinkIfShared() {\r
                if (file.isShared()) {\r
                        UrlBuilder b = Window.Location.createUrlBuilder();\r
-                       b.setPath(app.getApiPath() + file.getOwner() + file.getUri());\r
+                       b.setPath(app.getApiPath() + file.getOwnerID() + file.getUri());\r
                        String href = Window.Location.getHref();\r
                        boolean hasParameters = href.contains("?");\r
                        path.setText(href + (hasParameters ? "&" : "?") + "goto=" + b.buildString());\r
@@ -265,7 +265,7 @@ public class FilePermissionsDialog extends AbstractPropertiesDialog {
             PostRequest updateFile = new PostRequest(api, owner, path) {\r
                 @Override\r
                 public void onSuccess(Resource result) {\r
-                       HeadRequest<File> headFile = new HeadRequest<File>(File.class, app.getApiPath(), file.getOwner(), path, file) {\r
+                       HeadRequest<File> headFile = new HeadRequest<File>(File.class, app.getApiPath(), file.getOwnerID(), path, file) {\r
 \r
                                                @Override\r
                                                public void onSuccess(File _result) {\r