<%@ page import='java.util.Map' %> <%@ page import='java.util.List' %> <%@ page import='java.util.Iterator' %> <%@ taglib uri="http://xmlns.oracle.com/oem/jsp/tag" prefix="oem" %> <%@ include file="/enablePPR.jspf" %> <%@ include file="/oemTitle.jspf" %> <%@ include file="/oemGlobal.jspf" %> <% if(request.getAttribute("postHeaderPlugin") != null) { %> <% } %> <%-- unfortunately, the only way to do iterate over a list is to either use a JSTL tag, create a custom tag, or use this code. If it will be a while before we start using JSTL, we should put this in a custom iterator --%> <% java.util.List metricsList = (java.util.List)request.getAttribute("generalMetrics"); if (metricsList != null) { for (java.util.Iterator i=metricsList.iterator(); i.hasNext(); ) { java.util.Map map = (Map)i.next(); String name = (String)map.get("name"); String value = (String)map.get("value"); String link = (String)map.get("link"); String style = (String)map.get("style"); Boolean buttonVisible = (Boolean)map.get("buttonVisible"); String buttonLabel = (String)map.get("buttonLabel"); String buttonLink = (String)map.get("buttonLink"); Boolean ohmetrickey = (Boolean)map.get("ohexists"); Boolean isStopBlackout = (Boolean)map.get("isStopBlackout"); Boolean isCreateBlackout = (Boolean)map.get("isCreateBlackout"); String blackoutsLinkDest = (String)map.get("blackoutsLinkDest"); if (link == null) { %> <%-- Begin Blackouts Links --%> <%-- End Blackouts Links --%> <% } else { %> <%if (ohmetrickey != null && ohmetrickey.booleanValue() ) { %> <% } %> <% } } } %> <% java.lang.Object otherPlugin = request.getAttribute("homeOtherPlugin"); if (otherPlugin != null) { %> <% } %> <%-- New Policies section integration --%> <%-- New Security section integration --%> <%-- Configuration links (will be null unless plug-in installed) --%> <% java.util.List relatedLinks = (java.util.List)request.getAttribute("relatedLinks"); if (relatedLinks != null && relatedLinks.size() > 0) { int len = relatedLinks.size(); %> <% for (int i = 0; i < len ; i++) { if (i%3 != 0) continue; java.util.Map map = (java.util.Map) relatedLinks.get(i); String name = (String)map.get("name"); String desc = (String)map.get("desc"); String link = (String)map.get("link"); %> <% } // end for %> <% for (int i = 0; i < len ; i++) { if (i%3 != 1) continue; java.util.Map map = (java.util.Map) relatedLinks.get(i); String name = (String)map.get("name"); String desc = (String)map.get("desc"); String link = (String)map.get("link"); %> <% } // end for %> <% for (int i = 0; i < len; i++) { if (i%3 != 2) continue; java.util.Map map = (java.util.Map) relatedLinks.get(i); String name = (String)map.get("name"); String desc = (String)map.get("desc"); String link = (String)map.get("link"); %> <% } // end for %> <% } // end if(relatedLinks != null) %>