- * FieldVerifier validates that the name the user enters is valid.
- *
- *
- * This class is in the shared packing because we use it in both
- * the client code and on the server. On the client, we verify that the name is
- * valid before sending an RPC request so the user doesn't have to wait for a
- * network round trip to get feedback. On the server, we verify that the name is
- * correct to ensure that the input is correct regardless of where the RPC
- * originates.
- *
- *
- * When creating a class that is used on both the client and the server, be sure
- * that all code is translatable and does not use native JavaScript. Code that
- * is note translatable (such as code that interacts with a database or the file
- * system) cannot be compiled into client side JavaScript. Code that uses native
- * JavaScript (such as Widgets) cannot be run on the server.
- *
- */
-public class FieldVerifier {
-
- /**
- * Verifies that the specified name is valid for our service.
- *
- * In this example, we only require that the name is at least four
- * characters. In your application, you can use more complex checks to ensure
- * that usernames, passwords, email addresses, URLs, and other fields have the
- * proper syntax.
- *
- * @param name the name to validate
- * @return true if valid, false if invalid
- */
- public static boolean isValidName(String name) {
- if (name == null) {
- return false;
- }
- return name.length() > 3;
- }
-}
diff --git a/src/main/java/org/gcube/portlets/user/socialprofile/shared/UserSettings.java b/src/main/java/org/gcube/portlets/user/socialprofile/shared/UserSettings.java
new file mode 100644
index 0000000..de520f7
--- /dev/null
+++ b/src/main/java/org/gcube/portlets/user/socialprofile/shared/UserSettings.java
@@ -0,0 +1,56 @@
+package org.gcube.portlets.user.socialprofile.shared;
+
+import java.io.Serializable;
+
+import org.gcube.portal.databook.shared.UserInfo;
+
+@SuppressWarnings("serial")
+public class UserSettings implements Serializable {
+ private UserInfo userInfo;
+ private int refreshingTimeInMillis;
+ private String currentScope;
+ boolean isInfrastructure;
+ public UserSettings() {
+ super();
+ }
+ public UserSettings(UserInfo userInfo, int refreshingTimeInMillis,
+ String currentScope, boolean isInfrastructure) {
+ super();
+ this.userInfo = userInfo;
+ this.refreshingTimeInMillis = refreshingTimeInMillis;
+ this.currentScope = currentScope;
+ this.isInfrastructure = isInfrastructure;
+ }
+ public UserInfo getUserInfo() {
+ return userInfo;
+ }
+ public void setUserInfo(UserInfo userInfo) {
+ this.userInfo = userInfo;
+ }
+ public int getRefreshingTimeInMillis() {
+ return refreshingTimeInMillis;
+ }
+ public void setRefreshingTimeInMillis(int refreshingTimeInMillis) {
+ this.refreshingTimeInMillis = refreshingTimeInMillis;
+ }
+ public String getCurrentScope() {
+ return currentScope;
+ }
+ public void setCurrentScope(String currentScope) {
+ this.currentScope = currentScope;
+ }
+ public boolean isInfrastructure() {
+ return isInfrastructure;
+ }
+ public void setInfrastructure(boolean isInfrastructure) {
+ this.isInfrastructure = isInfrastructure;
+ }
+ @Override
+ public String toString() {
+ return "UserSettings [userInfo=" + userInfo
+ + ", refreshingTimeInMillis=" + refreshingTimeInMillis
+ + ", currentScope=" + currentScope + ", isInfrastructure="
+ + isInfrastructure + "]";
+ }
+
+}
diff --git a/src/main/resources/org/gcube/portlets/user/socialprofile/SocialProfile.gwt.xml b/src/main/resources/org/gcube/portlets/user/socialprofile/SocialProfile.gwt.xml
index ec47f27..c6b033c 100644
--- a/src/main/resources/org/gcube/portlets/user/socialprofile/SocialProfile.gwt.xml
+++ b/src/main/resources/org/gcube/portlets/user/socialprofile/SocialProfile.gwt.xml
@@ -1,15 +1,18 @@
-
-
+
+
-
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
diff --git a/src/main/webapp/SocialProfile.css b/src/main/webapp/SocialProfile.css
index e69de29..423d0fb 100644
--- a/src/main/webapp/SocialProfile.css
+++ b/src/main/webapp/SocialProfile.css
@@ -0,0 +1,28 @@
+.framed {
+ margin: 0 0 10px;
+ padding: 10px;
+ margin: 0px 5px;
+ background: #FFF url(images/vre_bg_gray.png) repeat-x left bottom;
+ border-radius: 6px !important;
+ -moz-border-radius: 6px !important;
+ -webkit-border-radius: 6px !important;
+ border: 1px solid #DBDBDB;
+}
+
+.user-photo {
+ display: block;
+ padding: 2px;
+ border: 1px solid #E6E6E6;
+}
+
+.full-name {
+ font-family: Helvetica, Arial, sans-serif;
+ font-size: 24px;
+ font-weight: bold;
+}
+
+.headline {
+ font-family: Helvetica, Arial, sans-serif;
+ font-size: 16px;
+ color: red;
+}
\ No newline at end of file
diff --git a/src/main/webapp/images/Avatar_default.png b/src/main/webapp/images/Avatar_default.png
new file mode 100644
index 0000000..2a6c844
Binary files /dev/null and b/src/main/webapp/images/Avatar_default.png differ
diff --git a/src/main/webapp/images/avatarLoader.gif b/src/main/webapp/images/avatarLoader.gif
new file mode 100644
index 0000000..4c4d825
Binary files /dev/null and b/src/main/webapp/images/avatarLoader.gif differ
diff --git a/src/main/webapp/images/vre_bg_gray.png b/src/main/webapp/images/vre_bg_gray.png
new file mode 100644
index 0000000..31cb923
Binary files /dev/null and b/src/main/webapp/images/vre_bg_gray.png differ