org.kohsuke.jnt
Class IssueCreator

java.lang.Object
  extended by org.kohsuke.jnt.AbstractIssueEditor<IssueCreator>
      extended by org.kohsuke.jnt.IssueCreator

public class IssueCreator
extends AbstractIssueEditor<IssueCreator>

Very simple issue creator (doesn't check any field requirements... etc)

The procedure to create a new issue will be as follows:

 // first obtain the JNIssueTracker for the issue tracker you'd like to create a new issue.
 JNIssueTracker it = ...;

 // then begin an edit session
 IssueCreator c = issue.createIssue();

 // call methods on IssueCreator to fill in fields.
 c.setField(...).setField(...)
 ...

 // then finally commit the change
 c.commit();
 

The class follows the fluent API pattern so that you can write multiple changes in a concise fashion.

Author:
Tomas Knappek

Method Summary
 void commit()
           
 
Methods inherited from class org.kohsuke.jnt.AbstractIssueEditor
appendToWhiteBoard, setField, setPriority, setType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

commit

public void commit()
            throws ProcessingException
Throws:
ProcessingException


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