Class CommentEntry
java.lang.Object
com.webmethods.caf.faces.data.comments.impl.CommentEntry
- All Implemented Interfaces:
ICommentEntry
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns list of attachments for this commentReturns processed text for the comment suitable for displaygetID()
Returns unique ID for this comment entrygetText()
Returns original text for commentReturns timestamp for the commentReturns display name of the user made the commentReturns ID of the user made the commentboolean
protected static String
Adds html formatting to plain text.
-
Field Details
-
comment
-
attachments
-
-
Constructor Details
-
CommentEntry
public CommentEntry() -
CommentEntry
- Throws:
Exception
-
-
Method Details
-
isHtmlText
public boolean isHtmlText() -
getUserDisplayName
Description copied from interface:ICommentEntry
Returns display name of the user made the comment- Specified by:
getUserDisplayName
in interfaceICommentEntry
-
getUserID
Description copied from interface:ICommentEntry
Returns ID of the user made the comment- Specified by:
getUserID
in interfaceICommentEntry
-
getTimestamp
Description copied from interface:ICommentEntry
Returns timestamp for the comment- Specified by:
getTimestamp
in interfaceICommentEntry
-
getText
Description copied from interface:ICommentEntry
Returns original text for comment- Specified by:
getText
in interfaceICommentEntry
-
getDisplayText
Description copied from interface:ICommentEntry
Returns processed text for the comment suitable for display- Specified by:
getDisplayText
in interfaceICommentEntry
-
processPlainText
Adds html formatting to plain text. Applies following processing:- HTML-encode &, <, and >.
- Insert br element after every line feed.
- Replaces ' ' [two-spaces] with ' ' [space + non-breaking space]; replaces \t [tab] with ' ' [four spaces].
- Wrap with hyperlink any word beginning with http:, https:, ftp:, or www..
-
getAttachments
Description copied from interface:ICommentEntry
Returns list of attachments for this comment- Specified by:
getAttachments
in interfaceICommentEntry
- Throws:
Exception
-
getID
Description copied from interface:ICommentEntry
Returns unique ID for this comment entry- Specified by:
getID
in interfaceICommentEntry
-