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 booleancanReply()booleancommentExists()EditContentBeanedit()static CommentBeanfocusedComment()Returns an instance of this class representing the focused comment on the current page.static CommentBeanfocusedComment(net.sourceforge.jwebunit.junit.WebTester tester)StringgetContent()StringgetDate()StringgetDateTitle()StringgetId()StringgetPermalink()Returns the permalink id of the comment.StringgetProfilePicSrc()StringgetUserFullName()StringgetUserlink()Returns the user profile link of the comment.booleanisEditable()booleanisRemovable()static CommentBeannewInstance(int index)Returns an instance of this class representing the comment on the page with the given index.static CommentBeannewInstance(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()
-
-