Search in sources :

Example 1 with RecentTopicsRSS

use of net.jforum.util.rss.RecentTopicsRSS in project jforum2 by rafaelsteil.

the class RSSAction method recentTopics.

public void recentTopics() {
    String title = I18n.getMessage("RSS.RecentTopics.title", new Object[] { SystemGlobals.getValue(ConfigKeys.FORUM_NAME) });
    String description = I18n.getMessage("RSS.RecentTopics.description");
    List posts = DataAccessDriver.getInstance().newPostDAO().selectHotForRSS(SystemGlobals.getIntValue(ConfigKeys.POSTS_PER_PAGE));
    RSSAware rss = new RecentTopicsRSS(title, description, posts);
    this.context.put("rssContents", rss.createRSS());
}
Also used : List(java.util.List) RSSAware(net.jforum.util.rss.RSSAware) RecentTopicsRSS(net.jforum.util.rss.RecentTopicsRSS)

Aggregations

List (java.util.List)1 RSSAware (net.jforum.util.rss.RSSAware)1 RecentTopicsRSS (net.jforum.util.rss.RecentTopicsRSS)1