onModuleLoad()
.
*/
public class Pithos implements EntryPoint, ResizeHandler {
- public static final String HOME_CONTAINER = "pithos";
-
- public static final String TRASH_CONTAINER = "trash";
-
- public static final Configuration config = GWT.create(Configuration.class);
-
- public interface Style extends CssResource {
- String commandAnchor();
-
- String statistics();
-
- @ClassName("gwt-HTML")
- String html();
-
- String uploadAlert();
-
- String uploadAlertLink();
-
- String uploadAlertProgress();
-
- String uploadAlertPercent();
-
- String uploadAlertClose();
- }
-
- public interface Resources extends ClientBundle {
- @Source("Pithos.css")
- Style pithosCss();
-
- @Source("gr/grnet/pithos/resources/close-popup.png")
- ImageResource closePopup();
- }
-
- public static Resources resources = GWT.create(Resources.class);
-
- /**
- * Instantiate an application-level image bundle. This object will provide
- * programmatic access to all the images needed by widgets.
- */
- static Images images = (Images) GWT.create(Images.class);
-
- public String getUsername() {
- return username;
+ private static final boolean IsLOGEnabled = true;
+
+ public static final Configuration config = GWT.create(Configuration.class);
+
+ public interface Style extends CssResource {
+ String commandAnchor();
+
+ String statistics();
+
+ @ClassName("gwt-HTML")
+ String html();
+
+ String uploadAlert();
+
+ String uploadAlertLink();
+
+ String uploadAlertProgress();
+
+ String uploadAlertPercent();
+
+ String uploadAlertClose();
+ }
+
+ public interface Resources extends ClientBundle {
+ @Source("Pithos.css")
+ Style pithosCss();
+
+ @Source("gr/grnet/pithos/resources/close-popup.png")
+ ImageResource closePopup();
+ }
+
+ public static Resources resources = GWT.create(Resources.class);
+
+ /**
+ * Instantiate an application-level image bundle. This object will provide
+ * programmatic access to all the images needed by widgets.
+ */
+ static Images images = (Images) GWT.create(Images.class);
+
+ public String getUserID() {
+ return userID;
+ }
+
+ public UserCatalogs getUserCatalogs() {
+ return userCatalogs;
+ }
+
+ public String getCurrentUserDisplayNameOrID() {
+ final String displayName = userCatalogs.getDisplayName(getUserID());
+ return displayName == null ? getUserID() : displayName;
+ }
+
+ public boolean hasDisplayNameForUserID(String userID) {
+ return userCatalogs.getDisplayName(userID) != null;
+ }
+
+ public boolean hasIDForUserDisplayName(String userDisplayName) {
+ return userCatalogs.getID(userDisplayName) != null;
+ }
+
+ public String getDisplayNameForUserID(String userID) {
+ return userCatalogs.getDisplayName(userID);
+ }
+
+ public String getIDForUserDisplayName(String userDisplayName) {
+ return userCatalogs.getID(userDisplayName);
+ }
+
+ public List" + imageProto.getHTML() - + " | " - + caption + " |
" + imageProto.getHTML() + + " | " + + caption + " |