Serializable
public class IssueForm extends ITrackerForm
Constructor | Description |
---|---|
IssueForm() |
Modifier and Type | Method | Description |
---|---|---|
org.itracker.model.Issue |
addAttachment(org.itracker.model.Issue issue,
org.itracker.model.Project project,
org.itracker.model.User user,
org.itracker.services.ITrackerServices services,
org.apache.struts.action.ActionMessages messages) |
Adds an attachment to issue.
|
void |
applyLimitedFields(org.itracker.model.Issue issue,
org.itracker.model.Project project,
org.itracker.model.User user,
Map<Integer,Set<org.itracker.model.PermissionType>> userPermissionsMap,
Locale locale,
org.itracker.services.IssueService issueService) |
|
org.apache.struts.upload.FormFile |
getAttachment() |
|
String |
getAttachmentDescription() |
|
String |
getCaller() |
|
Integer[] |
getComponents() |
|
Integer |
getCreatorId() |
|
HashMap<String,String> |
getCustomFields() |
|
String |
getDescription() |
|
String |
getHistory() |
|
Integer |
getId() |
|
Integer |
getOwnerId() |
|
Integer |
getPrevStatus() |
|
Integer |
getProjectId() |
|
Integer |
getRelatedIssueId() |
|
org.itracker.model.IssueRelation.Type |
getRelationType() |
|
String |
getResolution() |
|
Integer |
getSeverity() |
|
Integer |
getStatus() |
|
Integer |
getTargetVersion() |
|
Integer[] |
getVersions() |
|
void |
invokeProjectScripts(org.itracker.model.Project project,
int event,
Map<Integer,List<org.itracker.model.NameValuePair>> options,
org.apache.struts.action.ActionMessages errors) |
|
Map<Integer,List<org.itracker.model.NameValuePair>> |
invokeProjectScripts(org.itracker.model.Project project,
int event,
org.apache.struts.action.ActionMessages errors) |
|
static boolean |
isWorkflowScriptsAllowed() |
|
String |
processFieldScript(org.itracker.model.ProjectScript projectScript,
int event,
String currentValue,
List<org.itracker.model.NameValuePair> optionValues,
org.apache.struts.action.ActionMessages currentErrors) |
Run provided BEANSHELL script against form instance, taking into account
incoming event type, field raised an event and current values.
|
void |
processFieldScripts(List<org.itracker.model.ProjectScript> projectScriptModels,
int event,
Map<Integer,String> currentValues,
Map<Integer,List<org.itracker.model.NameValuePair>> optionValues,
org.apache.struts.action.ActionMessages currentErrors) |
The most general way to run scripts.
|
org.itracker.model.Issue |
processFullEdit(org.itracker.model.Issue issue,
org.itracker.model.Project project,
org.itracker.model.User user,
Map<Integer,Set<org.itracker.model.PermissionType>> userPermissions,
Locale locale,
org.itracker.services.IssueService issueService,
org.apache.struts.action.ActionMessages errors) |
|
org.itracker.model.Issue |
processLimitedEdit(org.itracker.model.Issue issue,
org.itracker.model.Project project,
org.itracker.model.User user,
Map<Integer,Set<org.itracker.model.PermissionType>> userPermissionsMap,
Locale locale,
org.itracker.services.IssueService issueService,
org.apache.struts.action.ActionMessages messages) |
|
void |
setAttachment(org.apache.struts.upload.FormFile attachment) |
|
void |
setAttachmentDescription(String attachmentDescription) |
|
void |
setCaller(String caller) |
|
void |
setComponents(Integer[] components) |
|
void |
setCreatorId(Integer creatorId) |
|
void |
setCustomFields(HashMap<String,String> customFields) |
|
void |
setDescription(String description) |
|
void |
setHistory(String history) |
|
void |
setId(Integer id) |
|
void |
setOwnerId(Integer ownerId) |
|
void |
setPrevStatus(Integer prevStatus) |
|
void |
setProjectId(Integer projectId) |
|
void |
setRelatedIssueId(Integer relatedIssueId) |
|
void |
setRelationType(org.itracker.model.IssueRelation.Type relationType) |
|
void |
setResolution(String resolution) |
|
void |
setSeverity(Integer severity) |
|
void |
setStatus(Integer status) |
|
void |
setTargetVersion(Integer targetVersion) |
|
void |
setupIssueForm(org.itracker.model.Issue issue,
Map<Integer,List<org.itracker.model.NameValuePair>> listOptions,
javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMessages errors) |
|
static void |
setupJspEnv(org.apache.struts.action.ActionMapping mapping,
IssueForm issueForm,
javax.servlet.http.HttpServletRequest request,
org.itracker.model.Issue issue,
org.itracker.services.IssueService issueService,
org.itracker.services.UserService userService,
Map<Integer,Set<org.itracker.model.PermissionType>> userPermissions,
Map<Integer,List<org.itracker.model.NameValuePair>> listOptions,
org.apache.struts.action.ActionMessages errors) |
method needed to prepare request for edit_issue.jsp
|
static void |
setupNotificationsInRequest(javax.servlet.http.HttpServletRequest request,
org.itracker.model.Issue issue,
org.itracker.services.NotificationService notificationService) |
|
static void |
setupProjectFieldsMapJspEnv(List<org.itracker.model.CustomField> projectFields,
Collection<org.itracker.model.IssueField> issueFields,
javax.servlet.http.HttpServletRequest request) |
Get project fields and put name and value in map
TODO: simplify this code, it's not readable, unsave yet.
|
protected static void |
setupRelationsRequestEnv(List<org.itracker.model.IssueRelation> relations,
javax.servlet.http.HttpServletRequest request) |
|
void |
setVersions(Integer[] versions) |
|
org.apache.struts.action.ActionErrors |
validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request) |
This methods adds in validation for custom fields.
|
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate
getITrackerServices
public void processFieldScripts(List<org.itracker.model.ProjectScript> projectScriptModels, int event, Map<Integer,String> currentValues, Map<Integer,List<org.itracker.model.NameValuePair>> optionValues, org.apache.struts.action.ActionMessages currentErrors) throws org.itracker.WorkflowException
projectScriptModels
- is a list of scripts.event
- is an event type.currentValues
- values mapped to field-idsoptionValues
- is a map of current values to fields by field-Id.currentErrors
- is a container for errors.org.itracker.WorkflowException
public String processFieldScript(org.itracker.model.ProjectScript projectScript, int event, String currentValue, List<org.itracker.model.NameValuePair> optionValues, org.apache.struts.action.ActionMessages currentErrors) throws org.itracker.WorkflowException
projectScript
- is a script to run.event
- is an event type.currentValue
- the current field valueoptionValues
- is a set of valid option-values.currentErrors
- is a container for occured errors.org.itracker.WorkflowException
public final org.itracker.model.Issue processFullEdit(org.itracker.model.Issue issue, org.itracker.model.Project project, org.itracker.model.User user, Map<Integer,Set<org.itracker.model.PermissionType>> userPermissions, Locale locale, org.itracker.services.IssueService issueService, org.apache.struts.action.ActionMessages errors) throws Exception
Exception
public final void applyLimitedFields(org.itracker.model.Issue issue, org.itracker.model.Project project, org.itracker.model.User user, Map<Integer,Set<org.itracker.model.PermissionType>> userPermissionsMap, Locale locale, org.itracker.services.IssueService issueService) throws Exception
Exception
public final org.itracker.model.Issue processLimitedEdit(org.itracker.model.Issue issue, org.itracker.model.Project project, org.itracker.model.User user, Map<Integer,Set<org.itracker.model.PermissionType>> userPermissionsMap, Locale locale, org.itracker.services.IssueService issueService, org.apache.struts.action.ActionMessages messages) throws Exception
Exception
public static void setupJspEnv(org.apache.struts.action.ActionMapping mapping, IssueForm issueForm, javax.servlet.http.HttpServletRequest request, org.itracker.model.Issue issue, org.itracker.services.IssueService issueService, org.itracker.services.UserService userService, Map<Integer,Set<org.itracker.model.PermissionType>> userPermissions, Map<Integer,List<org.itracker.model.NameValuePair>> listOptions, org.apache.struts.action.ActionMessages errors) throws javax.servlet.ServletException, IOException, org.itracker.WorkflowException
javax.servlet.ServletException
IOException
org.itracker.WorkflowException
public static final void setupProjectFieldsMapJspEnv(List<org.itracker.model.CustomField> projectFields, Collection<org.itracker.model.IssueField> issueFields, javax.servlet.http.HttpServletRequest request)
protected static void setupRelationsRequestEnv(List<org.itracker.model.IssueRelation> relations, javax.servlet.http.HttpServletRequest request)
public static void setupNotificationsInRequest(javax.servlet.http.HttpServletRequest request, org.itracker.model.Issue issue, org.itracker.services.NotificationService notificationService)
public org.itracker.model.Issue addAttachment(org.itracker.model.Issue issue, org.itracker.model.Project project, org.itracker.model.User user, org.itracker.services.ITrackerServices services, org.apache.struts.action.ActionMessages messages)
public final void setupIssueForm(org.itracker.model.Issue issue, Map<Integer,List<org.itracker.model.NameValuePair>> listOptions, javax.servlet.http.HttpServletRequest request, org.apache.struts.action.ActionMessages errors) throws org.itracker.WorkflowException
org.itracker.WorkflowException
public void invokeProjectScripts(org.itracker.model.Project project, int event, Map<Integer,List<org.itracker.model.NameValuePair>> options, org.apache.struts.action.ActionMessages errors) throws org.itracker.WorkflowException
org.itracker.WorkflowException
public Map<Integer,List<org.itracker.model.NameValuePair>> invokeProjectScripts(org.itracker.model.Project project, int event, org.apache.struts.action.ActionMessages errors) throws org.itracker.WorkflowException
org.itracker.WorkflowException
public org.apache.struts.upload.FormFile getAttachment()
public void setAttachment(org.apache.struts.upload.FormFile attachment)
public String getAttachmentDescription()
public void setAttachmentDescription(String attachmentDescription)
public String getCaller()
public void setCaller(String caller)
public Integer[] getComponents()
public void setComponents(Integer[] components)
public Integer getCreatorId()
public void setCreatorId(Integer creatorId)
public String getDescription()
public void setDescription(String description)
public String getHistory()
public void setHistory(String history)
public Integer getId()
public void setId(Integer id)
public Integer getOwnerId()
public void setOwnerId(Integer ownerId)
public Integer getPrevStatus()
public void setPrevStatus(Integer prevStatus)
public Integer getProjectId()
public void setProjectId(Integer projectId)
public Integer getRelatedIssueId()
public void setRelatedIssueId(Integer relatedIssueId)
public org.itracker.model.IssueRelation.Type getRelationType()
public void setRelationType(org.itracker.model.IssueRelation.Type relationType)
public String getResolution()
public void setResolution(String resolution)
public Integer getSeverity()
public void setSeverity(Integer severity)
public Integer getStatus()
public void setStatus(Integer status)
public Integer getTargetVersion()
public void setTargetVersion(Integer targetVersion)
public Integer[] getVersions()
public void setVersions(Integer[] versions)
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
validate
in class org.apache.struts.validator.ValidatorForm
mapping
- the ActionMapping objectrequest
- the current HttpServletRequest objectpublic static boolean isWorkflowScriptsAllowed()
Copyright © 2002–2019 itracker. All rights reserved.