Serializable
public class IssueForm extends ITrackerForm
Constructor | Description |
---|---|
IssueForm() |
Modifier and Type | Method | Description |
---|---|---|
Issue |
addAttachment(Issue issue,
Project project,
User user,
ITrackerServices services,
org.apache.struts.action.ActionMessages messages) |
Adds an attachment to issue.
|
void |
applyLimitedFields(Issue issue,
Project project,
User user,
Map<Integer,Set<PermissionType>> userPermissionsMap,
Locale locale,
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() |
|
IssueRelation.Type |
getRelationType() |
|
String |
getResolution() |
|
Integer |
getSeverity() |
|
Integer |
getStatus() |
|
Integer |
getTargetVersion() |
|
Integer[] |
getVersions() |
|
void |
invokeProjectScripts(Project project,
int event,
Map<Integer,List<NameValuePair>> options,
org.apache.struts.action.ActionMessages errors) |
|
Map<Integer,List<NameValuePair>> |
invokeProjectScripts(Project project,
int event,
org.apache.struts.action.ActionMessages errors) |
|
static boolean |
isWorkflowScriptsAllowed() |
|
String |
processFieldScript(ProjectScript projectScript,
int event,
String currentValue,
List<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<ProjectScript> projectScriptModels,
int event,
Map<Integer,String> currentValues,
Map<Integer,List<NameValuePair>> optionValues,
org.apache.struts.action.ActionMessages currentErrors) |
The most general way to run scripts.
|
Issue |
processFullEdit(Issue issue,
Project project,
User user,
Map<Integer,Set<PermissionType>> userPermissions,
Locale locale,
IssueService issueService,
org.apache.struts.action.ActionMessages errors) |
|
Issue |
processLimitedEdit(Issue issue,
Project project,
User user,
Map<Integer,Set<PermissionType>> userPermissionsMap,
Locale locale,
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(IssueRelation.Type relationType) |
|
void |
setResolution(String resolution) |
|
void |
setSeverity(Integer severity) |
|
void |
setStatus(Integer status) |
|
void |
setTargetVersion(Integer targetVersion) |
|
void |
setupIssueForm(Issue issue,
Map<Integer,List<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,
Issue issue,
IssueService issueService,
UserService userService,
Map<Integer,Set<PermissionType>> userPermissions,
Map<Integer,List<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,
Issue issue,
NotificationService notificationService) |
|
static void |
setupProjectFieldsMapJspEnv(List<CustomField> projectFields,
Collection<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<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<ProjectScript> projectScriptModels, int event, Map<Integer,String> currentValues, Map<Integer,List<NameValuePair>> optionValues, org.apache.struts.action.ActionMessages currentErrors) throws 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.WorkflowException
public String processFieldScript(ProjectScript projectScript, int event, String currentValue, List<NameValuePair> optionValues, org.apache.struts.action.ActionMessages currentErrors) throws 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.WorkflowException
public final Issue processFullEdit(Issue issue, Project project, User user, Map<Integer,Set<PermissionType>> userPermissions, Locale locale, IssueService issueService, org.apache.struts.action.ActionMessages errors) throws Exception
Exception
public final void applyLimitedFields(Issue issue, Project project, User user, Map<Integer,Set<PermissionType>> userPermissionsMap, Locale locale, IssueService issueService) throws Exception
Exception
public final Issue processLimitedEdit(Issue issue, Project project, User user, Map<Integer,Set<PermissionType>> userPermissionsMap, Locale locale, 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, Issue issue, IssueService issueService, UserService userService, Map<Integer,Set<PermissionType>> userPermissions, Map<Integer,List<NameValuePair>> listOptions, org.apache.struts.action.ActionMessages errors) throws javax.servlet.ServletException, IOException, WorkflowException
javax.servlet.ServletException
IOException
WorkflowException
public static final void setupProjectFieldsMapJspEnv(List<CustomField> projectFields, Collection<IssueField> issueFields, javax.servlet.http.HttpServletRequest request)
protected static void setupRelationsRequestEnv(List<IssueRelation> relations, javax.servlet.http.HttpServletRequest request)
public static void setupNotificationsInRequest(javax.servlet.http.HttpServletRequest request, Issue issue, NotificationService notificationService)
public Issue addAttachment(Issue issue, Project project, User user, ITrackerServices services, org.apache.struts.action.ActionMessages messages)
public final void setupIssueForm(Issue issue, Map<Integer,List<NameValuePair>> listOptions, javax.servlet.http.HttpServletRequest request, org.apache.struts.action.ActionMessages errors) throws WorkflowException
WorkflowException
public void invokeProjectScripts(Project project, int event, Map<Integer,List<NameValuePair>> options, org.apache.struts.action.ActionMessages errors) throws WorkflowException
WorkflowException
public Map<Integer,List<NameValuePair>> invokeProjectScripts(Project project, int event, org.apache.struts.action.ActionMessages errors) throws WorkflowException
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 IssueRelation.Type getRelationType()
public void setRelationType(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.