This commit is contained in:
Fabio Sinibaldi 2018-07-09 12:54:53 +00:00
parent a0b4265079
commit bc89cfa1de
1 changed files with 18 additions and 2 deletions

View File

@ -51,6 +51,8 @@ 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+"");
@ -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());