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
Constructor Summary |
Page(long id)
|
Page(long id,
java.lang.String title,
java.lang.String content)
Create a page when the space is not known. |
Page(java.util.Map createPageMap)
Creates a page object from the map returned from ConfluenceRpc.createPage()
Note this creates a page with an unknown space |
Page(Page page)
|
Page(Space space,
java.lang.String title,
java.lang.String content)
|
Page(Space space,
java.lang.String title,
java.lang.String content,
long parentPageId)
|
Page(java.lang.String title,
java.lang.String content,
Page parentPage)
|
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, wait, wait, wait |
TEST
public static Page TEST
Page
public Page(Space space,
java.lang.String title,
java.lang.String content)
Page
public Page(Space space,
java.lang.String title,
java.lang.String content,
long parentPageId)
Page
public Page(java.lang.String title,
java.lang.String content,
Page parentPage)
Page
public Page(long id)
Page
public Page(java.util.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,
java.lang.String title,
java.lang.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 java.lang.String getUrl()
getTitle
public java.lang.String getTitle()
- Returns:
- the title of this entity
getViewPageTitle
public java.lang.String getViewPageTitle()
getEditPageTitle
public java.lang.String getEditPageTitle()
getEditUrl
public java.lang.String getEditUrl()
- Returns:
- the url where this entity can be edited.
getPageInfoUrl
public java.lang.String getPageInfoUrl()
getPageSourceUrl
public java.lang.String getPageSourceUrl()
getAddCommentUrl
public UrlBuilder getAddCommentUrl()
- Specified by:
getAddCommentUrl
in class AbstractPageEntity
getAddChildPageUrl
public java.lang.String getAddChildPageUrl()
getViewAttachmentsUrl
public UrlBuilder getViewAttachmentsUrl()
getPageHistoryUrl
public java.lang.String getPageHistoryUrl()
getCopyPageUrl
public java.lang.String getCopyPageUrl()
getPagePermissionsUrl
public java.lang.String getPagePermissionsUrl()
setTitle
public void setTitle(java.lang.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.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2003-2013 Atlassian. All Rights Reserved.