org.itracker.model
Class Issue

java.lang.Object
  extended by org.itracker.model.AbstractEntity
      extended by org.itracker.model.Issue
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Entity>, Entity

public class Issue
extends AbstractEntity
implements Comparable<Entity>

A project issue.

This class contains the core of the information we're managing.

Author:
ready
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.itracker.model.AbstractEntity
AbstractEntity.CreateDateComparator, AbstractEntity.IdComparator, AbstractEntity.LastModifiedDateComparator
 
Field Summary
static Comparator<Issue> OWNER_AND_STATUS_COMPARATOR
           
static Comparator<Issue> PROJECT_AND_STATUS_COMPARATOR
           
static Comparator<Issue> SEVERITY_COMPARATOR
           
static Comparator<Issue> STATUS_COMPARATOR
           
 
Fields inherited from class org.itracker.model.AbstractEntity
CREATE_DATE_COMPARATOR, ID_COMPARATOR, LAST_MODIFIED_DATE_COMPARATOR
 
Constructor Summary
Issue()
          Default constructor (required by Hibernate).
 
Method Summary
 List<IssueActivity> getActivities()
           
 List<IssueAttachment> getAttachments()
           
 List<Component> getComponents()
           
 User getCreator()
           
 String getDescription()
           
 List<IssueField> getFields()
           
 List<IssueHistory> getHistory()
           
 List<Notification> getNotifications()
           
 User getOwner()
           
 Project getProject()
           
 List<IssueRelation> getRelations()
           
 String getResolution()
           
 Integer getSeverity()
           
 Integer getStatus()
           
 Version getTargetVersion()
           
 List<Version> getVersions()
           
 void setActivities(List<IssueActivity> activities)
           
 void setAttachments(List<IssueAttachment> attachments)
           
 void setComponents(List<Component> components)
           
 void setCreator(User creator)
           
 void setDescription(String description)
           
 void setFields(List<IssueField> fields)
           
 void setHistory(List<IssueHistory> history)
           
 void setNotifications(List<Notification> notifications)
           
 void setOwner(User owner)
           
 void setProject(Project project)
           
 void setRelations(List<IssueRelation> relations)
           
 void setResolution(String resolution)
           
 void setSeverity(Integer severity)
           
 void setStatus(int status)
           
 void setTargetVersion(Version targetVersion)
           
 void setVersions(List<Version> versions)
           
 String toString()
           
 
Methods inherited from class org.itracker.model.AbstractEntity
clone, compareTo, equals, getCreateDate, getId, getLastModifiedDate, hashCode, isNew, setCreateDate, setId, setLastModifiedDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

STATUS_COMPARATOR

public static final Comparator<Issue> STATUS_COMPARATOR

PROJECT_AND_STATUS_COMPARATOR

public static final Comparator<Issue> PROJECT_AND_STATUS_COMPARATOR

OWNER_AND_STATUS_COMPARATOR

public static final Comparator<Issue> OWNER_AND_STATUS_COMPARATOR

SEVERITY_COMPARATOR

public static final Comparator<Issue> SEVERITY_COMPARATOR
Constructor Detail

Issue

public Issue()
Default constructor (required by Hibernate).

PENDING: should be private so that it can only be used by Hibernate, to ensure that the fields which form an instance's identity are always initialized/never null.

Method Detail

getActivities

public List<IssueActivity> getActivities()

setActivities

public void setActivities(List<IssueActivity> activities)

getAttachments

public List<IssueAttachment> getAttachments()

setAttachments

public void setAttachments(List<IssueAttachment> attachments)

getComponents

public List<Component> getComponents()

setComponents

public void setComponents(List<Component> components)

getCreator

public User getCreator()

setCreator

public void setCreator(User creator)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getFields

public List<IssueField> getFields()

setFields

public void setFields(List<IssueField> fields)

getHistory

public List<IssueHistory> getHistory()

setHistory

public void setHistory(List<IssueHistory> history)

getNotifications

public List<Notification> getNotifications()

setNotifications

public void setNotifications(List<Notification> notifications)

getOwner

public User getOwner()

setOwner

public void setOwner(User owner)

getProject

public Project getProject()

setProject

public void setProject(Project project)

getRelations

public List<IssueRelation> getRelations()

setRelations

public void setRelations(List<IssueRelation> relations)

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(int status)

getTargetVersion

public Version getTargetVersion()

setTargetVersion

public void setTargetVersion(Version targetVersion)

getVersions

public List<Version> getVersions()

setVersions

public void setVersions(List<Version> versions)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2012 itracker. All Rights Reserved.