<%-- IBM Confidential OCO Source Material --%> <%-- 5724-J34 (C) COPYRIGHT International Business Machines Corp. 2005, 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 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.workclass.form.WorkClassCollectionForm"%> <%@ page import="com.ibm.ws.xd.config.workclass.util.ApplicationUtil"%> <%@ page import="com.ibm.ws.xd.config.workclass.util.OSGiApplicationUtil"%> <%@ page import="com.ibm.ws.xd.config.workclass.util.WorkClassConstants"%> <%@ page import="com.ibm.ws.xd.config.workclass.util.WorkClassXDUtil"%> <%@ page import="com.ibm.ws.console.workclass.util.WorkClassConfigUtils"%> <%@ 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" %> <% Double dblValue = (Double)session.getAttribute("multiplier"); double multiplier = dblValue.doubleValue(); %> <% WorkSpace wksp = (WorkSpace)session.getAttribute(com.ibm.ws.console.core.Constants.WORKSPACE_KEY); WorkClassCollectionForm wccf = (WorkClassCollectionForm)request.getSession().getAttribute("WorkClassCollectionForm"); int wcscope = -1; int wcview = -1; // Retrieve the Scope and View for this collection. This determines the layout of this page. wcview = wccf.getWCView(); // View is either Service or Routing Policy wcscope = wccf.getWCScope(); // Scope is either App, ODR boolean isAppDeployedOnZOS = false; if (wcscope == WorkClassConstants.WCSCOPE_CU) { isAppDeployedOnZOS = OSGiApplicationUtil.isAppDeployedOnZOS(wccf.getApplicationName(), null, wksp); } else if (wcscope != WorkClassConstants.WCSCOPE_MWA && wccf.getApplicationName() != null) { isAppDeployedOnZOS = ApplicationUtil.isAppDeployedOnZOS(wccf.getApplicationName(), null, wksp); } String labelext = ""; String expandID = ""; if (wccf != null) { if (wcscope == WorkClassConstants.WCSCOPE_ODR) { expandID = wccf.getNodeName()+"_"+wccf.getODRName(); } else { if (wcview == WorkClassConstants.WCVIEW_ROUTING) { expandID = WorkClassXDUtil.normalizeAppName(wccf.getApplicationName()); } else { expandID = wccf.getApplicationName(); } } expandID = expandID+"_"+wcview; if (wcscope == WorkClassConstants.WCSCOPE_ODR) { if (wcview == WorkClassConstants.WCVIEW_ROUTING) { labelext = ".odr.routing"; } else { labelext = ".odr.service"; } } else { if (wcview == WorkClassConstants.WCVIEW_ROUTING) { labelext = ".routing"; } else { labelext = ""; } } } //System.out.println("labelext = " +labelext); // Debug - Remove //System.out.println("wcview = " +wcview); // Debug - Remove //System.out.println("wcscope = " +wcscope); // Debug - Remove String fieldsetMessage = "workclass" + labelext + ".config.description"; %> <% if (wcview == WorkClassConstants.WCVIEW_SERVICE && wcscope == WorkClassConstants.WCSCOPE_APP) { String href = "/ibm/console/com.ibm.ws.console.policyconfiguration.forwardCmd.do?forwardName=serviceclasstopology.content.main" + "&csrfid=" + session.getAttribute("com.ibm.ws.console.CSRFToken"); %> <% } %>
Open in new window
<% String labelkey = "workclass" +labelext +".config.description"; %>

<% String wcType = item.getAttribute(); //protocol if (WorkClassConfigUtils.isProtocolSectionVisable(wcType, wcscope, wcview, isAppDeployedOnZOS)) { %> <% } %>
<% String expandGraphic = "/ibm/console/com.ibm.ws.console.workclass/images/plus_sign.gif"; String expandState = (String)session.getAttribute("com_ibm_ws_"+expandID+wcType); if (expandState == null) expandState = "display:none"; else if (expandState.equals("display:block")) expandGraphic = "/ibm/console/com.ibm.ws.console.workclass/images/minus_sign.gif"; %>