<%-- IBM Confidential OCO Source Material --%> <%-- 5724-J34 (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.*"%> <%@ 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" %> <% org.apache.struts.util.MessageResources messages = (org.apache.struts.util.MessageResources)pageContext.getServletContext().getAttribute(org.apache.struts.action.Action.MESSAGES_KEY); %> <% String contextId = (String)request.getAttribute("contextId"); AdminAuthorizer adminAuthorizer = AdminAuthorizerFactory.getAdminAuthorizer(); String contextUri = ConfigFileHelper.decodeContextUri((String)contextId); String isReadOnly = "true"; // will allow user to update the uniqueId field if the server type = WASAPP_SERVER (External WebSphere application server) DynamicClusterDetailForm dynamicClusterDetailForm = (DynamicClusterDetailForm)session.getAttribute("DynamicClusterDetailForm"); if (dynamicClusterDetailForm != null) { if (dynamicClusterDetailForm.getServerType().equals(MiddlewareServerConstants.WASAPP_SERVER)) { if (SecurityContext.isSecurityEnabled()) { contextUri = contextUri.replaceFirst("dynamicclusters", "clusters"); if ((adminAuthorizer.checkAccess(contextUri, "administrator")) || (adminAuthorizer.checkAccess(contextUri, "configurator"))) { isReadOnly = "false"; } } else { isReadOnly = "false"; } } } %> <% if (desc.equals("")) { desc = label; } if (hideLabel==null) { hideLabel = "false"; } %> <%if(includeTD == null || includeTD.equals("true")){%> <%}%> <% if (isRequired.equalsIgnoreCase("yes")) { %> <% if (hideLabel.equalsIgnoreCase("true")){%> <% } else if ((isReadOnly.equalsIgnoreCase("yes") || (isReadOnly.equalsIgnoreCase("true")))) { %> <% } else { %> <% } %> <% } else {%> <% if (hideLabel.equalsIgnoreCase("true")){%> <% } else if ((isReadOnly.equalsIgnoreCase("yes") || (isReadOnly.equalsIgnoreCase("true")))) { %> <% }else{ %> <% } %> <% } %> <% if (!hideLabel.equalsIgnoreCase("true")){%>
<% } %> <% if ((isReadOnly.equalsIgnoreCase("yes") || (isReadOnly.equalsIgnoreCase("true")))) { if(forceLength != null && forceLength.equalsIgnoreCase("true")){%> <%-- Need to include some element/style to respect whitespaces in names --%> <%----%> <% if (units != null && !units.equals(" ") && !units.equals("")) { %>   <% } } else { %> <%-- Need to include some element/style to respect whitespaces in names --%> <%----%>
 
<% if (units != null && !units.equals(" ") && !units.equals("")) { %>  <% } %>
<% } } else { if (isRequired.equalsIgnoreCase("yes")) { %> <% } else { %><% } if (units != null && !units.equals(" ") && !units.equals("")) { %>  <% } } %> <%if(includeTD == null || includeTD.equals("true")){%> <%}%>