<%-- IBM Confidential OCO Source Material --%> <%-- 5724-i63, 5724-H88 (C) COPYRIGHT International Business Machines Corp. 1997, 2010 --%> <%-- 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="java.util.HashSet"%> <%@ page import="java.util.Iterator,com.ibm.ws.console.core.item.ActionSetItem,com.ibm.ws.security.core.SecurityContext"%> <%@ page import="java.util.Set"%> <%@ page import="java.util.StringTokenizer"%> <%@ page import="com.ibm.ws.*"%> <%@ page import="com.ibm.wsspi.*"%> <%@ page import="com.ibm.ws.console.core.selector.*"%> <%@ page import="com.ibm.ws.console.core.ConfigFileHelper"%> <%-- LIDB2303A --%> <%@ page import="com.ibm.ws.console.core.SecurityHelper"%> <%@ page import="com.ibm.ws.console.core.json.JSONObject"%> <%@ page import="com.ibm.ws.console.core.json.JSONArray"%> <%@ page import="com.ibm.ws.xd.admin.utils.ConfigUtils"%> <%@ page import="com.ibm.websphere.management.authorizer.AdminAuthorizer"%> <%@ page import="com.ibm.websphere.management.authorizer.AdminAuthorizerFactory"%> <%@ page import="com.ibm.websphere.management.metadata.ManagedObjectMetadataAccessor"%> <%@ page import="com.ibm.websphere.management.metadata.ManagedObjectMetadataAccessorFactory"%> <%@ 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 count = 0; try { count = Integer.parseInt(buttonCount); } catch( java.lang.NumberFormatException ex){ count = 8; } %> <%-- Layout component Render a list of tiles in a vertical column @param : list List of names to insert --%> <% int wasVersion = ConfigUtils.getWASVersionInts()[0]; String contextType=(String)request.getAttribute("contextType"); String contextId = (String)request.getAttribute("contextId"); AdminAuthorizer adminAuthorizer = AdminAuthorizerFactory.getAdminAuthorizer(); String contextUri = ConfigFileHelper.decodeContextUri((String)contextId); //Build scope list Set rolesInCurrentContext = null; if (rolemap != null) { rolesInCurrentContext = new HashSet(); for (Iterator j = rolemap.values().iterator(); j.hasNext(); ) { rolesInCurrentContext.addAll((Set) j.next()); } } String perspective = (String)request.getAttribute("perspective"); java.util.Properties props= null; java.util.ArrayList actionList_ext = new java.util.ArrayList(); for(int i=0;i0){ if(contextId!=null && contextId!="nocontext"){ props = ConfigFileHelper.getNodeMetadataProperties((String)contextId); //213515 } if(formName!=null) props = ConfigFileHelper.getAdditionalAdaptiveProperties(request, props, formName); // LIDB2303A else props = ConfigFileHelper.getAdditionalAdaptiveProperties(request, props); actionList_ext = ActionSetSelector.getButtons(extensions,actionList_ext,props,perspective, definitionName); } pageContext.setAttribute("actionList_ext",actionList_ext); %> <% Iterator i=actionList_ext.iterator(); int listsize = actionList_ext.size(); int excessItems = 0; String buttonName = ""; if (listsize > (count+1) ) { excessItems = listsize - count; } else { count = listsize; } %> <% if (listsize > 0) { %> <% } %>