org.kohsuke.jnt
Class JNIssue

java.lang.Object
  extended by org.kohsuke.jnt.JNIssue

public final class JNIssue
extends Object

An issue.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 class JNIssue.Activity
           
 class JNIssue.CreationActivity
           
 class JNIssue.Description
          A comment added to an issue.
 class JNIssue.Item<T extends JNIssue.Item>
           
 class JNIssue.UpdateActivity
           
 
Method Summary
 String _getPlatform()
           
 IssueEditor beginEdit()
           
 List<JNIssue.Activity> getActivities()
          Gets the activities of issues.
 String getAssignedTo()
          Gets the current person assigned to the issue.
 String getComponent()
           
 Calendar getCreationDate()
          Gets the timestamp when this issue was created.
 List<JNIssue.Description> getDescriptions()
          Gets the description of issues (AKA "additional comments")
 int getId()
          Gets the issue ID.
 Calendar getLastModified()
          Gets the last modified date of this issue.
 Priority getPriority()
          Gets the priority of this issue.
 JNProject getProject()
          Gets the project that this issue is filed for.
 org.dom4j.Element getRawData()
          Returns the raw XML data that describes this issue.
 JNUser getReporter()
          Gets the reporter of this issue.
 IssueResolution getResolution()
          Gets the resolution of this issue.
 String getShortDescription()
          Gets the short description of this issue.
 IssueStatus getStatus()
          Gets the current status of this issue.
 String getStatusWhiteboard()
          Gets the 'status whiteboard' text, or null if not set.
 String getSubComponent()
           
 IssueType getType()
          Gets the type of the issue.
 IssueVersion getVersion()
          Gets the version to which this issue belongs to.
 int getVotes()
          Gets the number of votes on this issue.
 void save(OutputStream out)
          Persists this issue to the disk.
 void update(String comment)
          Update the issue by just posting a comment.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRawData

public org.dom4j.Element getRawData()
Returns the raw XML data that describes this issue.

See https://javanettasks.dev.java.net/issues/issuezilla.dtd for the format.

Returns:
the "issue" element.

getId

public int getId()
Gets the issue ID.


getProject

public JNProject getProject()
Gets the project that this issue is filed for.


getPriority

public Priority getPriority()
Gets the priority of this issue.


getShortDescription

public String getShortDescription()
Gets the short description of this issue. A "short description" is a summary of the issue. For example, the short description of https://java-ws-xml-incubator.dev.java.net/issues/show_bug.cgi?id=1 is "Please graduate me... I have grown up now..."


getReporter

public JNUser getReporter()
Gets the reporter of this issue.


getAssignedTo

public String getAssignedTo()
Gets the current person assigned to the issue.

This can be an user name or an alias name, like "issues@hudson". It's not clear exactly what's allowed and what's not.


getStatus

public IssueStatus getStatus()
Gets the current status of this issue.


getStatusWhiteboard

public String getStatusWhiteboard()
Gets the 'status whiteboard' text, or null if not set.


getResolution

public IssueResolution getResolution()
Gets the resolution of this issue.


getVersion

public IssueVersion getVersion()
Gets the version to which this issue belongs to.


_getPlatform

public String _getPlatform()

getComponent

public String getComponent()

getSubComponent

public String getSubComponent()

getVotes

public int getVotes()
Gets the number of votes on this issue.


getType

public IssueType getType()
Gets the type of the issue.


getLastModified

public Calendar getLastModified()
Gets the last modified date of this issue.


getCreationDate

public Calendar getCreationDate()
Gets the timestamp when this issue was created.


getDescriptions

public List<JNIssue.Description> getDescriptions()
Gets the description of issues (AKA "additional comments")

This also includes the initial bug report, which is the first element.

Returns:
Never empty, never null. Older changes first.

getActivities

public List<JNIssue.Activity> getActivities()
Gets the activities of issues. This list represents status changes made to the issue.

The first activity is always JNIssue.CreationActivity indicating the creation of this issue.

Returns:
always non-empty list. Older changes first.

save

public void save(OutputStream out)
          throws IOException
Persists this issue to the disk.

Throws:
IOException
See Also:
JNIssueTracker.load(int, InputStream)

update

public void update(String comment)
            throws ProcessingException
Update the issue by just posting a comment.

Throws:
ProcessingException

beginEdit

public IssueEditor beginEdit()


Copyright © 2003-2009 Kohsuke Kawaguchi. All Rights Reserved.