| org.sakaiproject.news.api.NewsChannel
All known Subclasses: org.sakaiproject.news.impl.BasicNewsChannel,
NewsChannel | public interface NewsChannel (Code) | |
NewsChannel is the interface for a Sakai News service News channel. Messages in the NewsChannel are NewsItems.
|
compareTo | public int compareTo(Object obj) throws ClassCastException(Code) | | Checks the relative ordering of the String url's of two Channels. Same response pattern as compareTo method for Strings--negative if "this" object is greater than parameter, zero if the objects are equal, and positive if "this" object is less than
the parameter. The parameter can be a String reference or a MessageChannel object (otherwise method throws ClassCastException).
A negative integer if "this" object is greater than parameter, zero if the objects are equal, and a positive integer if "this" object is less than the parameter |
equals | public boolean equals(Object obj) throws ClassCastException(Code) | | Checks whether the parameter obj refers to the same channel as "this" channel. The parameter can be a String URL or a NewsChannel object (otherwise method throws ClassCastException).
true if the channels are the same, false otherwise |
getNewsitems | public List getNewsitems()(Code) | | Accesses a list of all news items from this rss news feed.
a list of NewsItem objects (may be empty). |
getNewsitems | public List getNewsitems(Filter filter)(Code) | | Accesses a filtered list of news items from this rss news feed.
Parameters: filter - A filtering object to accept messages, or null if no filtering is desired. a list of NewsItem objects (may be empty). |
hashCode | public int hashCode()(Code) | | Calculates a hash code for the channel object's URL.
The hash-code for the String URL to the channel. |
isUpdateAvailable | public boolean isUpdateAvailable()(Code) | | Checks whether an update is available for the rss news feed.
true if update is available, false otherwise |
setCopyright | public void setCopyright(String copyright)(Code) | | |
setDescription | public void setDescription(String description)(Code) | | |
setLastbuilddate | public void setLastbuilddate(String builddate)(Code) | | |
setNewsitems | public void setNewsitems(List items)(Code) | | |
|
|