<%-- IBM Confidential OCO Source Material --%> <%-- 5724-J34 (C) COPYRIGHT International Business Machines Corp. 2005, 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.*"%> <%@ page import="com.ibm.websphere.management.authorizer.AdminAuthorizer"%> <%@ page import="com.ibm.websphere.management.authorizer.AdminAuthorizerFactory"%> <%@ page import="com.ibm.ws.console.core.ConfigFileHelper"%> <%@ page import="com.ibm.ws.security.core.SecurityContext"%> <%@ page import="com.ibm.ws.console.dynamiccluster.form.DynamicClusterDetailForm"%> <%@ page import="com.ibm.ws.xd.util.MiddlewareServerConstants"%> <%@ 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" %> <% String contextId = (String)request.getAttribute("contextId"); AdminAuthorizer adminAuthorizer = AdminAuthorizerFactory.getAdminAuthorizer(); String contextUri = ConfigFileHelper.decodeContextUri((String)contextId); String showNoneText = "none.text"; boolean isODRServer = false; DynamicClusterDetailForm dynamicClusterDetailForm = (DynamicClusterDetailForm)session.getAttribute("DynamicClusterDetailForm"); if (dynamicClusterDetailForm != null) { if (dynamicClusterDetailForm.getServerType().equals(MiddlewareServerConstants.ONDEMAND_ROUTER)) { isODRServer = true; } } boolean val = false; if (readOnly != null && readOnly.equals("true")) val = true; else if (SecurityContext.isSecurityEnabled()) { contextUri = contextUri.replaceFirst("dynamicclusters", "clusters"); if ((adminAuthorizer.checkAccess(contextUri, "administrator")) || (adminAuthorizer.checkAccess(contextUri, "configurator"))) { val = false; } else { val = true; } } boolean disableMinInst = val; if (isODRServer) { disableMinInst = true; } %>
">