data.feed.setCopyright( copyright );
feed.setCopyright(String.valueOf(metadata.get("copyright"))); } else { feed.setCopyright(xwiki.getSpaceCopyright(context));
@Override public void copyInto(WireFeed feed, SyndFeed syndFeed) { Channel channel = (Channel) feed; super.copyInto(channel, syndFeed); syndFeed.setLanguage(channel.getLanguage()); //c syndFeed.setCopyright(channel.getCopyright()); //c Date pubDate = channel.getPubDate(); if (pubDate != null) { syndFeed.setPublishedDate(pubDate); //c } else if (channel.getLastBuildDate() != null) { syndFeed.setPublishedDate(channel.getLastBuildDate()); //c } String author = channel.getManagingEditor(); if (author != null) { List creators = ((DCModule) syndFeed.getModule(DCModule.URI)).getCreators(); if (!creators.contains(author)) { Set s = new HashSet(); // using a set to remove duplicates s.addAll(creators); // DC creators s.add(author); // feed native author creators.clear(); creators.addAll(s); } } }
public void copyInto(WireFeed feed,SyndFeed syndFeed) { Channel channel = (Channel) feed; super.copyInto(channel,syndFeed); syndFeed.setLanguage(channel.getLanguage()); //c syndFeed.setCopyright(channel.getCopyright()); //c Date pubDate = channel.getPubDate(); if (pubDate!=null) { syndFeed.setPublishedDate(pubDate); //c } else if (channel.getLastBuildDate() != null) { syndFeed.setPublishedDate(channel.getLastBuildDate()); //c } String author = channel.getManagingEditor(); if (author!=null) { List creators = ((DCModule) syndFeed.getModule(DCModule.URI)).getCreators(); if (!creators.contains(author)) { Set s = new HashSet(); // using a set to remove duplicates s.addAll(creators); // DC creators s.add(author); // feed native author creators.clear(); creators.addAll(s); } } }
@Override public void copyInto(WireFeed feed, SyndFeed syndFeed) { Channel channel = (Channel) feed; super.copyInto(channel, syndFeed); syndFeed.setLanguage(channel.getLanguage()); //c syndFeed.setCopyright(channel.getCopyright()); //c Date pubDate = channel.getPubDate(); if (pubDate != null) { syndFeed.setPublishedDate(pubDate); //c } else if (channel.getLastBuildDate() != null) { syndFeed.setPublishedDate(channel.getLastBuildDate()); //c } String author = channel.getManagingEditor(); if (author != null) { List creators = ((DCModule) syndFeed.getModule(DCModule.URI)).getCreators(); if (!creators.contains(author)) { Set s = new HashSet(); // using a set to remove duplicates s.addAll(creators); // DC creators s.add(author); // feed native author creators.clear(); creators.addAll(s); } } }
public void copyInto(WireFeed feed,SyndFeed syndFeed) { Channel channel = (Channel) feed; super.copyInto(channel,syndFeed); syndFeed.setLanguage(channel.getLanguage()); //c syndFeed.setCopyright(channel.getCopyright()); //c Date pubDate = channel.getPubDate(); if (pubDate!=null) { syndFeed.setPublishedDate(pubDate); //c } else if (channel.getLastBuildDate() != null) { syndFeed.setPublishedDate(channel.getLastBuildDate()); //c } String author = channel.getManagingEditor(); if (author!=null) { List creators = ((DCModule) syndFeed.getModule(DCModule.URI)).getCreators(); if (!creators.contains(author)) { Set s = new HashSet(); // using a set to remove duplicates s.addAll(creators); // DC creators s.add(author); // feed native author creators.clear(); creators.addAll(s); } } }
/** * {@inheritDoc} */ public SyndFeed getFeed(List<ActivityEvent> events, String author, String title, String description, String copyright, String encoding, String url, String suffix, XWikiContext context) { SyndFeed feed = getFeed(events, suffix, context); feed.setAuthor(author); feed.setDescription(description); feed.setCopyright(copyright); feed.setEncoding(encoding); feed.setLink(url); feed.setTitle(title); return feed; }
/** * Set the standard feed metadata values, based on static translated messages and wiki configuration. * * @param feed the feed to configure * @param context the current request context * @throws XWikiException if the wiki can't be properly accessed */ private void setFeedMetaData(SyndFeed feed, XWikiContext context) throws XWikiException { String msgPrefix = DefaultWatchList.APP_RES_PREFIX + "rss."; feed.setAuthor(localization.getTranslationPlain(msgPrefix + "author")); feed.setTitle(localization.getTranslationPlain(msgPrefix + "title")); feed.setDescription(localization.getTranslationPlain(msgPrefix + "description")); feed.setCopyright(context.getWiki().getXWikiPreference("copyright", context)); feed.setLink(context.getWiki().getExternalURL("xwiki:Main.WebHome", "view", context)); } }
syndFeed.setCopyright(copyright);
syndFeed.setCopyright(copyright);
syndFeed.setCopyright(copyright);
syndFeed.setCopyright(copyright);
syndFeed.setCopyright(rights);
syndFeed.setCopyright(rights);
syndFeed.setCopyright(rights);