From d5070c094d79fef7a5dd196e13d85abf3a49f22f Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Sat, 29 Dec 2012 23:53:04 +0000 Subject: [PATCH] using actual classes not interfaces (reduces gwt compiled js) git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/admin/rmp-common-library@65438 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../support/client/utils/LocalStatus.java | 12 ++++++------ .../server/gcube/ISClientRequester.java | 18 +++++++++--------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/main/java/org/gcube/resourcemanagement/support/client/utils/LocalStatus.java b/src/main/java/org/gcube/resourcemanagement/support/client/utils/LocalStatus.java index 7eb6d6f..c3948d2 100644 --- a/src/main/java/org/gcube/resourcemanagement/support/client/utils/LocalStatus.java +++ b/src/main/java/org/gcube/resourcemanagement/support/client/utils/LocalStatus.java @@ -11,28 +11,28 @@ **************************************************************************** * Filename: LocalStatus.java **************************************************************************** - * @author Daniele Strollo + * @author Massimiliano Assante ***************************************************************************/ package org.gcube.resourcemanagement.support.client.utils; +import java.util.ArrayList; import java.util.List; -import java.util.Vector; /** * Here represented the local status of the client side application. - * @author Daniele Strollo (ISTI-CNR) + * @author Massimilianio Assante (ISTI-CNR) */ public class LocalStatus { - private final List availableScopes = new Vector(); - private final List deployReports = new Vector(); + private final ArrayList availableScopes = new ArrayList(); + private final ArrayList deployReports = new ArrayList(); private static final LocalStatus INSTANCE = new LocalStatus(); public static synchronized LocalStatus getInstance() { return INSTANCE; } - public final List getAvailableScopes() { + public final ArrayList getAvailableScopes() { return this.availableScopes; } diff --git a/src/main/java/org/gcube/resourcemanagement/support/server/gcube/ISClientRequester.java b/src/main/java/org/gcube/resourcemanagement/support/server/gcube/ISClientRequester.java index 8e3614b..e327432 100644 --- a/src/main/java/org/gcube/resourcemanagement/support/server/gcube/ISClientRequester.java +++ b/src/main/java/org/gcube/resourcemanagement/support/server/gcube/ISClientRequester.java @@ -78,7 +78,7 @@ public class ISClientRequester { CACHE.empty(); } - private static final List getResourceTypes( + private static final ArrayList getResourceTypes( final CacheManager status, final GCUBEScope queryScope) throws Exception { @@ -110,7 +110,7 @@ public class ISClientRequester { } String type = null; - List types = new Vector(); + ArrayList types = new ArrayList(); try { for (XMLResult elem : results) { @@ -148,13 +148,13 @@ public class ISClientRequester { return types; } - private static final List getResourceSubTypes( + private static final ArrayList getResourceSubTypes( final CacheManager status, final GCUBEScope queryScope, final String resourceType) throws Exception { - List subtypes = new Vector(); + ArrayList subtypes = new ArrayList(); if (resourceType.equals("Collection")) { subtypes.add("System"); subtypes.add("User"); @@ -218,15 +218,15 @@ public class ISClientRequester { * @return a list of string tuples (type, subtype) * @throws Exception */ - public static final Map> getResourcesTree( //qui si perde + public static final HashMap> getResourcesTree( //qui si perde final CacheManager status, final GCUBEScope queryScope) throws Exception { - Map> retval = new HashMap>(); + HashMap> retval = new HashMap>(); // Loads the Resources - List types = getResourceTypes(status, queryScope); - List subtypes = null; + ArrayList types = getResourceTypes(status, queryScope); + ArrayList subtypes = null; for (String type : types) { try { @@ -251,7 +251,7 @@ public class ISClientRequester { if (results == null || results.size() == 0) { return retval; } - subtypes = new Vector(); + subtypes = new ArrayList(); for (XMLResult elem : results) { subtypes.add(elem.toString()); }