();
while (iter.hasNext()) {
org.apache.struts.tiles.beans.SimpleMenuItem tab = (org.apache.struts.tiles.beans.SimpleMenuItem) iter.next();
boolean showItem = true;
if (SecurityContext.isSecurityEnabled()) {
showItem = false;
String[] roles = {"administrator", "operator", "configurator", "monitor"};
if (tab.getTooltip() != null && tab.getTooltip().equals("") == false) {
StringTokenizer st = new StringTokenizer(tab.getTooltip(), ",");
ArrayList al = new ArrayList();
while(st.hasMoreTokens()) {
al.add(st.nextToken());
}
roles = new String[al.size()];
roles = (String[])al.toArray(roles);
}
for (int idx = 0; idx < roles.length; idx++) {
if (adminAuthorizer.checkAccess(contextUri, roles[idx])) {
showItem = true;
break;
}
}
}
//skip displaying tab if showItem is false
if (showItem == false) {
continue;
}
String value = (String) perspectiveValue;
String tabValue = tab.getValue();
String href = selectUri + "?EditAction=true&perspective=" + tabValue ;
boolean skipRuntime=false;
javax.management.ObjectName dwlmON = null;
String mbeanString = "WebSphere:*,type=" + com.ibm.ws.dwlm.controller.DWLMController.MBEAN_TYPE + ",cluster=" + clusterName;
javax.management.ObjectName namePattern = new javax.management.ObjectName( mbeanString );
java.util.Set s = com.ibm.websphere.management.AdminServiceFactory.getAdminService().queryNames( namePattern, null );
if ( s != null && s.size() > 0 ) {
dwlmON = (javax.management.ObjectName) s.iterator().next();
}
if(dwlmON == null) skipRuntime = true;
//skip displaying runtime tab if managedbeanId is blank
if ( (skipRuntime) && (tabValue.equalsIgnoreCase("tab.runtime")) ) {
continue;
}
tabNames.add(tabValue); //RTC135010/CMVC757616 - Add tab value to names list
%>
<% if (tabList_ext.size() == 1) {
selectedBody = tab.getLink();
//RTC135010/CMVC757616 - In this section, onkeydown, id, and tabindex attributes added, as well as for tabs-on
%>
<% if (accessibilityEnabled) { %><% } %>
<% if (accessibilityEnabled) { %><% } %>
|
<% } else if ((tabList_ext.size() > 1) && (value.equalsIgnoreCase(tabValue))) {
selectedBody = tab.getLink();
%>
<% if (accessibilityEnabled) { %><% } %>
<% if (accessibilityEnabled) { %><% } %>
|
images/onepix.gif" width="2" height="10" align="absmiddle" alt="">
|
<% } else if ((tabList_ext.size() > 1) && (!value.equalsIgnoreCase(tabValue))) { %>
|
images/onepix.gif" width="2" height="10" align="absmiddle" alt="">
|
<% } %>
<% } %>
images/onepix.gif" width="1" height="10" align="absmiddle" alt="">
|