Class Issue
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.system.Issue
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Object>
,Auditable
,AuthoredBean
,IDBean
,ViewEntry
,Cacheable
A bean for tracking development issues.
- Since:
- 1.0
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(IssueComment ic) Adds an IssueComment to this Issue.void
Associaates a virtual airline with this Issue.Returns the virtual airlines associated with this issue.getArea()
Returns the issue area.int
The database ID of the Person this issue is assigned to.Returns the object ID for this auditable object.int
Returns the Author of this bean.int
Returns the number of comments for this Issue.Returns all the comments associated with this issue.Returns the date/time this Issue was created on.Returns the issue description.Returns the date/time the last comment for this issue was created on.int
Returns the database ID of a linked Help Desk Issue.int
Returns the major version number this Issue applies to.int
Returns the minor version number this Issue applies to.Returns the issue priority.Returns the date/time this issue was resolved on.Returns the CSS class for this object if rendered in a view table.Returns the Issue security level.Returns the issue status.Returns the issue title.getType()
Returns the issue type.void
setAirlines
(Collection<String> airlineCodes) Updates the virtual airlines associated with this Issue.void
Updates this Issue's area.void
setAssignedTo
(int id) Updates the database ID of this Issue's assignee.void
setAuthorID
(int id) Updates the author of this bean.void
setCommentCount
(int cnt) Updates the number of comments for this Issue.void
Updates the creation date/time of this Issue.void
setDescription
(String desc) Updates the description of this Issue.void
Updates the last comment date/time for this Issue.void
setLinkedIssueID
(int id) Updates the database ID of a linked Help Desk issue.void
setMajorVersion
(int v) Updates the major version for this Issue.void
setMinorVersion
(int v) Updates the minor version for this Issue.void
Updates this Issue's priority.void
Updates the resolution date/time for this Issue.void
Updates this Issues's security level.void
setStatus
(IssueStatus pv) Updates this Issue's status.void
setSubject
(String subj) Updates this Issue's title.void
Updates this Issue's type.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.deltava.beans.Auditable
getAuditType, isCrossApp
-
Constructor Details
-
Issue
Creates a new Issue.- Parameters:
id
- the database IDsubj
- the issue title- Throws:
NullPointerException
- if subj is nullIllegalArgumentException
- if id is zero or negative- See Also:
-
Issue
Creates a new Issue that has not been saved to the database.- Parameters:
subj
- the issue title- Throws:
NullPointerException
- if subj is null- See Also:
-
-
Method Details
-
getSubject
-
getDescription
-
getComments
Returns all the comments associated with this issue.- Returns:
- a Collection of IssueComments
- See Also:
-
getAirlines
Returns the virtual airlines associated with this issue.- Returns:
- a Collection of AirlineInformation beans
-
getPriority
-
getStatus
-
getType
-
getArea
-
getSecurity
Returns the Issue security level.- Returns:
- the IssueSecurity
- See Also:
-
getCreatedOn
Returns the date/time this Issue was created on.- Returns:
- the creation date/time
- See Also:
-
getLastCommentOn
Returns the date/time the last comment for this issue was created on.- Returns:
- the creation date/time of the last comment
- See Also:
-
getResolvedOn
Returns the date/time this issue was resolved on.- Returns:
- the date/time the issue was resolved on, or null
- See Also:
-
getCommentCount
public int getCommentCount()Returns the number of comments for this Issue.- Returns:
- the number of comments
- See Also:
-
getAuthorID
public int getAuthorID()Description copied from interface:AuthoredBean
Returns the Author of this bean.- Specified by:
getAuthorID
in interfaceAuthoredBean
- Returns:
- the author's database ID
- See Also:
-
getAssignedTo
public int getAssignedTo()The database ID of the Person this issue is assigned to.- Returns:
- the database ID
- See Also:
-
getLinkedIssueID
public int getLinkedIssueID()Returns the database ID of a linked Help Desk Issue.- Returns:
- the database ID
- See Also:
-
getMajorVersion
public int getMajorVersion()Returns the major version number this Issue applies to.- Returns:
- the major version
- See Also:
-
getMinorVersion
public int getMinorVersion()Returns the minor version number this Issue applies to.- Returns:
- the minor version
- See Also:
-
add
Adds an IssueComment to this Issue. The issue ID will be automatically copied to the comment.- Parameters:
ic
- the new comment- Throws:
NullPointerException
- if ic is null- See Also:
-
setDescription
Updates the description of this Issue.- Parameters:
desc
- the new description- See Also:
-
setCreatedOn
Updates the creation date/time of this Issue.- Parameters:
d
- the new creation date/time- Throws:
IllegalArgumentException
- if d is null- See Also:
-
setLastCommentOn
Updates the last comment date/time for this Issue.- Parameters:
d
- the date/time the last comment was created- Throws:
IllegalArgumentException
- if d is null or before getCreatedOn()- See Also:
-
setResolvedOn
Updates the resolution date/time for this Issue.- Parameters:
d
- the date/time the Issue was resolved- Throws:
IllegalArgumentException
- if d is null or before getCreatedOn()- See Also:
-
setMajorVersion
public void setMajorVersion(int v) Updates the major version for this Issue.- Parameters:
v
- the major version- See Also:
-
setMinorVersion
public void setMinorVersion(int v) Updates the minor version for this Issue.- Parameters:
v
- the minor version- See Also:
-
setCommentCount
public void setCommentCount(int cnt) Updates the number of comments for this Issue.- Parameters:
cnt
- the number of comments- Throws:
IllegalArgumentException
- if comments are already populated- See Also:
-
addAirline
Associaates a virtual airline with this Issue.- Parameters:
ai
- an AirlineInformation bean
-
setAirlines
Updates the virtual airlines associated with this Issue.- Parameters:
airlineCodes
- a Collection of airline codes
-
setAuthorID
public void setAuthorID(int id) Description copied from interface:AuthoredBean
Updates the author of this bean.- Specified by:
setAuthorID
in interfaceAuthoredBean
- Parameters:
id
- the author's database ID.- See Also:
-
setAssignedTo
public void setAssignedTo(int id) Updates the database ID of this Issue's assignee.- Parameters:
id
- the database ID- Throws:
IllegalArgumentException
- if id is zero or negative- See Also:
-
setLinkedIssueID
public void setLinkedIssueID(int id) Updates the database ID of a linked Help Desk issue.- Parameters:
id
- the Help Desk Issue database ID- Throws:
IllegalArgumentException
- if id is negative- See Also:
-
setType
Updates this Issue's type.- Parameters:
pv
- the IssueType- See Also:
-
setArea
Updates this Issue's area.- Parameters:
pv
- the IssueArea- See Also:
-
setPriority
Updates this Issue's priority.- Parameters:
pv
- the IssuePriority- See Also:
-
setSecurity
Updates this Issues's security level.- Parameters:
pv
- the IssueSecurity- See Also:
-
setStatus
Updates this Issue's status.- Parameters:
pv
- the IssueStatus- See Also:
-
setSubject
Updates this Issue's title.- Parameters:
subj
- the new title- Throws:
NullPointerException
- if subj is null- See Also:
-
getAuditID
Description copied from interface:Auditable
Returns the object ID for this auditable object.- Specified by:
getAuditID
in interfaceAuditable
- Returns:
- the ID
-
getRowClassName
Description copied from interface:ViewEntry
Returns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassName
in interfaceViewEntry
- Returns:
- the CSS class name, or NULL if none
-