|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.it.content.ViewContentBean
public class ViewContentBean
Represents a View page for a Page or News.
Nested Class Summary | |
---|---|
static class |
ViewContentBean.Builder
|
Field Summary | |
---|---|
static java.lang.String |
ADD_MENU_LINK_ID
|
static java.lang.String |
REMOVE_CONTENT_MENU_LINK
|
static java.lang.String |
SHOW_COMMENTS_ID
|
static java.lang.String |
VIEW_PAGE_INFO_LINK_ID
|
static java.lang.String |
VIEW_SOURCE_LINK_ID
|
Method Summary | |
---|---|
EditContentBean |
addComment()
|
ViewContentBean |
addTextComment(java.lang.String comment)
|
static ViewContentBean.Builder |
builder()
|
static ViewContentBean.Builder |
builder(net.sourceforge.jwebunit.junit.WebTester tester)
|
boolean |
canAddAttachment()
|
boolean |
canAddBlogPost()
Returns true if the Add Blogpost link is present. |
boolean |
canAddComment()
Returns true if the Add Comment link is present. |
boolean |
canAddPage()
Returns true if the Add Page link is present. |
boolean |
canEdit()
|
boolean |
canRemoveComment(java.lang.String commentId)
|
boolean |
canRequestAccess()
Returns true if the request access button link is present. |
boolean |
containsLinkTo(java.lang.String spaceKey,
java.lang.String pageTitle)
|
EditContentBean |
copy()
|
EditContentBean |
createBlogPost()
|
EditContentBean |
createPage()
|
EditContentBean |
edit()
|
EditContentBean |
editBlogPost()
|
EditContentBean |
editComment(java.lang.String commentId)
|
void |
ensureCommentsAreShown()
|
java.util.List<java.lang.String> |
getChildren()
Returns the first 20 child page titles (if any) on the current page in the order they appear. |
java.util.List<CommentBean> |
getComments()
Gets the first 20 top-level comments (if any) on the current page. |
java.lang.String |
getContent()
|
CommentBean |
getFocusedComment()
|
long |
getPageId()
|
PageMetadata |
getPageMetadata()
|
java.util.Date |
getRequestTime()
|
java.lang.String |
getTitle()
|
boolean |
hasLabel(java.lang.String label)
|
boolean |
hasNoPermission()
|
boolean |
isFavourite()
Returns true if the unfavourite link is present, and false if the favourite link is present. |
boolean |
isNotPermitted()
|
boolean |
isRestricted()
Returns true if the page restrictions link is present. |
boolean |
isViewable()
|
boolean |
isWatching()
Returns true if the unwatch link is present, and false if the watch link is present. |
boolean |
isWatchingSpace()
Returns true if the space containing the content is being watched. |
boolean |
pageNotFound()
Returns true if the "Page Not Found" screen is presented. |
void |
remove()
|
void |
removeComment(java.lang.String commentId)
|
EditContentBean |
replyToComment(java.lang.String commentId)
|
void |
setAsFavourite()
Marks this page as a favourite. |
ViewAttachmentsBean |
viewAttachments()
|
static ViewContentBean |
viewBlogPost()
Factory method to return a ViewContentBean pointing at the current location of the web tester. |
static ViewContentBean |
viewBlogPost(BlogPost blogPost)
The blog post is assumed to be today. |
static ViewContentBean |
viewBlogPost(BlogPost blogPost,
net.sourceforge.jwebunit.junit.WebTester webTester)
The blog post is assumed to be today. |
static ViewContentBean |
viewBlogPost(long contentId)
Factory method to return a ViewContentBean for the blog post with the given content ID. |
static ViewContentBean |
viewBlogPost(long contentId,
net.sourceforge.jwebunit.junit.WebTester webTester)
Factory method to return a ViewContentBean for the blog post with the given content ID. |
static ViewContentBean |
viewBlogPost(java.lang.String spaceKey,
java.lang.String postTitle)
Factory method to return a ViewContentBean for the given post and space. |
static ViewContentBean |
viewBlogPost(java.lang.String spaceKey,
java.lang.String postTitle,
java.util.Date postDate)
Factory method to return a ViewContentBean for the given post and space. |
static ViewContentBean |
viewBlogPost(java.lang.String spaceKey,
java.lang.String postTitle,
java.util.Date postDate,
net.sourceforge.jwebunit.junit.WebTester webTester)
Factory method to return a ViewContentBean for the given post and space. |
static ViewContentBean |
viewBlogPost(java.lang.String spaceKey,
java.lang.String postTitle,
net.sourceforge.jwebunit.junit.WebTester webTester)
Factory method to return a ViewContentBean for the given post and space. |
static ViewContentBean |
viewBlogPost(net.sourceforge.jwebunit.junit.WebTester webTester)
|
static ViewContentBean |
viewBlogPostRespectingDate(BlogPost blogPost)
When viewing the blog actually respect the date set on the blog. |
static ViewContentBean |
viewBlogPostRespectingDate(BlogPost blogPost,
net.sourceforge.jwebunit.junit.WebTester webTester)
When viewing the blog actually respect the date set on the blog. |
ContentInfoBean |
viewInfo()
|
static ViewContentBean |
viewPage()
Factory method to return a ViewContentBean pointing at the current location of the web tester. |
static ViewContentBean |
viewPage(long contentId)
Factory method to return a ViewContentBean for the page with the given content ID. |
static ViewContentBean |
viewPage(long contentId,
net.sourceforge.jwebunit.junit.WebTester webTester)
Factory method to return a ViewContentBean for the page with the given content ID. |
static ViewContentBean |
viewPage(Page page)
|
static ViewContentBean |
viewPage(Page page,
net.sourceforge.jwebunit.junit.WebTester tester)
|
static ViewContentBean |
viewPage(Space space)
View the home page of the given space. |
static ViewContentBean |
viewPage(Space space,
java.lang.String pageTitle)
Factory method to return a ViewContentBean for the given page and space. |
static ViewContentBean |
viewPage(Space space,
java.lang.String pageTitle,
net.sourceforge.jwebunit.junit.WebTester tester)
|
static ViewContentBean |
viewPage(Space space,
net.sourceforge.jwebunit.junit.WebTester tester)
|
static ViewContentBean |
viewPage(java.lang.String spaceKey)
Factory method to return a ViewContentBean for the homepage of the given space. |
static ViewContentBean |
viewPage(java.lang.String spaceKey,
java.lang.String pageTitle)
Factory method to return a ViewContentBean for the given page and space. |
static ViewContentBean |
viewPage(java.lang.String spaceKey,
java.lang.String pageTitle,
boolean commentsOn)
Factory method to return a ViewContentBean for the given page and space, with comments specifically requested on or off. |
static ViewContentBean |
viewPage(java.lang.String spaceKey,
java.lang.String pageTitle,
boolean commentsOn,
net.sourceforge.jwebunit.junit.WebTester webTester)
Factory method to return a ViewContentBean for the given page and space, with comments specifically requested on or off. |
static ViewContentBean |
viewPage(java.lang.String spaceKey,
java.lang.String pageTitle,
net.sourceforge.jwebunit.junit.WebTester webTester)
|
static ViewContentBean |
viewPage(java.lang.String spaceKey,
net.sourceforge.jwebunit.junit.WebTester webTester)
Factory method to return a ViewContentBean for the homepage of the given space. |
static ViewContentBean |
viewPage(net.sourceforge.jwebunit.junit.WebTester webTester)
|
static ViewContentBean |
viewPersonalSpace(java.lang.String username)
|
static ViewContentBean |
viewPersonalSpace(java.lang.String username,
net.sourceforge.jwebunit.junit.WebTester webTester)
|
static ViewContentBean |
viewSpaceHomePage(Space space)
|
static ViewContentBean |
viewSpaceHomePage(Space space,
net.sourceforge.jwebunit.junit.WebTester webTester)
|
static ViewContentBean |
viewUrl(java.lang.String url)
|
static ViewContentBean |
viewUrl(java.lang.String url,
net.sourceforge.jwebunit.junit.WebTester webTester)
|
void |
viewWikiMarkup()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VIEW_SOURCE_LINK_ID
public static final java.lang.String SHOW_COMMENTS_ID
public static final java.lang.String ADD_MENU_LINK_ID
public static final java.lang.String REMOVE_CONTENT_MENU_LINK
public static final java.lang.String VIEW_PAGE_INFO_LINK_ID
Method Detail |
---|
public static ViewContentBean viewPage()
public static ViewContentBean viewPage(net.sourceforge.jwebunit.junit.WebTester webTester)
public static ViewContentBean viewBlogPost()
public static ViewContentBean viewBlogPost(net.sourceforge.jwebunit.junit.WebTester webTester)
public static ViewContentBean viewBlogPost(java.lang.String spaceKey, java.lang.String postTitle)
public static ViewContentBean viewBlogPost(java.lang.String spaceKey, java.lang.String postTitle, net.sourceforge.jwebunit.junit.WebTester webTester)
public static ViewContentBean viewBlogPost(java.lang.String spaceKey, java.lang.String postTitle, java.util.Date postDate)
public static ViewContentBean viewBlogPost(java.lang.String spaceKey, java.lang.String postTitle, java.util.Date postDate, net.sourceforge.jwebunit.junit.WebTester webTester)
public static ViewContentBean viewBlogPost(long contentId)
public static ViewContentBean viewBlogPost(long contentId, net.sourceforge.jwebunit.junit.WebTester webTester)
public static ViewContentBean viewBlogPost(BlogPost blogPost)
public static ViewContentBean viewBlogPost(BlogPost blogPost, net.sourceforge.jwebunit.junit.WebTester webTester)
public static ViewContentBean viewBlogPostRespectingDate(BlogPost blogPost)
public static ViewContentBean viewBlogPostRespectingDate(BlogPost blogPost, net.sourceforge.jwebunit.junit.WebTester webTester)
public static ViewContentBean viewPage(long contentId)
public static ViewContentBean viewPage(long contentId, net.sourceforge.jwebunit.junit.WebTester webTester)
public static ViewContentBean viewPage(java.lang.String spaceKey, net.sourceforge.jwebunit.junit.WebTester webTester)
public static ViewContentBean viewPage(java.lang.String spaceKey)
public static ViewContentBean viewPage(Space space, java.lang.String pageTitle)
public static ViewContentBean viewPage(Space space, java.lang.String pageTitle, net.sourceforge.jwebunit.junit.WebTester tester)
public static ViewContentBean viewPage(java.lang.String spaceKey, java.lang.String pageTitle, net.sourceforge.jwebunit.junit.WebTester webTester)
public static ViewContentBean viewPage(java.lang.String spaceKey, java.lang.String pageTitle)
public static ViewContentBean viewPage(Page page)
public static ViewContentBean viewPage(Page page, net.sourceforge.jwebunit.junit.WebTester tester)
public static ViewContentBean viewPage(Space space)
space
- of which the home page will be visited
ViewContentBean
viewing the home page of the space.public static ViewContentBean viewPage(Space space, net.sourceforge.jwebunit.junit.WebTester tester)
public static ViewContentBean viewPage(java.lang.String spaceKey, java.lang.String pageTitle, boolean commentsOn)
commentsOn
- specifies value of the showComments parameterpublic static ViewContentBean viewPage(java.lang.String spaceKey, java.lang.String pageTitle, boolean commentsOn, net.sourceforge.jwebunit.junit.WebTester webTester)
commentsOn
- specifies value of the showComments parameterpublic static ViewContentBean viewPersonalSpace(java.lang.String username)
public static ViewContentBean viewPersonalSpace(java.lang.String username, net.sourceforge.jwebunit.junit.WebTester webTester)
public static ViewContentBean viewSpaceHomePage(Space space)
public static ViewContentBean viewSpaceHomePage(Space space, net.sourceforge.jwebunit.junit.WebTester webTester)
public static ViewContentBean viewUrl(java.lang.String url)
public static ViewContentBean viewUrl(java.lang.String url, net.sourceforge.jwebunit.junit.WebTester webTester)
public static ViewContentBean.Builder builder()
public static ViewContentBean.Builder builder(net.sourceforge.jwebunit.junit.WebTester tester)
public java.lang.String getTitle()
public java.lang.String getContent()
public EditContentBean createPage()
public EditContentBean createBlogPost()
public EditContentBean edit()
public EditContentBean editBlogPost()
public void remove()
public ViewContentBean addTextComment(java.lang.String comment)
public EditContentBean addComment()
public java.util.List<CommentBean> getComments()
TODO threading.
public EditContentBean replyToComment(java.lang.String commentId)
public EditContentBean editComment(java.lang.String commentId)
public void removeComment(java.lang.String commentId)
public ViewAttachmentsBean viewAttachments()
public ContentInfoBean viewInfo()
public void ensureCommentsAreShown()
public java.util.List<java.lang.String> getChildren()
public void viewWikiMarkup()
public long getPageId()
public boolean isWatching()
java.lang.AssertionError
- if neither link is present (eg if space is watched).public boolean isWatchingSpace()
public boolean isFavourite()
java.lang.AssertionError
- if neither link is present.public void setAsFavourite()
public boolean isRestricted()
public boolean canRequestAccess()
public boolean canAddPage()
public boolean canAddBlogPost()
public boolean canAddComment()
public boolean canRemoveComment(java.lang.String commentId)
public boolean canAddAttachment()
public boolean canEdit()
public boolean pageNotFound()
public boolean hasNoPermission()
public boolean isNotPermitted()
public java.util.Date getRequestTime()
public CommentBean getFocusedComment()
public boolean isViewable()
public boolean containsLinkTo(java.lang.String spaceKey, java.lang.String pageTitle)
public EditContentBean copy()
public boolean hasLabel(java.lang.String label)
public PageMetadata getPageMetadata()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |