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()
           
 List<JNIssue.Activity> getActivities()
          Gets the activities of issues.
 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.
 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.
 IssueType getType()
          Gets the type of the issue.
 IssueVersion getVersion()
          Gets the version to which this issue belongs to.
 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.


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.


getStatus

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


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

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")

Returns:
can be an empty list but 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.

update

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

Throws:
ProcessingException


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