Java Code Examples for com.rometools.rome.feed.atom.Feed#setUpdated()
The following examples show how to use
com.rometools.rome.feed.atom.Feed#setUpdated() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CustomerAtomFeedView.java From event-driven-spring-boot with Apache License 2.0 | 6 votes |
@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); }
Example 2
Source File: OrderAtomFeedView.java From microservice-atom with Apache License 2.0 | 6 votes |
@Override protected void buildFeedMetadata(Map<String, Object> model, Feed feed, HttpServletRequest request) { feed.setId("tag:ewolff.com/microservice-atom/order"); feed.setTitle("Order"); 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 Money Online Commerce Inc."); authors.add(person); feed.setAuthors(authors); feed.setAlternateLinks(alternateLinks); feed.setUpdated(orderRepository.lastUpdate()); Content subtitle = new Content(); subtitle.setValue("List of all orders"); feed.setSubtitle(subtitle); }
Example 3
Source File: HrmsAtomViewBuilder.java From Spring-MVC-Blueprints with MIT License | 5 votes |
@Override protected void buildFeedMetadata(Map<String, Object> model, Feed feed, HttpServletRequest request) { feed.setTitle("User Feeds News"); feed.setId("tag:hrmsUserTypes"); feed.setUpdated(new Date()); }
Example 4
Source File: VetsAtomView.java From enhanced-pet-clinic with Apache License 2.0 | 4 votes |
@Override protected void buildFeedMetadata(Map<String, Object> model, Feed feed, HttpServletRequest request) { feed.setId("tag:springsource.org"); feed.setTitle("Veterinarians"); feed.setUpdated(new Date()); }