Use Lytebox (a Lightbox clone) for quick viewing images.
[pithos] / src / gr / ebs / gss / client / GSS.java
index 9ec087c..a8fceb3 100644 (file)
@@ -374,20 +374,6 @@ public class GSS implements EntryPoint, WindowResizeListener {
         * Parse and store the user credentials to the appropriate fields.
         */
        private void parseUserCredentials() {
-               //------------------------
-               // XXX This part is only for development environments!
-               // XXX Remove/comment for production deployment!
-               final String _username = Window.Location.getParameter("user");
-               token = Window.Location.getParameter("token");
-               if (_username != null) {
-                       DeferredCommand.addCommand(new Command() {
-                               public void execute() {
-                                       fetchUser(_username);
-                               }
-                       });
-                       return;
-               }
-               //------------------------
                Configuration conf = (Configuration) GWT.create(Configuration.class);
                String cookie = conf.authCookie();
                String auth = Cookies.getCookie(cookie);
@@ -664,6 +650,16 @@ public class GSS implements EntryPoint, WindowResizeListener {
                return statusPanel;
        }
 
+
+       /**
+        * Retrieve the userDetailsPanel.
+        *
+        * @return the userDetailsPanel
+        */
+       public UserDetailsPanel getUserDetailsPanel() {
+               return userDetailsPanel;
+       }
+
        /**
         * Retrieve the dragController.
         *
@@ -694,6 +690,15 @@ public class GSS implements EntryPoint, WindowResizeListener {
                return currentUserResource;
        }
 
+       /**
+        * Modify the currentUserResource.
+        *
+        * @param newUser the new currentUserResource
+        */
+       public void setCurrentUserResource(UserResource newUser) {
+               currentUserResource = newUser;
+       }
+
        public static native void preventIESelection() /*-{
        $doc.body.onselectstart = function () { return false; };
        }-*/;