openfuture.bugbase.forms
Class BugReportForm

java.lang.Object
  |
  +--org.apache.struts.action.ActionForm
        |
        +--openfuture.bugbase.forms.BugReportForm
All Implemented Interfaces:
java.io.Serializable

public class BugReportForm
extends org.apache.struts.action.ActionForm

Bean for bug reports.

Created: Fri Jan 12 08:03:06 2001

Version:
$Revision: 1.5 $
Author:
Wolfgang Reissenberger
See Also:
Serialized Form

Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
BugReportForm()
          Creates a BugReportForm instance.
 
Method Summary
 java.lang.String getAttachmentPath()
          Get the value of attachmentPath.
 java.util.Date getDateFixed()
          Get the value of dateFixed.
 java.util.Date getDateRejected()
          Get the value of dateRejected.
 java.util.Date getDateReported()
          Get the value of dateReported.
 java.util.Date getDateStarted()
          Get the value of dateStarted.
 java.lang.String getDescription()
          Get the value of description.
 java.lang.String getErrorLevel()
          Get the value of errorLevel.
 java.lang.String getErrorLevelText()
          Get the textual description of the error level.
 java.lang.String getFilename()
          Get the value of filename.
 java.lang.String getGroupid()
          Get the value of groupid.
 java.lang.String getId()
          Get the value of id.
 MasterDataProvider getMasterDataProvider()
          Get the value of masterDataProvider.
 java.lang.String getPackageName()
          Get the value of packageName.
 java.lang.String getStatus()
          Get the value of status.
 java.lang.String getStatusText()
          Derive the status from the date fields.
 java.lang.String getTitle()
          Get the value of title.
 void setAttachmentPath(java.lang.String v)
          Set the value of attachmentPath.
 void setBugReport(BugReport report)
          Convenience method setting all properties from a given bug report.
 void setDateFixed(java.util.Date v)
          Set the value of dateFixed.
 void setDateRejected(java.util.Date v)
          Set the value of dateRejected.
 void setDateReported(java.util.Date v)
          Set the value of dateReported.
 void setDateStarted(java.util.Date v)
          Set the value of dateStarted.
 void setDescription(java.lang.String v)
          Set the value of description.
 void setErrorLevel(java.lang.String v)
          Set the value of errorLevel.
 void setFilename(java.lang.String v)
          Set the value of filename.
 void setGroupid(java.lang.String v)
          Set the value of groupid.
 void setId(java.lang.String v)
          Set the value of id.
 void setMasterDataProvider(MasterDataProvider v)
          Set the value of masterDataProvider.
 void setPackageName(java.lang.String v)
          Set the value of packageName.
 void setStatus(java.lang.String v)
          Set the value of status.
 void setTitle(java.lang.String v)
          Set the value of title.
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Check, if all mandatory fields are set.
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BugReportForm

public BugReportForm()
Creates a BugReportForm instance. The error level is set to disturbing
Method Detail

getId

public java.lang.String getId()
Get the value of id.
Returns:
value of id.

setId

public void setId(java.lang.String v)
Set the value of id.
Parameters:
v - Value to assign to id.

getTitle

public java.lang.String getTitle()
Get the value of title.
Returns:
Value of title.

setTitle

public void setTitle(java.lang.String v)
Set the value of title.
Parameters:
v - Value to assign to title.

getDescription

public java.lang.String getDescription()
Get the value of description.
Returns:
Value of description.

setDescription

public void setDescription(java.lang.String v)
Set the value of description.
Parameters:
v - Value to assign to description.

getPackageName

public java.lang.String getPackageName()
Get the value of packageName.
Returns:
Value of packageName.

setPackageName

public void setPackageName(java.lang.String v)
Set the value of packageName.
Parameters:
v - Value to assign to packageName.

getErrorLevel

public java.lang.String getErrorLevel()
Get the value of errorLevel.
Returns:
Value of errorLevel.

getErrorLevelText

public java.lang.String getErrorLevelText()
Get the textual description of the error level.
Returns:
Value of errorLevel.

setErrorLevel

public void setErrorLevel(java.lang.String v)
Set the value of errorLevel.
Parameters:
v - Value to assign to errorLevel.

getGroupid

public java.lang.String getGroupid()
Get the value of groupid.
Returns:
Value of groupid.

setGroupid

public void setGroupid(java.lang.String v)
Set the value of groupid.
Parameters:
v - Value to assign to groupid.

getFilename

public java.lang.String getFilename()
Get the value of filename.
Returns:
Value of filename.

setFilename

public void setFilename(java.lang.String v)
Set the value of filename.
Parameters:
v - Value to assign to filename.

getAttachmentPath

public java.lang.String getAttachmentPath()
Get the value of attachmentPath.
Returns:
value of attachmentPath.

setAttachmentPath

public void setAttachmentPath(java.lang.String v)
Set the value of attachmentPath.
Parameters:
v - Value to assign to attachmentPath.

getDateReported

public java.util.Date getDateReported()
Get the value of dateReported.
Returns:
Value of dateReported.

setDateReported

public void setDateReported(java.util.Date v)
Set the value of dateReported.
Parameters:
v - Value to assign to dateReported.

getDateStarted

public java.util.Date getDateStarted()
Get the value of dateStarted.
Returns:
Value of dateStarted.

setDateStarted

public void setDateStarted(java.util.Date v)
Set the value of dateStarted.
Parameters:
v - Value to assign to dateStarted.

getDateFixed

public java.util.Date getDateFixed()
Get the value of dateFixed.
Returns:
Value of dateFixed.

setDateFixed

public void setDateFixed(java.util.Date v)
Set the value of dateFixed.
Parameters:
v - Value to assign to dateFixed.

getDateRejected

public java.util.Date getDateRejected()
Get the value of dateRejected.
Returns:
Value of dateRejected.

setDateRejected

public void setDateRejected(java.util.Date v)
Set the value of dateRejected.
Parameters:
v - Value to assign to dateRejected.

getStatus

public java.lang.String getStatus()
Get the value of status.
Returns:
value of status.

setStatus

public void setStatus(java.lang.String v)
Set the value of status.
Parameters:
v - Value to assign to status.

getStatusText

public java.lang.String getStatusText()
Derive the status from the date fields.
Returns:
the status of the bug report

getMasterDataProvider

public MasterDataProvider getMasterDataProvider()
Get the value of masterDataProvider.
Returns:
value of masterDataProvider.

setMasterDataProvider

public void setMasterDataProvider(MasterDataProvider v)
Set the value of masterDataProvider.
Parameters:
v - Value to assign to masterDataProvider.

setBugReport

public void setBugReport(BugReport report)
Convenience method setting all properties from a given bug report.
Parameters:
report - the bug report

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      javax.servlet.http.HttpServletRequest request)
Check, if all mandatory fields are set. All fields are mandatory except for filename.
Overrides:
validate in class org.apache.struts.action.ActionForm
Parameters:
mapping - The mapping used to select this instance
request - The servlet request we are processing
Returns:
error messages.


Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.