Class CommentBean
- java.lang.Object
-
- com.atlassian.confluence.it.content.CommentBean
-
public class CommentBean extends Object
TODO: support threaded comments parsing
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canReply()
boolean
commentExists()
EditContentBean
edit()
static CommentBean
focusedComment()
Returns an instance of this class representing the focused comment on the current page.static CommentBean
focusedComment(net.sourceforge.jwebunit.junit.WebTester tester)
String
getContent()
String
getDate()
String
getDateTitle()
String
getId()
String
getPermalink()
Returns the permalink id of the comment.String
getProfilePicSrc()
String
getUserFullName()
String
getUserlink()
Returns the user profile link of the comment.boolean
isEditable()
boolean
isRemovable()
static CommentBean
newInstance(int index)
Returns an instance of this class representing the comment on the page with the given index.static CommentBean
newInstance(int index, net.sourceforge.jwebunit.junit.WebTester tester)
-
-
-
Method Detail
-
newInstance
public static CommentBean newInstance(int index)
Returns an instance of this class representing the comment on the page with the given index. The index is zero-based, so index zero is the first comment on the page.
-
newInstance
public static CommentBean newInstance(int index, net.sourceforge.jwebunit.junit.WebTester tester)
-
commentExists
public boolean commentExists()
-
focusedComment
public static CommentBean focusedComment()
Returns an instance of this class representing the focused comment on the current page.
-
focusedComment
public static CommentBean focusedComment(net.sourceforge.jwebunit.junit.WebTester tester)
-
getProfilePicSrc
public String getProfilePicSrc()
-
getId
public String getId()
- Returns:
- the ID of this comment
-
getContent
public String getContent()
- Returns:
- the content of this comment
-
getUserFullName
public String getUserFullName()
-
getDate
public String getDate()
-
getDateTitle
public String getDateTitle()
-
getPermalink
public String getPermalink()
Returns the permalink id of the comment.
-
getUserlink
public String getUserlink()
Returns the user profile link of the comment.
-
isEditable
public boolean isEditable()
-
canReply
public boolean canReply()
-
isRemovable
public boolean isRemovable()
-
edit
public EditContentBean edit()
-
-