@Override public EmailAddress getFrom() { if (from == null) { final SyndPerson author = (SyndPerson) rssEntry.getAuthors().get(0); from = new EmailAddress(author.getName(), author.getEmail()); } return from; }
protected static List createAtomPersons(List sPersons) { List persons = new ArrayList(); for (Iterator iter = sPersons.iterator(); iter.hasNext(); ) { SyndPerson sPerson = (SyndPerson)iter.next(); Person person = new Person(); person.setName(sPerson.getName()); person.setUri(sPerson.getUri()); person.setEmail(sPerson.getEmail()); person.setModules(sPerson.getModules()); persons.add(person); } return persons; }
protected static List createAtomPersons(List sPersons) { List persons = new ArrayList(); for (Iterator iter = sPersons.iterator(); iter.hasNext(); ) { SyndPerson sPerson = (SyndPerson)iter.next(); Person person = new Person(); person.setName(sPerson.getName()); person.setUri(sPerson.getUri()); person.setEmail(sPerson.getEmail()); person.setModules(sPerson.getModules()); persons.add(person); } return persons; }
protected static List createAtomPersons(List sPersons) { List persons = new ArrayList(); for (Iterator iter = sPersons.iterator(); iter.hasNext(); ) { SyndPerson sPerson = (SyndPerson)iter.next(); Person person = new Person(); person.setName(sPerson.getName()); person.setUri(sPerson.getUri()); person.setEmail(sPerson.getEmail()); person.setModules(sPerson.getModules()); persons.add(person); } return persons; }
protected static List createAtomPersons(List sPersons) { List persons = new ArrayList(); for (Object sPerson1 : sPersons) { SyndPerson sPerson = (SyndPerson) sPerson1; Person person = new Person(); person.setName(sPerson.getName()); person.setUri(sPerson.getUri()); person.setEmail(sPerson.getEmail()); person.setModules(sPerson.getModules()); persons.add(person); } return persons; }
protected Item createRSSItem(SyndEntry sEntry) { Item item = super.createRSSItem(sEntry); if (sEntry.getAuthors()!=null && sEntry.getAuthors().size() > 0) { SyndPerson author = (SyndPerson)sEntry.getAuthors().get(0); item.setAuthor(author.getEmail()); } Guid guid = null; String uri = sEntry.getUri(); if (uri!=null) { guid = new Guid(); guid.setPermaLink(false); guid.setValue(uri); } else { String link = sEntry.getLink(); if (link!=null) { guid = new Guid(); guid.setPermaLink(true); guid.setValue(link); } } item.setGuid(guid); return item; }
protected Item createRSSItem(SyndEntry sEntry) { Item item = super.createRSSItem(sEntry); if (sEntry.getAuthors()!=null && sEntry.getAuthors().size() > 0) { SyndPerson author = (SyndPerson)sEntry.getAuthors().get(0); item.setAuthor(author.getEmail()); } Guid guid = null; String uri = sEntry.getUri(); if (uri!=null) { guid = new Guid(); guid.setPermaLink(false); guid.setValue(uri); } else { String link = sEntry.getLink(); if (link!=null) { guid = new Guid(); guid.setPermaLink(true); guid.setValue(link); } } item.setGuid(guid); return item; }
@Override protected Item createRSSItem(SyndEntry sEntry) { Item item = super.createRSSItem(sEntry); if (sEntry.getAuthors()!=null && sEntry.getAuthors().size() > 0) { SyndPerson author = (SyndPerson)sEntry.getAuthors().get(0); item.setAuthor(author.getEmail()); } Guid guid = null; String uri = sEntry.getUri(); if (uri!=null) { guid = new Guid(); guid.setPermaLink(false); guid.setValue(uri); } else { String link = sEntry.getLink(); if (link!=null) { guid = new Guid(); guid.setPermaLink(true); guid.setValue(link); } } item.setGuid(guid); SyndLink comments = sEntry.findRelatedLink("comments"); if(comments != null && (comments.getType() == null || comments.getType().endsWith("html"))){ item.setComments(comments.getHref()); } return item; }
@Override protected Item createRSSItem(SyndEntry sEntry) { Item item = super.createRSSItem(sEntry); if (sEntry.getAuthors()!=null && sEntry.getAuthors().size() > 0) { SyndPerson author = (SyndPerson)sEntry.getAuthors().get(0); item.setAuthor(author.getEmail()); } Guid guid = null; String uri = sEntry.getUri(); if (uri!=null) { guid = new Guid(); guid.setPermaLink(false); guid.setValue(uri); } else { String link = sEntry.getLink(); if (link!=null) { guid = new Guid(); guid.setPermaLink(true); guid.setValue(link); } } item.setGuid(guid); SyndLink comments = sEntry.findRelatedLink("comments"); if(comments != null && (comments.getType() == null || comments.getType().endsWith("html"))){ item.setComments(comments.getHref()); } return item; }