Examples of WikiCommentFeedEntry


Examples of org.jboss.seam.wiki.core.model.WikiCommentFeedEntry

public class WikiCommentFeedEntryManager extends FeedEntryManager<WikiComment, WikiCommentFeedEntry> {

    @RaiseEvent("FeedEntry.created")
    public WikiCommentFeedEntry createFeedEntry(WikiComment comment) {

        WikiCommentFeedEntry fe = new WikiCommentFeedEntry();

        fe.setLink(wikiURLRenderer.renderURL(comment, true));
        fe.setTitle(getFeedEntryTitle(comment));
        fe.setAuthor(
            comment.getCreatedBy().getFullname() != null
            && !comment.getCreatedBy().getUsername().equals(User.GUEST_USERNAME)
            && !comment.getCreatedBy().getUsername().equals(User.ADMIN_USERNAME)
            ? comment.getCreatedBy().getFullname()
            : comment.getFromUserName());
        fe.setUpdatedDate(fe.getPublishedDate());

        // Do NOT use text/html, the fabulous Sun "Rome" software will
        // render type="HTML" (uppercase!) which kills the Firefox feed renderer!
        fe.setDescriptionType("html");
        fe.setDescriptionValue(getCommentDescription(comment));

        fe.setComment(comment);
        return fe;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.