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:
parent
6d6b88a3eb
commit
a1734b6431
|
@ -22,6 +22,8 @@ public class InfoDisplayMessage extends InfoDisplay {
|
||||||
* message title
|
* message title
|
||||||
* @param text
|
* @param text
|
||||||
* message text
|
* message text
|
||||||
|
* @param milliseconds
|
||||||
|
* milliseconds
|
||||||
*/
|
*/
|
||||||
public InfoDisplayMessage(String title, String text, int milliseconds) {
|
public InfoDisplayMessage(String title, String text, int milliseconds) {
|
||||||
super(title, text, milliseconds);
|
super(title, text, milliseconds);
|
||||||
|
|
|
@ -10,35 +10,33 @@ import java.util.Map.Entry;
|
||||||
|
|
||||||
import com.google.gwt.user.client.rpc.IsSerializable;
|
import com.google.gwt.user.client.rpc.IsSerializable;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Federico De Faveri defaveriAtisti.cnr.it
|
* @author Federico De Faveri defaveriAtisti.cnr.it
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class GWTProperties implements IsSerializable {
|
public class GWTProperties implements IsSerializable {
|
||||||
|
|
||||||
protected String id;
|
protected String id;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* workaround for GWT issue 2862
|
|
||||||
*/
|
|
||||||
protected List<Data> properties;
|
protected List<Data> properties;
|
||||||
|
|
||||||
public GWTProperties()
|
public GWTProperties() {
|
||||||
{}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
*
|
||||||
* @param id
|
* @param id
|
||||||
* @param properties
|
* Id
|
||||||
|
* @param mapProperties
|
||||||
|
* map properties
|
||||||
*/
|
*/
|
||||||
public GWTProperties(String id, Map<String, String> mapProperties) {
|
public GWTProperties(String id, Map<String, String> mapProperties) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
|
|
||||||
this.properties = new LinkedList<Data>();
|
this.properties = new LinkedList<Data>();
|
||||||
|
|
||||||
//workaround for GWT issue 2862
|
// workaround for GWT issue 2862
|
||||||
for (Entry<String, String> entry :mapProperties.entrySet()){
|
for (Entry<String, String> entry : mapProperties.entrySet()) {
|
||||||
properties.add(new Data(entry.getKey(), entry.getValue()));
|
properties.add(new Data(entry.getKey(), entry.getValue()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -49,21 +47,20 @@ public class GWTProperties implements IsSerializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMetaData(String metaDataId) {
|
public String getMetaData(String metaDataId) {
|
||||||
|
|
||||||
for (Data data :properties){
|
for (Data data : properties) {
|
||||||
if (data.getKey().equals(metaDataId)) return data.value;
|
if (data.getKey().equals(metaDataId))
|
||||||
|
return data.value;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
protected class Data {
|
||||||
* workaround for GWT issue 2862
|
|
||||||
*/
|
|
||||||
protected class Data{
|
|
||||||
|
|
||||||
protected String key;
|
protected String key;
|
||||||
protected String value;
|
protected String value;
|
||||||
|
|
||||||
protected Data(String key, String value) {
|
protected Data(String key, String value) {
|
||||||
this.key = key;
|
this.key = key;
|
||||||
this.value = value;
|
this.value = value;
|
||||||
|
@ -82,8 +79,7 @@ public class GWTProperties implements IsSerializable {
|
||||||
public String getValue() {
|
public String getValue() {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,10 +16,7 @@ public class GWTUser implements IsSerializable, Comparable<GWTUser> {
|
||||||
|
|
||||||
public GWTUser(){}
|
public GWTUser(){}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param id
|
|
||||||
* @param portaLogin
|
|
||||||
*/
|
|
||||||
public GWTUser(String id, String portaLogin) {
|
public GWTUser(String id, String portaLogin) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.portaLogin = portaLogin;
|
this.portaLogin = portaLogin;
|
||||||
|
|
|
@ -29,19 +29,7 @@ public class GWTDocument extends GWTInfoObject implements IsSerializable {
|
||||||
|
|
||||||
public GWTDocument() {}
|
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,
|
public GWTDocument(Date creationTime, String id, GWTProperties properties, String name, String owner,
|
||||||
String description, Date lastModificationTime, GWTWorkspaceItemAction lastAction, GWTWorkspaceFolder parent,
|
String description, Date lastModificationTime, GWTWorkspaceItemAction lastAction, GWTWorkspaceFolder parent,
|
||||||
long length, String oid, String mimeType, Map<String, GWTDocumentMetadata> metadata, Map<String, String> annotation,
|
long length, String oid, String mimeType, Map<String, GWTDocumentMetadata> metadata, Map<String, String> annotation,
|
||||||
|
|
Loading…
Reference in New Issue