com.rometools.rome.feed.atom.Feed.setAuthors()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(167)

本文整理了Java中com.rometools.rome.feed.atom.Feed.setAuthors()方法的一些代码示例,展示了Feed.setAuthors()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Feed.setAuthors()方法的具体详情如下:
包路径:com.rometools.rome.feed.atom.Feed
类名称:Feed
方法名:setAuthors

Feed.setAuthors介绍

[英]Sets the feed author.
[中]设置提要作者。

代码示例

代码示例来源:origin: mploed/event-driven-spring-boot

@Override
protected void buildFeedMetadata(Map<String, Object> model, Feed feed, HttpServletRequest request) {
  feed.setId("https://github.com/mploed/event-driven-spring-boot/credit-decision");
  feed.setTitle("Approved Credit Applications");
  List<Link> alternateLinks = new ArrayList<>();
  Link link = new Link();
  link.setRel("self");
  link.setHref(baseUrl(request) + "feed");
  alternateLinks.add(link);
  List<SyndPerson> authors = new ArrayList<SyndPerson>();
  Person person = new Person();
  person.setName("Big Pug Bank");
  authors.add(person);
  feed.setAuthors(authors);
  feed.setAlternateLinks(alternateLinks);
  feed.setUpdated(decisionMemoRepository.lastUpdate());
  Content subtitle = new Content();
  subtitle.setValue("List of all APPROVED credit applications");
  feed.setSubtitle(subtitle);
}

代码示例来源:origin: mploed/event-driven-spring-boot

@Override
protected void buildFeedMetadata(Map<String, Object> model, Feed feed, HttpServletRequest request) {
  feed.setId("https://github.com/mploed/event-driven-spring-boot/customer");
  feed.setTitle("Customer");
  List<Link> alternateLinks = new ArrayList<>();
  Link link = new Link();
  link.setRel("self");
  link.setHref(baseUrl(request) + "feed");
  alternateLinks.add(link);
  List<SyndPerson> authors = new ArrayList<SyndPerson>();
  Person person = new Person();
  person.setName("Big Pug Bank");
  authors.add(person);
  feed.setAuthors(authors);
  feed.setAlternateLinks(alternateLinks);
  feed.setUpdated(customerRepository.lastUpdate());
  Content subtitle = new Content();
  subtitle.setValue("List of all customers");
  feed.setSubtitle(subtitle);
}

代码示例来源:origin: mploed/ddd-with-spring

@Override
protected void buildFeedMetadata(Map<String, Object> model, Feed feed, HttpServletRequest request) {
  feed.setId("https://github.com/mploed/ddd-with-spring/credit-agency");
  feed.setTitle("Credit Agency Ratings");
  List<Link> alternateLinks = new ArrayList<>();
  Link link = new Link();
  link.setRel("self");
  link.setHref(baseUrl(request) + "feed");
  alternateLinks.add(link);
  List<SyndPerson> authors = new ArrayList<SyndPerson>();
  Person person = new Person();
  person.setName("Big Pug Bank");
  authors.add(person);
  feed.setAuthors(authors);
  feed.setAlternateLinks(alternateLinks);
  feed.setUpdated(personRatingRepository.lastUpdate());
  Content subtitle = new Content();
  subtitle.setValue("List of all valid person ratings");
  feed.setSubtitle(subtitle);
}

代码示例来源:origin: rometools/rome

aFeed.setAuthors(createAtomPersons(authors));

代码示例来源:origin: com.rometools/rome

aFeed.setAuthors(createAtomPersons(authors));

代码示例来源:origin: rometools/rome

aFeed.setAuthors(ConverterForAtom03.createAtomPersons(authors));

代码示例来源:origin: com.rometools/rome

aFeed.setAuthors(ConverterForAtom03.createAtomPersons(authors));

代码示例来源:origin: rometools/rome

final List<SyndPerson> authors = new ArrayList<SyndPerson>();
authors.add(parsePerson(author));
feed.setAuthors(authors);

代码示例来源:origin: com.rometools/rome

final List<SyndPerson> authors = new ArrayList<SyndPerson>();
authors.add(parsePerson(author));
feed.setAuthors(authors);

代码示例来源:origin: rometools/rome

feed.setAuthors(parsePersons(baseURI, authors, locale));

代码示例来源:origin: com.rometools/rome

feed.setAuthors(parsePersons(baseURI, authors, locale));

相关文章