ref 13226:StorageHub - Update workspace-sharing-widget to SH

https://support.d4science.org/issues/13226

Updated to StorageHub

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@177236 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2019-02-22 11:47:05 +00:00
parent 6d6b88a3eb
commit a1734b6431
4 changed files with 26 additions and 43 deletions

View File

@ -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);

View File

@ -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<Data> properties;
public GWTProperties()
{}
public GWTProperties() {
}
/**
*
* @param id
* @param properties
* Id
* @param mapProperties
* map properties
*/
public GWTProperties(String id, Map<String, String> mapProperties) {
this.id = id;
this.properties = new LinkedList<Data>();
//workaround for GWT issue 2862
for (Entry<String, String> entry :mapProperties.entrySet()){
// workaround for GWT issue 2862
for (Entry<String, String> 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;
}
}
}

View File

@ -16,10 +16,7 @@ public class GWTUser implements IsSerializable, Comparable<GWTUser> {
public GWTUser(){}
/**
* @param id
* @param portaLogin
*/
public GWTUser(String id, String portaLogin) {
this.id = id;
this.portaLogin = portaLogin;

View File

@ -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<String, GWTDocumentMetadata> metadata, Map<String, String> annotation,