@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); }
subtitle.setType(sDesc.getType()); subtitle.setValue(sDesc.getValue()); aFeed.setSubtitle(subtitle);
subtitle.setType(sDesc.getType()); subtitle.setValue(sDesc.getValue()); aFeed.setSubtitle(subtitle);
content.setValue(parseTextConstructToString(subtitle)); content.setType(getAttributeValue(subtitle, "type")); feed.setSubtitle(content);
content.setValue(parseTextConstructToString(subtitle)); content.setType(getAttributeValue(subtitle, "type")); feed.setSubtitle(content);