static public Entry createBaseEntry(String author, String title, String linkUrl) { Factory factory = getFactory(); Entry entry = factory.newEntry(); String id = FOMHelper.generateUuid(); entry.setId(id); entry.setUpdated(new Date()); entry.setPublished(new Date()); entry.addAuthor(author); entry.setTitle(title); entry.addLink(linkUrl); // entry.addLink("","self"); // Can have content, as below or not to be a valid entry. // entry.setContentAsXhtml( // "<p>This can go in an atom feed, I think... Will have to try to a blogger account...</p>"); Document<Entry> doc = entry.getDocument(); // We don't (currently) support SLUG String slug = "Suggested-reference-which-we-will-probably-ignore"; doc.setSlug(slug); return entry; }
String slug = getSlug(); if (slug != null) doc.setSlug(slug); return doc; } catch (Exception e) {