<%-- IBM Confidential OCO Source Material --%> <%-- 5724-J34 (C) COPYRIGHT International Business Machines Corp. 2004, 2012 --%> <%-- 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 language="java" import="org.apache.struts.util.MessageResources,org.apache.struts.action.Action"%> <%@ page errorPage="error.jsp" %> <%@ page import="java.net.*" %> <%@ page import="java.util.*" %> <%@ page import="com.ibm.ws.console.core.ConfigFileHelper" %> <%@ page import="com.ibm.ws.console.core.selector.CollectionItemSelector"%> <%@ page import="com.ibm.ws.console.core.selector.ConfigurationElementSelector"%> <%@ page import="com.ibm.ws.console.core.selector.PreferenceSelector"%> <%@ page import="com.ibm.ws.security.core.SecurityContext"%> <%@ page import="com.ibm.wsspi.*"%> <%@ page import="com.ibm.ws.xd.operations.impl.*"%> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> <% MessageResources messages = (MessageResources)application.getAttribute(Action.MESSAGES_KEY); java.util.Locale locale = request.getLocale(); int chkcounter = 0; try { %> <% String contextType=(String)request.getAttribute("contextType"); String cellname = null; String nodename = null; String token = null; java.util.Properties props= null; java.util.ArrayList collectionList_ext = new java.util.ArrayList(); for(int i=0;i0) || (extensions_preferences!=null && extensions_preferences.length>0)){ if(contextId!=null && contextId!="nocontext"){ props = ConfigFileHelper.getNodeMetadataProperties((String)contextId); //213515 } props = ConfigFileHelper.getAdditionalAdaptiveProperties(request, props, formName); } if(extensions!=null && extensions.length>0){ collectionList_ext = CollectionItemSelector.getCollectionItems(extensions,collectionList_ext,props); } pageContext.setAttribute("collectionList_ext",collectionList_ext); %> <% if (SecurityContext.isSecurityEnabled()) { showCheckBoxes = "false"; if (request.isUserInRole("administrator")) { showCheckBoxes = "true"; } else if (request.isUserInRole("configurator")) { showCheckBoxes = "true"; } } %> <% if(extensions_preferences!=null && extensions_preferences.length>0){ collectionPreferenceList_ext = PreferenceSelector.getPreferences(extensions_preferences,collectionPreferenceList_ext,props); } %> <%-- NOTES: The sorting icons are specified in defaultIconList. The icons are assumed to be located in the images folder. Checkboxes are NOT displayed for all objects whose refIds start with "builtin_" --%> <%@ include file="/secure/layouts/filterSetup.jspf" %> <%-- Preferences at the top --%> <% session.removeAttribute("preferences"); %> <% for (Iterator i = collectionPreferenceList.iterator(); i.hasNext();) { preferences.add(i.next()); }%> <%@ include file="/secure/layouts/tableControlsLayout.jspf" %>
<% if (showCheckBoxes.equals ("true")) { %> <% } %> <% sortable = (String)cellItem.getIsSortable(); columnField = (String)cellItem.getColumnField(); if (columnField.equalsIgnoreCase("description")) columnWidth = "30%"; else if (columnField.equalsIgnoreCase("importance")) columnWidth = "10%"; else columnWidth = "25%"; %> <%@ include file="/secure/layouts/filterControlsLayout.jspf" %> <% if (showCheckBoxes.equals("true")) { if (ConfigFileHelper.isDeleteable(refId) == true) { String delId = (String)resourceUri + "#" + (String) refId ; %> <% } else { %> <% } } %> <% columnField = (String)cellItem.getColumnField(); %> <% chkcounter = chkcounter + 1; %>
<% if (sortIconLocation.equalsIgnoreCase ("right")) { %> <% } if (sortable.equals ("false")) { %> <% } if (sortable.equals ("true")) { if (columnField.equals (sortedColumn)) { String nextOrder; if (order.equalsIgnoreCase ("ASC")) { nextOrder = "DSC"; } else { nextOrder = "ASC"; } %> <% if (order.equalsIgnoreCase ("ASC")) { %> <bean:message key="> <% } else if (order.equalsIgnoreCase ("DSC")) { %> <bean:message key="> <% } %> <% } else { %> <bean:message key="> <% } if (sortIconLocation.equalsIgnoreCase ("left")) { %> <% } if (sortable.equals ("false")) { %> <% } } %> <% //add refresh.gif after status column to refresh page if (columnField.equals("status")) { %> <bean:message key=" align="texttop" border="0"/> <% } if (!filterDisplay.equals("none")) { if (columnField.equals(searchFilter)) { %>
: <% } } %>
  <% if (cellItem.getIcon().length() > 0) { %>   <% } if (cellItem.getLink().length() > 0) { String hRef = cellItem.getLink() + "&refId="+refId + "&contextId=" + contextId + "&resourceUri=" + URLEncoder.encode(resourceUri,"UTF-8") + "&perspective=" + URLEncoder.encode(perspective,"UTF-8"); %> <% } if (columnField.equalsIgnoreCase("goalString")) { String isResponseTimePropertyEnabled = XDOperationsViewConfigHelper.getConfigProperty(XDOperationsViewConfigHelper.RESPONSE_TIME_GOALS_DISABLE); isResponseTimePropertyEnabled = isResponseTimePropertyEnabled.trim(); if ((!name.equals("Default_SP")) && (isResponseTimePropertyEnabled.equalsIgnoreCase("true"))) { %> <% //This is the goal string. We need to pull a couple strings and a couple properties and then put them together } else if (goalType.equalsIgnoreCase("GOAL_TYPE_DISCRETIONARY")) { %> <% } else if (goalType.equalsIgnoreCase("GOAL_TYPE_AVG_RESPONSE_TIME")) { String transTime = messages.getMessage(locale,goalIntervalString); %> <% } else if (goalType.equalsIgnoreCase("GOAL_TYPE_PCT_RESPONSE_TIME")) { String transTime = messages.getMessage(locale,goalIntervalString); %> <% } else if(goalType.equalsIgnoreCase("GOAL_TYPE_QUEUETIME")) { String transTime = messages.getMessage(locale,goalIntervalString); %> <% } else if(goalType.equalsIgnoreCase("GOAL_TYPE_COMPLETIONTIME")) { String transTime = messages.getMessage(locale,goalIntervalString); %> <% } else { %>   <% } } else if (columnField.equalsIgnoreCase("importance")) { //This is the goal string. We need to pull a couple strings and a couple properties and then put them together if (importance.equalsIgnoreCase("IMPORTANCE_NONE")) { %>   <% } else { %> <% } } else if (cellItem.getTranslate()) { %> <% } else { %>   <% } %> <% if (cellItem.getLink().length() > 0) { %> <% } %>
<% } catch (Exception e) { System.out.println("error found : " + e.toString());e.printStackTrace(); } %> <% ServletContext servletContext = (ServletContext)pageContext.getServletContext(); //MessageResources messages = (MessageResources)servletContext.getAttribute(Action.MESSAGES_KEY); String nonefound = messages.getMessage(request.getLocale(),"Persistence.none"); if (chkcounter == 0) { out.println("
"+nonefound+"
"); } %>