org.kohsuke.jnt
Class JNIssueTracker

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

public final class JNIssueTracker
extends Object

java.net issue tracker (IssueZilla) in one project.

Author:
Kohsuke Kawaguchi

Method Summary
 Map<Integer,JNIssue> get(int... ids)
          Gets multiple issues at once.
 JNIssue get(int id)
          Gets the issue of the specified id.
 Map<Integer,JNIssue> getAll()
          Gets all the issues in this issue tracker.
 Map<Integer,JNIssue> getRange(int start, int end)
          Gets multiple issues at once, by spcifying a range [start,end)
 Map<Integer,JNIssue> getUpdatedIssues(Calendar start, Calendar end)
          Gets all the issues updated during the specified time span.
 Map<Integer,JNIssue> getUpdatedIssues(Date start)
          Gets all the issues updated since the given time stamp.
 Map<Integer,JNIssue> getUpdatedIssues(Date start, Date end)
           
 JNIssue load(int id, InputStream in)
          Loads the issue persisted by JNIssue.save(OutputStream).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public JNIssue get(int id)
            throws ProcessingException
Gets the issue of the specified id. For the performance reason, if you access multiple issues, it will be faster to use get(int...)

Throws:
ProcessingException

get

public Map<Integer,JNIssue> get(int... ids)
                         throws ProcessingException
Gets multiple issues at once.

Returns:
the map is from the id to JNIssue. It contains entries for all the specified IDs that actually exist. Non-existent issue ID in the argument will not be an error, but the returned map won't have entries for such IDs.
Throws:
ProcessingException

getRange

public Map<Integer,JNIssue> getRange(int start,
                                     int end)
                              throws ProcessingException
Gets multiple issues at once, by spcifying a range [start,end)

Throws:
ProcessingException

getAll

public Map<Integer,JNIssue> getAll()
                            throws ProcessingException
Gets all the issues in this issue tracker.

Throws:
ProcessingException

load

public JNIssue load(int id,
                    InputStream in)
             throws ProcessingException
Loads the issue persisted by JNIssue.save(OutputStream).

Throws:
ProcessingException

getUpdatedIssues

public Map<Integer,JNIssue> getUpdatedIssues(Calendar start,
                                             Calendar end)
                                      throws ProcessingException
Gets all the issues updated during the specified time span.

This wraps http://www.jini.org/nonav/docs/ProjectOwnerIssues.html#xml

Returns:
the map is from the id to JNIssue. It contains entries for all the specified IDs.
Throws:
ProcessingException

getUpdatedIssues

public Map<Integer,JNIssue> getUpdatedIssues(Date start,
                                             Date end)
                                      throws ProcessingException
Throws:
ProcessingException

getUpdatedIssues

public Map<Integer,JNIssue> getUpdatedIssues(Date start)
                                      throws ProcessingException
Gets all the issues updated since the given time stamp.

Throws:
ProcessingException


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