diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/view/windows/InfoDisplayMessage.java b/src/main/java/org/gcube/portlets/user/workspace/client/view/windows/InfoDisplayMessage.java index c2678a3..4e8b793 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/client/view/windows/InfoDisplayMessage.java +++ b/src/main/java/org/gcube/portlets/user/workspace/client/view/windows/InfoDisplayMessage.java @@ -22,6 +22,8 @@ public class InfoDisplayMessage extends InfoDisplay { * message title * @param text * message text + * @param milliseconds + * milliseconds */ public InfoDisplayMessage(String title, String text, int milliseconds) { super(title, text, milliseconds); diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/workspace/GWTProperties.java b/src/main/java/org/gcube/portlets/user/workspace/client/workspace/GWTProperties.java index b2e9333..9a71273 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/client/workspace/GWTProperties.java +++ b/src/main/java/org/gcube/portlets/user/workspace/client/workspace/GWTProperties.java @@ -10,35 +10,33 @@ import java.util.Map.Entry; import com.google.gwt.user.client.rpc.IsSerializable; - /** * @author Federico De Faveri defaveriAtisti.cnr.it * */ public class GWTProperties implements IsSerializable { - + protected String id; - - - /** - * workaround for GWT issue 2862 - */ + protected List properties; - public GWTProperties() - {} - + public GWTProperties() { + } + /** + * * @param id - * @param properties + * Id + * @param mapProperties + * map properties */ public GWTProperties(String id, Map mapProperties) { this.id = id; - + this.properties = new LinkedList(); - - //workaround for GWT issue 2862 - for (Entry entry :mapProperties.entrySet()){ + + // workaround for GWT issue 2862 + for (Entry entry : mapProperties.entrySet()) { properties.add(new Data(entry.getKey(), entry.getValue())); } } @@ -49,21 +47,20 @@ public class GWTProperties implements IsSerializable { } public String getMetaData(String metaDataId) { - - for (Data data :properties){ - if (data.getKey().equals(metaDataId)) return data.value; + + for (Data data : properties) { + if (data.getKey().equals(metaDataId)) + return data.value; } return null; } + - /** - * workaround for GWT issue 2862 - */ - protected class Data{ - + protected class Data { + protected String key; protected String value; - + protected Data(String key, String value) { this.key = key; this.value = value; @@ -82,8 +79,7 @@ public class GWTProperties implements IsSerializable { public String getValue() { return value; } - - + } } diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/workspace/GWTUser.java b/src/main/java/org/gcube/portlets/user/workspace/client/workspace/GWTUser.java index c06a1a5..fd212c2 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/client/workspace/GWTUser.java +++ b/src/main/java/org/gcube/portlets/user/workspace/client/workspace/GWTUser.java @@ -16,10 +16,7 @@ public class GWTUser implements IsSerializable, Comparable { public GWTUser(){} - /** - * @param id - * @param portaLogin - */ + public GWTUser(String id, String portaLogin) { this.id = id; this.portaLogin = portaLogin; diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/workspace/folder/item/gcube/GWTDocument.java b/src/main/java/org/gcube/portlets/user/workspace/client/workspace/folder/item/gcube/GWTDocument.java index 59fec34..7165aa8 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/client/workspace/folder/item/gcube/GWTDocument.java +++ b/src/main/java/org/gcube/portlets/user/workspace/client/workspace/folder/item/gcube/GWTDocument.java @@ -29,19 +29,7 @@ public class GWTDocument extends GWTInfoObject implements IsSerializable { public GWTDocument() {} - /** - * @param creationTime - * @param id - * @param properties - * @param name - * @param owner - * @param description - * @param lastModificationTime - * @param lastAction - * @param parent - * @param oid - * @param bridge - */ + public GWTDocument(Date creationTime, String id, GWTProperties properties, String name, String owner, String description, Date lastModificationTime, GWTWorkspaceItemAction lastAction, GWTWorkspaceFolder parent, long length, String oid, String mimeType, Map metadata, Map annotation,