org.kohsuke.jnt
Class JNNewsItem

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

public final class JNNewsItem
extends Object

One announcement, such as this

Author:
Kohsuke Kawaguchi

Method Summary
 void approve()
          Approves this announcement.
 void delete()
          Delete this announcement.
 void disapprove()
          Rejects this announcement.
 boolean equals(Object o)
           
 String getHeadline()
          The one-line head line of this announcement.
 int getId()
          Gets the news item ID.
 JNProject getProject()
          Gets the project to which this announcement belongs.
 Date getTimestamp()
          The time when this announcement was made.
 URL getURL()
          Gets the URL to thew news item page
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTimestamp

public Date getTimestamp()
The time when this announcement was made.


getHeadline

public String getHeadline()
The one-line head line of this announcement.


getProject

public JNProject getProject()
Gets the project to which this announcement belongs.


getId

public int getId()
Gets the news item ID. The news item ID uniquely identifies a news item within java.net


delete

public void delete()
            throws ProcessingException
Delete this announcement.

Throws:
ProcessingException

approve

public void approve()
             throws ProcessingException
Approves this announcement.

Throws:
ProcessingException

disapprove

public void disapprove()
                throws ProcessingException
Rejects this announcement.

Throws:
ProcessingException

getURL

public URL getURL()
Gets the URL to thew news item page


equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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