title.setType("text/html");
title.setValue(event.getEventUpdate());
content.setType("text/html");
content.setValue(StringUtil.stripForExternalSites(event.getEventSummary()));
} else if (update.getContentItemType() == ContentItemType.NARRATIVE) {
NarrativeContentItem narrative = (NarrativeContentItem) update;
title.setType("text/html");
title.setValue(narrative.getHeadline() + " - "
+ narrative.getNarrativeType().toString());
content.setType("text/html");
String narrativeSummary = StringUtil.stripForExternalSites(
narrative.getNarrativeSummary());
if (GlobalUtil.isContentEmpty(narrativeSummary)) {
content.setValue(SnippetUtil.createSnippet(
JavaNodeAdapter.fromHtml(narrative.getContent()), MAXIMUM_SNIPPET_LENGTH));
} else {
content.setValue(narrativeSummary);
}
}
SyndEntry entry = new SyndEntryImpl();