|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kohsuke.jnt.JNNewsItems
public final class JNNewsItems
java.net project news item section. TODO: add support for advanced news item options
Method Summary | |
---|---|
void |
createNewsItem(Calendar date,
String headline,
String body,
String imageUrl,
String articleUrl)
Submit a news item. |
void |
createNewsItem(String headline)
Set the headline field of the news item. |
List<JNNewsItem> |
getNewsItems()
Gets all announcements in this project as a List of JNNewsItem s. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void createNewsItem(Calendar date, String headline, String body, String imageUrl, String articleUrl) throws ProcessingException
date
- Optional Calendar object representing the date the news
item will be posted. if this parameter is null, the
current date will be used and the news item will be
posted immediately.headline
- The news item headline - must not be null, HTML markup
allowedbody
- Optional content for the body of the news message (HTML
markup allowed and encouraged)imageUrl
- Optional image url fieldarticleUrl
- Optional original article url
ProcessingException
- if anything is wrong with the parameter data or an error
occurs during the form submissionpublic void createNewsItem(String headline) throws ProcessingException
headline
- the headline
ProcessingException
public List<JNNewsItem> getNewsItems() throws ProcessingException
List
of JNNewsItem
s.
The returned list is sorted in the order of date; the latest announcement is the first entry.
ProcessingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |