<%-- 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 language="java" import="org.apache.struts.util.MessageResources,org.apache.struts.action.Action,java.net.URLEncoder"%> <%@ page import="java.util.Collection,java.util.Iterator,com.ibm.ws.sm.workspace.*"%> <%@ page import="java.util.*"%> <%@ page import="com.ibm.websphere.models.config.workclass.WorkClassType"%> <%@ page import="com.ibm.websphere.product.*"%> <%@ page import="com.ibm.ws.console.core.*"%> <%@ page import="com.ibm.ws.console.workclass.form.MatchRuleCollectionForm"%> <%@ page import="com.ibm.ws.console.workclass.form.WorkClassCollectionForm"%> <%@ page import="com.ibm.ws.console.workclass.form.WorkClassDetailForm"%> <%@ page import="com.ibm.ws.console.workclass.form.WorkClassModuleDetailForm"%> <%@ page import="com.ibm.ws.security.core.SecurityContext"%> <%@ page import="com.ibm.ws.workspace.query.*"%> <%@ 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.xd.config.workclass.util.MiddlewareAppUtil" %> <%@ page import="com.ibm.ws.xd.config.workclass.util.OSGiApplicationUtil"%> <%@ 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" %> <% int chkcounter = 0; %> <% if ((includeButtonTile != null) && (includeButtonTile.equalsIgnoreCase("true"))) { %> <% } %> <%-- checks if includeButtonTile is true or false. If true then it inserts buttonLayout.jsp with the values given in the tiles configuration file --%> <% String csrfParm = ""; String csrfToken = (String) session.getAttribute("com.ibm.ws.console.CSRFToken"); if ((csrfToken != null) && (!csrfToken.equals(""))) csrfParm = "&csrfid=" + csrfToken; WorkClassCollectionForm wccf = (WorkClassCollectionForm)request.getSession().getAttribute("WorkClassCollectionForm"); int wcscope = -1; int wcview = -1; String scopeName = ""; String labelext = ""; String expandID = ""; boolean isDisabled = false; boolean isJMSDisabled = false; if (wccf != null) { // 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 or ODR 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 (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 WorkSpace wksp = (WorkSpace)session.getAttribute(com.ibm.ws.console.core.Constants.WORKSPACE_KEY); ArrayList editionNames = new ArrayList(); ArrayList clusterNames = new ArrayList(); ArrayList routeTypes = new ArrayList(); ArrayList tcNames = new ArrayList(); String[] actionList = {"permit", "permit sticky", "redirect", "reject","permitMaint","permitAffMaint"}; String noactionLabel = ""; String permitLabel = ""; String permitStickyLabel= ""; String rejectLabel = ""; String redirectLabel = ""; String labelkey = ""; String permitMaintLabel = ""; String permitMaintAff = ""; %> <%-- iterates over ArrayList to display the values present in the List. An inner loop of columnList is used to display the values of each item in the column of the table. --%> <% WorkClassType wcType = WorkClassType.get(WorkClassType.HTTPWORKCLASS); if (requestType.equals(WorkClassConstants.IIOP)) { wcType = WorkClassType.get(WorkClassType.IIOPWORKCLASS); } else if (requestType.equals(WorkClassConstants.SOAP)) { wcType = WorkClassType.get(WorkClassType.SOAPWORKCLASS); } else if (requestType.equals(WorkClassConstants.JMS)) { wcType = WorkClassType.get(WorkClassType.JMSWORKCLASS); } if (wcType.equals(type)) { %> <% int collectionCount = 0; %> <% if (collectionCount++ < 1) { %> <% } %> <% } %> <% chkcounter = chkcounter + 1; %> <%-- creates buttons if this is given true in the configuration file --%> <%-- MessageResources of struts is used here. Action.MESSAGES_KEY will have MessageResources type stored in the session. --%> <%-- This instance is used to get a text message for the specified key, for the given Locale --%> <%-- displays none if no items are present in the List --%> <% 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+"
"); } %>