org.kohsuke.jnt
Class JNIssue.UpdateActivity

java.lang.Object
  extended by org.kohsuke.jnt.JNIssue.Item<JNIssue.Activity>
      extended by org.kohsuke.jnt.JNIssue.Activity
          extended by org.kohsuke.jnt.JNIssue.UpdateActivity
All Implemented Interfaces:
Comparable<JNIssue.Item<JNIssue.Activity>>
Enclosing class:
JNIssue

public final class JNIssue.UpdateActivity
extends JNIssue.Activity


Method Summary
 JNUser getAuthor()
          Gets the user who performed this activity.
 IssueField getField()
          Gets the field that has changed.
 String getNewValue()
          New value after the change.
 String getOldValue()
          Old value before the change.
 Calendar getTimestamp()
          Gets the timestamp when this item was created.
 
Methods inherited from class org.kohsuke.jnt.JNIssue.Activity
getCurrentStatus, isUpdate
 
Methods inherited from class org.kohsuke.jnt.JNIssue.Item
compareTo, getAge, getNext, getParent, getPrev
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAuthor

public JNUser getAuthor()
Description copied from class: JNIssue.Activity
Gets the user who performed this activity.

Specified by:
getAuthor in class JNIssue.Activity

getTimestamp

public Calendar getTimestamp()
Description copied from class: JNIssue.Item
Gets the timestamp when this item was created.

Specified by:
getTimestamp in class JNIssue.Activity

getField

public IssueField getField()
Description copied from class: JNIssue.Activity
Gets the field that has changed.

Specified by:
getField in class JNIssue.Activity
Returns:
Null if this is the creation activity.

getOldValue

public String getOldValue()
Description copied from class: JNIssue.Activity
Old value before the change.

Specified by:
getOldValue in class JNIssue.Activity
Returns:
Can be empty string but never null for update activity. For creation activity, null.

getNewValue

public String getNewValue()
Description copied from class: JNIssue.Activity
New value after the change. Value can be parsed with methods like IssueStatus.valueOf(String), IssueResolution.valueOf(String), IssueType.valueOf(String), and Priority.valueOf(String).

Specified by:
getNewValue in class JNIssue.Activity
Returns:
Can be empty string but never null for update activity. For creation activity, null.


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