org.itracker.web.forms
Class IssueForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by org.apache.struts.validator.ValidatorForm
          extended by org.itracker.web.forms.ITrackerForm
              extended by org.itracker.web.forms.IssueForm
All Implemented Interfaces:
Serializable

public class IssueForm
extends ITrackerForm

This form is by the struts actions to pass issue data.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.validator.ValidatorForm
page, validatorResults
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
IssueForm()
           
 
Method Summary
 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()
           
 Integer getRelationType()
           
 String getResolution()
           
 Integer getSeverity()
           
 Integer getStatus()
           
 Integer getTargetVersion()
           
 Integer[] getVersions()
           
 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(Integer relationType)
           
 void setResolution(String resolution)
           
 void setSeverity(Integer severity)
           
 void setStatus(Integer status)
           
 void setTargetVersion(Integer targetVersion)
           
 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.
 
Methods inherited from class org.itracker.web.forms.ITrackerForm
getITrackerServices
 
Methods inherited from class org.apache.struts.validator.ValidatorForm
getPage, getResultValueMap, getValidationKey, getValidatorResults, reset, setPage, setValidatorResults
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueForm

public IssueForm()
Method Detail

getAttachment

public org.apache.struts.upload.FormFile getAttachment()

setAttachment

public void setAttachment(org.apache.struts.upload.FormFile attachment)

getAttachmentDescription

public String getAttachmentDescription()

setAttachmentDescription

public void setAttachmentDescription(String attachmentDescription)

getCaller

public String getCaller()

setCaller

public void setCaller(String caller)

getComponents

public Integer[] getComponents()

setComponents

public void setComponents(Integer[] components)

getCreatorId

public Integer getCreatorId()

setCreatorId

public void setCreatorId(Integer creatorId)

getCustomFields

public HashMap<String,String> getCustomFields()

setCustomFields

public void setCustomFields(HashMap<String,String> customFields)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getHistory

public String getHistory()

setHistory

public void setHistory(String history)

getId

public Integer getId()

setId

public void setId(Integer id)

getOwnerId

public Integer getOwnerId()

setOwnerId

public void setOwnerId(Integer ownerId)

getPrevStatus

public Integer getPrevStatus()

setPrevStatus

public void setPrevStatus(Integer prevStatus)

getProjectId

public Integer getProjectId()

setProjectId

public void setProjectId(Integer projectId)

getRelatedIssueId

public Integer getRelatedIssueId()

setRelatedIssueId

public void setRelatedIssueId(Integer relatedIssueId)

getRelationType

public Integer getRelationType()

setRelationType

public void setRelationType(Integer relationType)

getResolution

public String getResolution()

setResolution

public void setResolution(String resolution)

getSeverity

public Integer getSeverity()

setSeverity

public void setSeverity(Integer severity)

getStatus

public Integer getStatus()

setStatus

public void setStatus(Integer status)

getTargetVersion

public Integer getTargetVersion()

setTargetVersion

public void setTargetVersion(Integer targetVersion)

getVersions

public Integer[] getVersions()

setVersions

public void setVersions(Integer[] versions)

validate

public 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. It makes sure the datatype matches and also that all required fields have been populated.

Overrides:
validate in class org.apache.struts.validator.ValidatorForm
Parameters:
mapping - the ActionMapping object
request - the current HttpServletRequest object
Returns:
an ActionErrors object containing any validation errors


Copyright © 2002-2012 itracker. All Rights Reserved.