<%@ page language="java" import="com.ibm.ws.batch.jobmanagement.web.forms.AbstractDetailForm,com.ibm.ws.batch.jobmanagement.web.util.JMCUtils,com.ibm.ws.batch.security.BatchSecurity,com.ibm.websphere.wim.SchemaConstants"%> <%@ page import="com.ibm.ws.security.core.SecurityContext" errorPage="/errors/error.jsp" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <% boolean isAdmin = true; if (SecurityContext.isSecurityEnabled() && !request.isUserInRole("lradmin")) isAdmin = false; %> <% boolean isSubmitter = true; if (SecurityContext.isSecurityEnabled() && !request.isUserInRole("lrsubmitter")) isSubmitter = false; BatchSecurity.JOB_SECURITY_POLICY currentSecurityPolicy = BatchSecurity.getCurrentBatchSecurityPolicy(); if((currentSecurityPolicy.equals(BatchSecurity.JOB_SECURITY_POLICY.ROLE)) && ((collectionName == "JobCollectionForm") || (collectionName == "SavedJobCollectionForm" ) || (collectionName == "JobScheduleCollectionForm"))) { propertyList.remove(propertyList.size() - 1); } %>
<%@ include file="/tiles/preferences.jspf" %> <% if (isAdmin || isSubmitter) { %> <% } %> <%@ include file="/tiles/collectionButtons.jspf" %> <% for (int i = 0; i < propertyList.size(); i++) { String property = (String) propertyList.get(i); %> <% } %> <% int r = 0; %> <% AbstractDetailForm df = (AbstractDetailForm) detailForm; for (int i = 0; i < propertyList.size(); i++) { String property = (String) propertyList.get(i); %> <% String propertyLink = propertyValue; if (df.isPropertyNeedConvertToCharset(property)) { propertyLink = JMCUtils.urlEncode(propertyValue); propertyValue = JMCUtils.convertToCharset(propertyValue, response.getCharacterEncoding()); } if (i == 0) { %> <% } %> <% } r++; %>
<% if (property.equals(refreshColumn)) { %> " alt="" align="texttop" border="0"/> <% } %>
<% if (i == 0) { %> <%=propertyValue%> <% } else { if (df.isPropertyNeedTranslate(property, propertyValue)) { %> <% } else { %> <%=propertyValue%> <% } } %>