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 TypeMethodDescriptionvoidadd(IssueComment ic) Adds an IssueComment to this Issue.voidAssociaates a virtual airline with this Issue.Returns the virtual airlines associated with this issue.getArea()Returns the issue area.intThe database ID of the Person this issue is assigned to.Returns the object ID for this auditable object.intReturns the Author of this bean.intReturns 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.intReturns the database ID of a linked Help Desk Issue.intReturns the major version number this Issue applies to.intReturns 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.voidsetAirlines(Collection<String> airlineCodes) Updates the virtual airlines associated with this Issue.voidUpdates this Issue's area.voidsetAssignedTo(int id) Updates the database ID of this Issue's assignee.voidsetAuthorID(int id) Updates the author of this bean.voidsetCommentCount(int cnt) Updates the number of comments for this Issue.voidUpdates the creation date/time of this Issue.voidsetDescription(String desc) Updates the description of this Issue.voidUpdates the last comment date/time for this Issue.voidsetLinkedIssueID(int id) Updates the database ID of a linked Help Desk issue.voidsetMajorVersion(int v) Updates the major version for this Issue.voidsetMinorVersion(int v) Updates the minor version for this Issue.voidUpdates this Issue's priority.voidUpdates the resolution date/time for this Issue.voidUpdates this Issues's security level.voidsetStatus(IssueStatus pv) Updates this Issue's status.voidsetSubject(String subj) Updates this Issue's title.voidUpdates this Issue's type.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateIDMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:AuthoredBeanReturns the Author of this bean.- Specified by:
getAuthorIDin 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:AuthoredBeanUpdates the author of this bean.- Specified by:
setAuthorIDin 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:AuditableReturns the object ID for this auditable object.- Specified by:
getAuditIDin interfaceAuditable- Returns:
- the ID
-
getRowClassName
Description copied from interface:ViewEntryReturns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassNamein interfaceViewEntry- Returns:
- the CSS class name, or NULL if none
-