Examples of SyndImageImpl


Examples of com.rometools.rome.feed.synd.SyndImageImpl

            syndFeed.setEntries(createSyndEntries(items, syndFeed.isPreservingWireFeed()));
        }
    }

    protected SyndImage createSyndImage(final Image rssImage) {
        final SyndImage syndImage = new SyndImageImpl();
        syndImage.setTitle(rssImage.getTitle());
        syndImage.setUrl(rssImage.getUrl());
        syndImage.setLink(rssImage.getLink());
        return syndImage;
    }
View Full Code Here

Examples of com.rometools.rome.feed.synd.SyndImageImpl

        final String logo = aFeed.getLogo();
        final String icon = aFeed.getIcon();

        if (logo != null) {
            final SyndImage image = new SyndImageImpl();
            image.setUrl(logo);
            syndFeed.setImage(image);
        } else if (icon != null) {
            final SyndImage image = new SyndImageImpl();
            image.setUrl(icon);
            syndFeed.setImage(image);
        }

        syndFeed.setUri(aFeed.getId());
View Full Code Here

Examples of com.rometools.rome.feed.synd.SyndImageImpl

        final String logo = aFeed.getLogo();
        final String icon = aFeed.getIcon();

        if (logo != null) {
            final SyndImage image = new SyndImageImpl();
            image.setUrl(logo);
            syndFeed.setImage(image);
        } else if (icon != null) {
            final SyndImage image = new SyndImageImpl();
            image.setUrl(icon);
            syndFeed.setImage(image);
        }

        syndFeed.setUri(aFeed.getId());
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndImageImpl

    setLink(helper.getJumpInLink());

    setPublishedDate(feed.getLastModified());
    // The image
    if (feed.getImageName() != null) {
      SyndImage image = new SyndImageImpl();
      image.setDescription(feed.getDescription());
      image.setTitle(feed.getTitle());
      image.setLink(getLink());
      image.setUrl(helper.getImageUrl());
      setImage(image);
    }

    List<SyndEntry> episodes = new ArrayList<SyndEntry>();
    for (Item item : feed.getPublishedItems()) {
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndImageImpl

    setTitle(translator.translate("rss.title", new String[] { identity.getName() }));
    setLink(RSSUtil.URI_SERVER);
    setDescription(translator.translate("rss.description", new String[] { identity.getName() }));

    // create and add an image to the feed
    SyndImage image = new SyndImageImpl();
    image.setUrl(Settings.createServerURI() + StaticMediaDispatcher.createStaticURIFor("images/olat/olatlogo32x32.png"));
    image.setTitle("OLAT - Online Learning And Training");
    image.setLink(getLink());
    setImage(image);

    List<SyndEntry> entries = new ArrayList<SyndEntry>();
    SyndEntry entry = new SyndEntryImpl();
    entry.setTitle(translator.translate("rss.olat.title", new String[] { NotificationHelper.getFormatedName(identity) }));
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndImageImpl

    feed.setFeedType("rss_2.0");
    feed.setEncoding("UTF-8");
    feed.setTitle(title);
    feed.setLink(feedLink);
    feed.setDescription(description);
    SyndImageImpl image = new SyndImageImpl();
    image.setTitle(Constants.NAME);
    image.setUrl(hostUrl + "/gitblt_25.png");
    image.setLink(hostUrl);
    feed.setImage(image);

    List<SyndEntry> entries = new ArrayList<SyndEntry>();
    for (FeedEntryModel entryModel : entryModels) {
      SyndEntry entry = new SyndEntryImpl();
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndImageImpl

            fail("Invalid key in Map should have thrown IllegalArgumentException.");
        }
        catch(IllegalArgumentException e) {}

        testMap = new HashMap();
        testMap.put(uuid, new SyndImageImpl());
        try
        {
            insertSyndFeeds = new InsertSyndFeeds(testMap);
            fail("Invalid value in Map should have thrown IllegalArgumentException.");
        }
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndImageImpl

    if (StringUtils.isEmpty(description)) {
      feed.setDescription(title);
    } else {
      feed.setDescription(description);
    }
    SyndImageImpl image = new SyndImageImpl();
    image.setTitle(Constants.NAME);
    image.setUrl(hostUrl + "/gitblt_25.png");
    image.setLink(hostUrl);
    feed.setImage(image);

    List<SyndEntry> entries = new ArrayList<SyndEntry>();
    for (FeedEntryModel entryModel : entryModels) {
      SyndEntry entry = new SyndEntryImpl();
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndImageImpl

        // add logo if we found one:
        if (logoURL != null)
        {
            // we use the path to the logo for this, the logo itself cannot
            // be contained in the rdf. Not all RSS-viewers show this logo.
            SyndImage image = new SyndImageImpl();
            image.setLink(objectURL);
            image.setTitle(localize(labels, MSG_LOGO_TITLE));
            image.setUrl(logoURL);
            feed.setImage(image);
        }

        // add entries for items
        if (items != null)
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndImageImpl

        // add logo if we found one:
        if (logoURL != null)
        {
            // we use the path to the logo for this, the logo itself cannot
            // be contained in the rdf. Not all RSS-viewers show this logo.
            SyndImage image = new SyndImageImpl();
            image.setLink(objectURL);
            if (StringUtils.isNotBlank(feed.getTitle())) {
                image.setTitle(feed.getTitle());
            } else {
                image.setTitle(localize(labels, MSG_LOGO_TITLE));
            }
            image.setUrl(logoURL);
            feed.setImage(image);
        }

        // add entries for items
        if (items != null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.