entry = wmgr.getWeblogEntry(entryid);
RollerSession rses = RollerSession.getRollerSession(request);
if (rses.isUserAuthorizedToAuthor(entry.getWebsite())) {
// Run entry through registered PagePlugins
PagePluginManager ppmgr = roller.getPagePluginManager();
Map plugins = ppmgr.createAndInitPagePlugins(
entry.getWebsite(),
RollerContext.getRollerContext().getServletContext(),
RollerContext.getRollerContext().getAbsoluteContextUrl(request),
new VelocityContext());
String content = "";
if (!StringUtils.isEmpty(entry.getText())) {
content = entry.getText();
} else {
content = entry.getSummary();
}
content = ppmgr.applyPagePlugins(entry, plugins, content, true);
String title = entry.getTitle();
String excerpt = StringUtils.left( Utilities.removeHTML(content),255 );
String url = rctx.createEntryPermalink(entry, request, true);