git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/accounting-dashboard@169713 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a0b4265079
commit
bc89cfa1de
|
@ -51,10 +51,12 @@ public class PortalContextTreeProvider implements ContextTreeProvider {
|
|||
// PARSE TREE
|
||||
LinkedHashMap<VRECategory,ArrayList<VRE>> gatewayTree=getPortalSitesMappedToVRE(request);
|
||||
|
||||
log.debug("Parsing tree from gateway. Size {} ",gatewayTree.size());
|
||||
|
||||
LinkedList<ScopeDescriptor> rootChildren=new LinkedList<>();
|
||||
for(Entry<VRECategory,ArrayList<VRE>> entry:gatewayTree.entrySet()) {
|
||||
ScopeDescriptor rootChild=new ScopeDescriptor(entry.getKey().name, entry.getKey().categoryID+"");
|
||||
for(VRE vre:entry.getValue())
|
||||
ScopeDescriptor rootChild=new ScopeDescriptor(entry.getKey().name, entry.getKey().categoryID+"");
|
||||
for(VRE vre:entry.getValue())
|
||||
rootChild.getChildren().add(new ScopeDescriptor(vre.name, vre.scope));
|
||||
}
|
||||
|
||||
|
@ -212,6 +214,12 @@ public class PortalContextTreeProvider implements ContextTreeProvider {
|
|||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "VRECategory [categoryID=" + categoryID + ", name=" + name + ", description=" + description + "]";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -249,6 +257,14 @@ public class PortalContextTreeProvider implements ContextTreeProvider {
|
|||
return url;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "VRE [name=" + name + ", description=" + description + ", id=" + id + ", url=" + url + ", scope="
|
||||
+ scope + "]";
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(VRE vre) {
|
||||
return this.getName().compareTo(vre.getName());
|
||||
|
|
Loading…
Reference in New Issue