Search in sources :

Example 1 with SyndFeedMediaResource

use of org.olat.modules.webFeed.SyndFeedMediaResource in project OpenOLAT by OpenOLAT.

the class FeedManagerImpl method createFeedFile.

@Override
public MediaResource createFeedFile(OLATResourceable ores, Identity identity, Long courseId, String nodeId) {
    MediaResource media = null;
    Feed feed = loadFeed(ores);
    if (feed != null) {
        SyndFeed rssFeed = new RSSFeed(feed, identity, courseId, nodeId);
        media = new SyndFeedMediaResource(rssFeed);
    }
    return media;
}
Also used : SyndFeed(com.rometools.rome.feed.synd.SyndFeed) RSSFeed(org.olat.modules.webFeed.RSSFeed) MediaResource(org.olat.core.gui.media.MediaResource) VFSMediaResource(org.olat.core.util.vfs.VFSMediaResource) SyndFeedMediaResource(org.olat.modules.webFeed.SyndFeedMediaResource) SyndFeedMediaResource(org.olat.modules.webFeed.SyndFeedMediaResource) SyndFeed(com.rometools.rome.feed.synd.SyndFeed) Feed(org.olat.modules.webFeed.Feed) RSSFeed(org.olat.modules.webFeed.RSSFeed)

Example 2 with SyndFeedMediaResource

use of org.olat.modules.webFeed.SyndFeedMediaResource in project openolat by klemens.

the class FeedManagerImpl method createFeedFile.

@Override
public MediaResource createFeedFile(OLATResourceable ores, Identity identity, Long courseId, String nodeId) {
    MediaResource media = null;
    Feed feed = loadFeed(ores);
    if (feed != null) {
        SyndFeed rssFeed = new RSSFeed(feed, identity, courseId, nodeId);
        media = new SyndFeedMediaResource(rssFeed);
    }
    return media;
}
Also used : SyndFeed(com.rometools.rome.feed.synd.SyndFeed) RSSFeed(org.olat.modules.webFeed.RSSFeed) MediaResource(org.olat.core.gui.media.MediaResource) VFSMediaResource(org.olat.core.util.vfs.VFSMediaResource) SyndFeedMediaResource(org.olat.modules.webFeed.SyndFeedMediaResource) SyndFeedMediaResource(org.olat.modules.webFeed.SyndFeedMediaResource) SyndFeed(com.rometools.rome.feed.synd.SyndFeed) Feed(org.olat.modules.webFeed.Feed) RSSFeed(org.olat.modules.webFeed.RSSFeed)

Aggregations

SyndFeed (com.rometools.rome.feed.synd.SyndFeed)2 MediaResource (org.olat.core.gui.media.MediaResource)2 VFSMediaResource (org.olat.core.util.vfs.VFSMediaResource)2 Feed (org.olat.modules.webFeed.Feed)2 RSSFeed (org.olat.modules.webFeed.RSSFeed)2 SyndFeedMediaResource (org.olat.modules.webFeed.SyndFeedMediaResource)2