/** Build Feed Meta Data. */ @Override protected void buildFeedMetadata( Map<String, Object> model, Feed feed, HttpServletRequest request) { setAtomTitle( model.get("feedTitle") == null ? "Project Published " : model.get("feedTitle").toString()); feed.setId(getAtomTitle()); feed.setTitle(getAtomTitle()); }
/** * Fetch the log entries as an atom feed. May trigger a purge of old messages, according to this * log service's purge policy. Includes paging options. * * @param maxResults maximum number of log results * @param startIndex starting index of log results * @return a {@code Feed} containing all the entries in the log */ public synchronized Feed getFeed(Integer maxResults, Integer startIndex) { Feed feed = new Feed(); feed.setTitle( "Plugin management log for " + applicationProperties.getDisplayName() + " (" + applicationProperties.getBaseUrl() + ")"); feed.setModified(lastModified); addLink(feed, applicationProperties.getBaseUrl(), "base"); addAuditLogEntries(feed, maxResults, startIndex); return feed; }