<%-- IBM Confidential OCO Source Material --%> <%-- 5630-A36 (C) COPYRIGHT International Business Machines Corp. 1997, 2004 --%> <%-- The source code for this program is not published or otherwise divested --%> <%-- of its trade secrets, irrespective of what has been deposited with the --%> <%-- U.S. Copyright Office. --%> <%@ page import="com.ibm.ws.xd.admin.utils.ConfigUtils"%> <%@ page import="com.ibm.ws.security.core.SecurityContext,java.util.*"%> <%@ page import="com.ibm.ws.*"%> <%@ page import="com.ibm.wsspi.*"%> <%@ page import="org.apache.struts.tiles.beans.SimpleMenuItem"%> <%@ page import="com.ibm.ws.console.core.selector.*"%> <%@ page import="com.ibm.ws.console.core.ConfigFileHelper"%> <%@ page import="com.ibm.websphere.management.authorizer.AdminAuthorizer"%> <%@ page import="com.ibm.websphere.management.authorizer.AdminAuthorizerFactory"%> <%@ page import="com.ibm.websphere.management.metadata.*"%> <%@ page import="com.ibm.ws.console.core.ConfigFileHelper"%> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> <% AdminAuthorizer adminAuthorizer = AdminAuthorizerFactory.getAdminAuthorizer(); String contextUri = ConfigFileHelper.decodeContextUri(contextId); String contextType=(String)request.getAttribute("contextType"); String cellname = null; String nodename = null; String token = null; java.util.Properties props= null; java.util.ArrayList tabList_ext = new java.util.ArrayList(); for(int i=0;i0){ if(contextId!=null && contextId!="nocontext"){ props = ConfigFileHelper.getNodeMetadataProperties((String)contextId); //213515 } tabList_ext = TabSelector.getTabs(extensions,tabList_ext,props); } pageContext.setAttribute("tabList_ext",tabList_ext); // RTC149386 - Behavior added in RTC135010 should not be in 855 fixpacks, should be vNext // Read the version number and use condition to dynamically undo changes if version is 8.5.x.x // Once this code is wholly contained in a vNext version (from 855 perspective), check and if statements can be removed final int[] wasVersion = ConfigUtils.getWASVersionInts(); final boolean accessibilityEnabled = wasVersion[0] != 8 || wasVersion[1] != 5; %> <% String selectedBody = null;%> <% List list = (List) tabList_ext; Iterator iter = list.iterator(); //RTC135010/CMVC757616 - List of tab names for helper JavaScript List tabNames = new java.util.ArrayList(); 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 %> <% } else if ((tabList_ext.size() > 1) && (value.equalsIgnoreCase(tabValue))) { selectedBody = tab.getLink(); %> <% } else if ((tabList_ext.size() > 1) && (!value.equalsIgnoreCase(tabValue))) { %> <% } %> <% } %>
<% if (accessibilityEnabled) { %><% } %> <% if (accessibilityEnabled) { %><% } %> images/onepix.gif" width="2" height="10" align="absmiddle" alt=""> images/onepix.gif" width="2" height="10" align="absmiddle" alt=""> images/onepix.gif" width="1" height="10" align="absmiddle" alt="">
<% if (accessibilityEnabled) { %> <% } %>