<%-- * Copyright by Intland Software * * All rights reserved. * * This software is the confidential and proprietary information * of Intland Software. ("Confidential Information"). You * shall not disclose such Confidential Information and shall use * it only in accordance with the terms of the license agreement * you entered into with Intland. * * $Revision$ $Date$ --%> <%@ taglib uri="jstl-c" prefix="c" %> <%@ taglib uri="struts-html" prefix="html" %> <%@ taglib uri="http://ditchnet.org/jsp-tabs-taglib" prefix="tab" %> <%@ taglib uri="acltaglib" prefix="acl" %> <%@ taglib uri="uitaglib" prefix="ui" %> <%@ taglib uri="log" prefix="log" %> <%@ page import="com.intland.codebeamer.manager.TrackerManager"%> <%@ page import="com.intland.codebeamer.persistence.dto.TrackerDto"%> <%@ page import="com.intland.codebeamer.persistence.dto.TrackerLayoutDto"%> <%@ page import="com.intland.codebeamer.persistence.dto.TrackerLayoutLabelDto"%> <%@ page import="com.intland.codebeamer.persistence.dto.PermissionDto"%> <%@ page import="com.intland.codebeamer.persistence.dao.impl.TrackerDaoImpl"%> <%@ page import="com.intland.codebeamer.persistence.dao.impl.EntityCache"%> <%@ page import="com.intland.codebeamer.security.ProjectRequestWrapper"%> <%@ page import="com.intland.codebeamer.security.acl.Acl"%> <%@ page import="com.intland.codebeamer.Config"%> <% String tracker_id = (String)pageContext.findAttribute("tracker_id"); if (tracker_id == null || tracker_id.length() == 0) { tracker_id = "-1"; } TrackerDto tracker = (TrackerDto) request.getAttribute(ProjectRequestWrapper.PROJECT_AWARE_DTO); TrackerLayoutDto layout = TrackerManager.getInstance().getBasicLayout(tracker.getId()); EntityCache cache = EntityCache.getInstance(Acl.getActiveUser()); boolean linked = false; if (tracker.getTemplateId() != null) { TrackerDto template = cache.getTracker(tracker.getTemplateId()); if (template != null && template.getProject() != null) { linked = cache.getUserPermissions(EntityCache.PROJECT_TYPE, template.getProject().getId()).contains(PermissionDto.TRACKER_ADMIN); } } pageContext.setAttribute("tracker", tracker); pageContext.setAttribute("layout", layout); pageContext.setAttribute("linkedLayout", Boolean.valueOf(linked)); java.util.List choiceFieldIds = new java.util.ArrayList(); pageContext.setAttribute("choiceFieldIds", choiceFieldIds); if (layout != null) { for (TrackerLayoutLabelDto field : layout.getFields()) { if (field.isChoiceField() && !field.isUserReferenceField() && !field.isDynamicChoice()) { choiceFieldIds.add(field.getId()); } } } %> <%-- param.categoryMode parameter set to "true" if creating/editing a Category-tracker --%>
» Customization
You can edit its name, description, type or other attributes, activate the workflow on this ${TrackerTypeName} or delete this ${TrackerTypeName}. You can ${canAdminPermission ? 'set' : 'only view'} ${TrackerTypeName} access permissions by roles.
You can ${canAdminTracker and licenseCode.enabled.customWorkflow ? 'edit, add and delete' : 'only view'} state transitions and ${canAdminPermission ? 'set transition permissions' : 'their permissions'}.
You can ${canAdminPermission ? 'set' : 'only view'} field access permissions and default values by roles and status.
You can edit field labels, their order and appearance.
You can edit the following choice lists:
${label}
You can configure the escalation rules for tracker items here.
You can edit who should be notified via e-mail when a new item is submitted or modified in this ${TrackerTypeName}.
Warning: this is just experimental and incomplete code! DO NOT USE ;-) !