openfuture.bugbase.domain
Class BugReport

java.lang.Object
  |
  +--openfuture.bugbase.domain.DomainObject
        |
        +--openfuture.bugbase.domain.BugReport
All Implemented Interfaces:
java.io.Serializable

public class BugReport
extends DomainObject
implements java.io.Serializable

See Also:
Serialized Form

Fields inherited from class openfuture.bugbase.domain.DomainObject
STATE_CLEAN, STATE_DELETED, STATE_DIRTY, STATE_NEW
 
Constructor Summary
BugReport()
           
BugReport(java.lang.String project, java.lang.Integer id, java.lang.String title, java.lang.String description, java.lang.String packageName, ErrorLevel errorLevel, java.util.Date dateReported, java.util.Date dateStarted, java.util.Date dateFixed, java.util.Date dateRejected, User reporter, User doctor)
           
BugReport(java.lang.String project, java.lang.Integer id, java.lang.String title, java.lang.String description, java.lang.String packageName, ErrorLevel errorLevel, java.util.Date dateReported, java.util.Date dateStarted, java.util.Date dateFixed, java.util.Date dateRejected, User reporter, User doctor, java.lang.String attachmentPath)
           
BugReport(java.lang.String project, User reporter)
           
 
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.
 User getDoctor()
          Get the value of doctor.
 ErrorLevel getErrorLevel()
          Get the value of errorLevel.
 java.lang.String getGroupid()
          Get the value of groupid.
 java.lang.Integer getId()
          Get the value of id.
 java.lang.String getPackageName()
          Get the value of packageName.
 java.lang.String getProject()
          Get the value of project.
 User getReporter()
          Get the value of reporter.
 BugReportStatus getStatus()
          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 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 setDoctor(User v)
          Set the value of doctor.
 void setErrorLevel(ErrorLevel v)
          Set the value of errorLevel.
 void setGroupid(java.lang.String v)
          Set the value of groupid.
 void setId(java.lang.Integer v)
          Set the value of id.
 void setPackageName(java.lang.String v)
          Set the value of packageName.
 void setProject(java.lang.String v)
          Set the value of project.
 void setReporter(User v)
          Set the value of reporter.
 void setTitle(java.lang.String v)
          Set the value of title.
 java.lang.String toEmailContent()
          Create a report of the bug status to be sent by email.
 java.util.LinkedList validate()
          Check, if all mandatory fields are set.
 
Methods inherited from class openfuture.bugbase.domain.DomainObject
getState, isDeleted, isDirty, isNew, setClean, setDirty, setModified, setState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BugReport

public BugReport()

BugReport

public BugReport(java.lang.String project,
                 User reporter)

BugReport

public BugReport(java.lang.String project,
                 java.lang.Integer id,
                 java.lang.String title,
                 java.lang.String description,
                 java.lang.String packageName,
                 ErrorLevel errorLevel,
                 java.util.Date dateReported,
                 java.util.Date dateStarted,
                 java.util.Date dateFixed,
                 java.util.Date dateRejected,
                 User reporter,
                 User doctor)

BugReport

public BugReport(java.lang.String project,
                 java.lang.Integer id,
                 java.lang.String title,
                 java.lang.String description,
                 java.lang.String packageName,
                 ErrorLevel errorLevel,
                 java.util.Date dateReported,
                 java.util.Date dateStarted,
                 java.util.Date dateFixed,
                 java.util.Date dateRejected,
                 User reporter,
                 User doctor,
                 java.lang.String attachmentPath)
Method Detail

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.

getId

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

setId

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

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.

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.

getReporter

public User getReporter()
Get the value of reporter.
Returns:
Value of reporter.

setReporter

public void setReporter(User v)
Set the value of reporter.
Parameters:
v - Value to assign to reporter.

getDoctor

public User getDoctor()
Get the value of doctor.
Returns:
Value of doctor.

setDoctor

public void setDoctor(User v)
Set the value of doctor.
Parameters:
v - Value to assign to doctor.

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.

getProject

public java.lang.String getProject()
Get the value of project.
Returns:
Value of project.

setProject

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

getErrorLevel

public ErrorLevel getErrorLevel()
Get the value of errorLevel.
Returns:
Value of errorLevel.

setErrorLevel

public void setErrorLevel(ErrorLevel 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.

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.

getStatus

public BugReportStatus getStatus()
Derive the status from the date fields.
Returns:
the status of the bug report

toEmailContent

public java.lang.String toEmailContent()
Create a report of the bug status to be sent by email.
Returns:
content of an email message

validate

public java.util.LinkedList validate()
Check, if all mandatory fields are set. All fields are mandatory except for attachment.
Overrides:
validate in class DomainObject
Returns:
list of missing entries.


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