com.atlassian.confluence.it
Class Page
java.lang.Object
com.atlassian.confluence.it.AbstractContentEntity
com.atlassian.confluence.it.AbstractPageEntity
com.atlassian.confluence.it.Page
- All Implemented Interfaces:
- ContentEntity, LinkableContent, TitledContent
public class Page
- extends AbstractPageEntity
Methods inherited from class com.atlassian.confluence.it.AbstractContentEntity |
getContent, getId, getIdAsString, getLastModificationDate, getLastModifier, getVersion, setContent, setId, setLastModificationDate, setLastModifier, setVersion |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEST
public static Page TEST
Page
public Page(Space space,
String title,
String content)
Page
public Page(Space space,
String title,
String content,
long parentPageId)
Page
public Page(String title,
String content,
Page parentPage)
Page
public Page(long id)
Page
public Page(Map createPageMap)
- Creates a page object from the map returned from ConfluenceRpc.createPage()
Note this creates a page with an unknown space
- Parameters:
createPageMap
-
Page
public Page(long id,
String title,
String content)
- Create a page when the space is not known. Be warned that some methods
on this page may fail.
Page
public Page(Page page)
getSpace
public Space getSpace()
- Returns:
- the space this content belongs to.
getParentPageId
public long getParentPageId()
getUrl
public String getUrl()
getTitle
public String getTitle()
- Returns:
- the title of this entity
getViewPageTitle
public String getViewPageTitle()
getEditPageTitle
public String getEditPageTitle()
getEditUrl
public String getEditUrl()
- Returns:
- the url where this entity can be edited.
getPageInfoUrl
public String getPageInfoUrl()
getPageSourceUrl
public String getPageSourceUrl()
getAddCommentUrl
public UrlBuilder getAddCommentUrl()
- Specified by:
getAddCommentUrl
in class AbstractPageEntity
getAddChildPageUrl
public String getAddChildPageUrl()
getViewAttachmentsUrl
public UrlBuilder getViewAttachmentsUrl()
getPageHistoryUrl
public String getPageHistoryUrl()
getCopyPageUrl
public String getCopyPageUrl()
getPagePermissionsUrl
public String getPagePermissionsUrl()
setTitle
public void setTitle(String title)
- Edit the title of this object. WARNING: changing this field will not update the system by itself, and operations
that try to look up this page by the new title will fail until the system is actually updated.
- Parameters:
title
- the new title for the page.
Copyright © 2003-2013 Atlassian. All Rights Reserved.