<%-- IBM Confidential OCO Source Material --%> <%-- 5724-J34 (C) COPYRIGHT International Business Machines Corp. 2004, 2005 --%> <%-- 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"%> <%@ page import="com.ibm.ws.sm.workspace.*"%> <%@ page import="com.ibm.ws.workspace.query.*"%> <%@ page import="com.ibm.ws.console.core.*"%> <%@ page import="java.util.*,com.ibm.ws.security.core.SecurityContext,com.ibm.websphere.product.*"%> <%@ page import="com.ibm.ws.console.policyconfiguration.form.ServiceClassDetailForm"%> <%@ page import="com.ibm.ws.xd.operations.impl.XDOperationsViewConfigHelper"%> <%@ 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" %> <%@ taglib uri="/WEB-INF/ibmcommon.tld" prefix="ibmcommon" %> <% // defect 126608 String image = ""; String pluginId = ""; String pluginRoot = ""; if (descImage != "") { int index = descImage.indexOf ("pluginId="); if (index >= 0) { pluginId = descImage.substring (index + 9); if (index != 0) descImage = descImage.substring (0, index); else descImage = ""; } else { index = descImage.indexOf ("pluginContextRoot="); if (index >= 0) { pluginRoot = descImage.substring (index + 18); if (index != 0) descImage = descImage.substring (0, index); else descImage = ""; } } } %> <% String fieldLevelHelpTopic = ""; String fieldLevelHelpAttribute = ""; String DETAILFORM = "DetailForm"; String objectType = ""; int index = formType.lastIndexOf ('.'); if (index > 0) { String fType = formType.substring (index+1); if (fType.endsWith (DETAILFORM)) objectType = fType.substring (0, fType.length()-DETAILFORM.length()); else objectType = fType; } fieldLevelHelpTopic = objectType+".detail."; String topicKey = fieldLevelHelpTopic; %> <% ServiceClassDetailForm testForm = (ServiceClassDetailForm)session.getAttribute("CreateServiceClassStep1Form"); String goalType = testForm.getGoalType(); %> <% String isRequired = item.getRequired(); String strType = item.getType(); String isReadOnly = item.getReadOnly(); fieldLevelHelpTopic = topicKey + item.getAttribute(); %> <% if (strType.equalsIgnoreCase("Text")) { if (item.getAttribute().equalsIgnoreCase("goalValue")) { try { session.removeAttribute("valueVector"); session.removeAttribute("descVector"); } catch (Exception e) { } Vector descVector = new Vector(); Vector valueVector = new Vector(); if(goalType.equals("GOAL_TYPE_QUEUETIME") || goalType.equals("GOAL_TYPE_COMPLETIONTIME" ) ){ descVector.add("UNITS_MINUTES"); valueVector.add("UNITS_MINUTES"); } else{ StringTokenizer st1 = new StringTokenizer(item.getEnumDesc(), ","); while(st1.hasMoreTokens()) { String enumDesc = st1.nextToken(); descVector.addElement(enumDesc); } StringTokenizer st = new StringTokenizer(item.getEnumValues(), ","); while(st.hasMoreTokens()) { String str = st.nextToken(); valueVector.addElement(str); } } session.setAttribute("descVector", descVector); session.setAttribute("valueVector", valueVector); %> <% } else if (item.getAttribute().equalsIgnoreCase("goalPercent")) { if (goalType.equals("GOAL_TYPE_PCT_RESPONSE_TIME")) { %> <% } } else { %> <% } } %> <% if (strType.equalsIgnoreCase("TextArea")) { %> <% } %> <% if (strType.equalsIgnoreCase("Select")) { try { session.removeAttribute("valueVector"); session.removeAttribute("descVector"); } catch (Exception e) { } StringTokenizer st1 = new StringTokenizer(item.getEnumDesc(), ","); Vector descVector = new Vector(); while(st1.hasMoreTokens()) { String enumDesc = st1.nextToken(); descVector.addElement(enumDesc); } StringTokenizer st = new StringTokenizer(item.getEnumValues(), ","); Vector valueVector = new Vector(); while(st.hasMoreTokens()) { String str = st.nextToken(); valueVector.addElement(str); } session.setAttribute("descVector", descVector); session.setAttribute("valueVector", valueVector); %> <% } %> <% String spvGoalDeltaDisplay = null; String spvGoalDeltaPercentDisplay = null; if (goalType.equals("GOAL_TYPE_PCT_RESPONSE_TIME")) { spvGoalDeltaDisplay = "display:none"; spvGoalDeltaPercentDisplay = "display:block"; } else { spvGoalDeltaDisplay = "display:block"; spvGoalDeltaPercentDisplay = "display:none"; } %> <% // D313929: Disable SPV for Queue Time if ( !goalType.equals("GOAL_TYPE_QUEUETIME") && !goalType.equals("GOAL_TYPE_COMPLETIONTIME") ) { %> <% } %>
<%-- <% if (isReadOnly) { %> <% } else { %> <% } %> --%> <% boolean importanceOnlyEnabled = false; String isDisablePropertyEnabled = XDOperationsViewConfigHelper.getConfigProperty(XDOperationsViewConfigHelper.RESPONSE_TIME_GOALS_DISABLE); isDisablePropertyEnabled = isDisablePropertyEnabled.trim(); if (isDisablePropertyEnabled.equalsIgnoreCase("true")) { importanceOnlyEnabled = true; } %>


%