public interface NewsChannel
NewsChannel is the interface for a Sakai News service News channel. Messages in the NewsChannel are NewsItems.
| Modifier and Type | Method and Description |
|---|---|
void |
addNewsitem(NewsItem item) |
int |
compareTo(Object obj)
Checks the relative ordering of the String url's of two Channels.
|
boolean |
equals(Object obj)
Checks whether the parameter obj refers to the same channel as "this" channel.
|
String |
getCopyright() |
String |
getDescription() |
String |
getLanguage() |
String |
getLastbuilddate() |
Date |
getLastbuilddateInDateFormat() |
String |
getLink() |
List |
getNewsitems()
Accesses a list of all news items from this rss news feed.
|
List |
getNewsitems(org.sakaiproject.javax.Filter filter)
Accesses a filtered list of news items from this rss news feed.
|
String |
getPubdate() |
Date |
getPubdateInDateFormat() |
String |
getSource() |
String |
getTitle() |
int |
hashCode()
Calculates a hash code for the channel object's URL.
|
boolean |
isUpdateAvailable()
Checks whether an update is available for the rss news feed.
|
void |
setCopyright(String copyright) |
void |
setDescription(String description) |
void |
setLanguage(String language) |
void |
setLastbuilddate(String builddate) |
void |
setLink(String link) |
void |
setNewsitems(List items) |
void |
setPubdate(String pubdate) |
void |
setSource(String source) |
void |
setTitle(String set) |
List getNewsitems()
List getNewsitems(org.sakaiproject.javax.Filter filter)
filter - A filtering object to accept messages, or null if no filtering is desired.String getLink()
String getSource()
String getTitle()
String getDescription()
String getLanguage()
String getCopyright()
String getPubdate()
Date getPubdateInDateFormat()
String getLastbuilddate()
Date getLastbuilddateInDateFormat()
void setNewsitems(List items)
void addNewsitem(NewsItem item)
void setLink(String link)
void setSource(String source) throws NewsConnectionException, NewsFormatException
void setTitle(String set)
void setDescription(String description)
void setLanguage(String language)
void setCopyright(String copyright)
void setPubdate(String pubdate)
void setLastbuilddate(String builddate)
boolean isUpdateAvailable()
int compareTo(Object obj) throws ClassCastException
ClassCastExceptionboolean equals(Object obj) throws ClassCastException
equals in class ObjectClassCastExceptionCopyright © 2003-2015 The Sakai Foundation. All Rights Reserved.