com.atlassian.confluence.it
Class Page

java.lang.Object
  extended by com.atlassian.confluence.it.AbstractContentEntity
      extended by com.atlassian.confluence.it.AbstractPageEntity
          extended by com.atlassian.confluence.it.Page
All Implemented Interfaces:
ContentEntity, LinkableContent, TitledContent, VersionedContent, ContentConvertible

public class Page
extends AbstractPageEntity


Field Summary
static Page TEST
           
 
Fields inherited from class com.atlassian.confluence.it.AbstractPageEntity
space
 
Fields inherited from class com.atlassian.confluence.it.AbstractContentEntity
content, id, lastModificationDate, lastModifier, version
 
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)
           
 
Method Summary
 java.lang.String getAddChildPageUrl()
           
 UrlBuilder getAddCommentUrl()
           
 ContentType getContentType()
           
 java.lang.String getCopyPageUrl()
           
 java.lang.String getEditPageTitle()
           
 java.lang.String getEditUrl()
           
 java.lang.String getPageHistoryUrl()
           
 java.lang.String getPageInfoUrl()
           
 java.lang.String getPagePermissionsUrl()
           
 java.lang.String getPageSourceUrl()
           
 long getParentPageId()
           
 Space getSpace()
           
 java.lang.String getTitle()
           
 java.lang.String getUrl()
           
 UrlBuilder getViewAttachmentsUrl()
           
 java.lang.String getViewPageTitle()
           
 void setTitle(java.lang.String title)
          Edit the title of this object.
 java.lang.String toString()
           
 
Methods inherited from class com.atlassian.confluence.it.AbstractPageEntity
getPageDiffUrl, getUrlBuilder, setSpace
 
Methods inherited from class com.atlassian.confluence.it.AbstractContentEntity
getContent, getContentId, getId, getIdAsString, getLastModificationDate, getLastModifier, getVersion, isMinorEdit, setContent, setId, setId, setLastModificationDate, setLastModifier, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TEST

public static Page TEST
Constructor Detail

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)
Method Detail

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.

getContentType

public ContentType getContentType()
Specified by:
getContentType in interface ContentEntity
Overrides:
getContentType in class AbstractContentEntity
Returns:
the ContentType of this entity

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2014 Atlassian. All Rights Reserved.