();
-visibleGroups.addAll(theGateways.keySet());
+//this for constructs the (perhaps sorted list to show and exclude the groupIds of the sites specieified in the config)
+for (Gateway gat : theGateways) {
+ if (!groupIds2Exclude.contains(gat.getSite().getGroupId())) {
+ theGatewaysMap.put(gat.getSite(), gat.getVres());
+ visibleGroups.add(gat.getSite());
+ }
+}
+
PortletURL portletURL = PortletURLFactoryUtil.create(request, portletDisplay.getId(), plid, PortletRequest.RENDER_PHASE);
%>
-
-${thematicGatewayIntro}
-
-
+
+ ${thematicGatewayIntro}
+
+
+
+
+ <%
+ total = visibleGroups.size();
+ searchContainer.setTotal(total);
+ %>
+
+
+
+
+ <%
+ LayoutSet layoutSet = null;
+
+ if (childGroup.hasPublicLayouts()) {
+ layoutSet = childGroup.getPublicLayoutSet();
+ }
+ else {
+ layoutSet = childGroup.getPrivateLayoutSet();
+ }
+ int vresNumber = theGatewaysMap.get(childGroup).size();
+ String labelVRE = (vresNumber > 1) ? "VREs / VLabs" : "VRE / VLab";
+ String theTitle = HtmlUtil.escape(childGroup.getDescriptiveName(locale)) + ", " + vresNumber + " " + labelVRE;
+ String theDescription = HtmlUtil.escape(childGroup.getDescription());
+
+ final long companyId = PortalUtil.getDefaultCompanyId();
+ long layoutSetId = layoutSet.getLayoutSetId();
+ String vHost = VirtualHostLocalServiceUtil.getVirtualHost(companyId, layoutSetId).getHostname();
+ String theURL = "https://"+vHost+"/explore";
+ %>
+
+
+
- <%
- total = visibleGroups.size();
- searchContainer.setTotal(total);
- %>
-
-
-
-
- <%
- LayoutSet layoutSet = null;
-
- if (childGroup.hasPublicLayouts()) {
- layoutSet = childGroup.getPublicLayoutSet();
- }
- else {
- layoutSet = childGroup.getPrivateLayoutSet();
- }
- int vresNumber = theGateways.get(childGroup).size();
- String labelVRE = (vresNumber > 1) ? "VREs / VLabs" : "VRE / VLab";
- String theTitle = HtmlUtil.escape(childGroup.getDescriptiveName(locale)) + ", " + vresNumber + " " + labelVRE;
- String theDescription = HtmlUtil.escape(childGroup.getDescription());
-
- final long companyId = PortalUtil.getDefaultCompanyId();
- long layoutSetId = layoutSet.getLayoutSetId();
- String vHost = VirtualHostLocalServiceUtil.getVirtualHost(companyId, layoutSetId).getHostname();
- String theURL = "https://"+vHost+"/explore";
- %>
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+