|
|
|
@ -78,7 +78,7 @@ public class ISClientRequester {
|
|
|
|
|
CACHE.empty();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static final List<String> getResourceTypes(
|
|
|
|
|
private static final ArrayList<String> getResourceTypes(
|
|
|
|
|
final CacheManager status,
|
|
|
|
|
final GCUBEScope queryScope)
|
|
|
|
|
throws Exception {
|
|
|
|
@ -110,7 +110,7 @@ public class ISClientRequester {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String type = null;
|
|
|
|
|
List<String> types = new Vector<String>();
|
|
|
|
|
ArrayList<String> types = new ArrayList<String>();
|
|
|
|
|
try {
|
|
|
|
|
for (XMLResult elem : results) {
|
|
|
|
|
|
|
|
|
@ -148,13 +148,13 @@ public class ISClientRequester {
|
|
|
|
|
return types;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static final List<String> getResourceSubTypes(
|
|
|
|
|
private static final ArrayList<String> getResourceSubTypes(
|
|
|
|
|
final CacheManager status,
|
|
|
|
|
final GCUBEScope queryScope,
|
|
|
|
|
final String resourceType)
|
|
|
|
|
throws Exception {
|
|
|
|
|
|
|
|
|
|
List<String> subtypes = new Vector<String>();
|
|
|
|
|
ArrayList<String> subtypes = new ArrayList<String>();
|
|
|
|
|
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<String, List<String>> getResourcesTree( //qui si perde
|
|
|
|
|
public static final HashMap<String, ArrayList<String>> getResourcesTree( //qui si perde
|
|
|
|
|
final CacheManager status,
|
|
|
|
|
final GCUBEScope queryScope)
|
|
|
|
|
throws Exception {
|
|
|
|
|
Map<String, List<String>> retval = new HashMap<String, List<String>>();
|
|
|
|
|
HashMap<String, ArrayList<String>> retval = new HashMap<String, ArrayList<String>>();
|
|
|
|
|
|
|
|
|
|
// Loads the Resources
|
|
|
|
|
List<String> types = getResourceTypes(status, queryScope);
|
|
|
|
|
List<String> subtypes = null;
|
|
|
|
|
ArrayList<String> types = getResourceTypes(status, queryScope);
|
|
|
|
|
ArrayList<String> 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<String>();
|
|
|
|
|
subtypes = new ArrayList<String>();
|
|
|
|
|
for (XMLResult elem : results) {
|
|
|
|
|
subtypes.add(elem.toString());
|
|
|
|
|
}
|
|
|
|
|