@Override protected void buildFeedMetadata(Map<String, Object> model, Feed feed, HttpServletRequest request) { feed.setId("tag:springsource.org"); feed.setTitle("Veterinarians"); feed.setUpdated(new Date()); }
@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); }
@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); }
@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); }
feed.setId(atomURL +"/"+website.getHandle() + "/resources/" + path + start); feed.setTitle(website.getName());
private InputStream createDefaultFeedDocument(final String uri) throws AtomException { final Feed f = new Feed(); f.setTitle("Feed"); f.setId(uri); f.setFeedType(FEED_TYPE); final Link selfLink = new Link(); selfLink.setRel("self"); selfLink.setHref(uri); f.getOtherLinks().add(selfLink); try { final WireFeedOutput wireFeedOutput = new WireFeedOutput(); final Document feedDoc = wireFeedOutput.outputJDom(f); final XMLOutputter outputter = new XMLOutputter(); // outputter.setFormat(Format.getCompactFormat()); final OutputStream fos = FileStore.getFileStore().getFileOutputStream(getFeedPath()); outputter.output(feedDoc, new OutputStreamWriter(fos, "UTF-8")); } catch (final FeedException ex) { throw new AtomException(ex); } catch (final IOException ex) { throw new AtomException(ex); } catch (final Exception e) { e.printStackTrace(); } return FileStore.getFileStore().getFileInputStream(getFeedPath()); }
List<WeblogEntry> entries = roller.getWeblogEntryManager().getWeblogEntries(wesc); Feed feed = new Feed(); feed.setId(atomURL +"/"+website.getHandle() + "/entries/" + start); feed.setTitle(website.getName());
aFeed.setStyleSheet(syndFeed.getStyleSheet()); aFeed.setId(syndFeed.getUri());
aFeed.setStyleSheet(syndFeed.getStyleSheet()); aFeed.setId(syndFeed.getUri());
aFeed.setStyleSheet(syndFeed.getStyleSheet()); aFeed.setId(syndFeed.getUri());
aFeed.setStyleSheet(syndFeed.getStyleSheet()); aFeed.setId(syndFeed.getUri());
feed.setId(id.getText());
feed.setId(id.getText());
feed.setId(id.getText());
feed.setId(id.getText());