com.atlassian.confluence.it
Class Page

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

public class Page
extends AbstractContentEntity
implements LinkableContent


Field Summary
 
Fields inherited from class com.atlassian.confluence.it.AbstractContentEntity
content, id, lastModifier, version
 
Constructor Summary
Page(long id, String title, String content)
          Create a page when the space is not known.
Page(Page page)
           
Page(Space space, String title, String content)
           
Page(Space space, String title, String content, long parentPageId)
           
Page(String title, String content, Page parentPage)
           
 
Method Summary
 String getAddChildPageUrl()
           
 String getAddCommentUrl()
           
 String getCopyPageUrl()
           
 String getEditPageTitle()
           
 String getEditUrl()
          Return the url where this entity can be edited.
 String getPageHistoryUrl()
           
 String getPageInfoUrl()
           
 String getPageSourceUrl()
           
 long getParentPageId()
           
 Space getSpace()
          Return the space this content belongs to.
 String getTitle()
           
 String getUrl()
           
 String getViewAttachmentsUrl()
           
 String getViewPageTitle()
           
 void setTitle(String title)
          Edit the title of this object.
 
Methods inherited from class com.atlassian.confluence.it.AbstractContentEntity
getContent, getId, getLastModifier, getVersion, setContent, setId, setLastModifier, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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

getSpace

public Space getSpace()
Description copied from interface: ContentEntity
Return the space this content belongs to.

Specified by:
getSpace in interface ContentEntity

getParentPageId

public long getParentPageId()

getUrl

public String getUrl()
Specified by:
getUrl in interface LinkableContent

getTitle

public String getTitle()
Specified by:
getTitle in interface ContentEntity
Specified by:
getTitle in interface TitledContent
Returns:
the title of this entity

getViewPageTitle

public String getViewPageTitle()

getEditPageTitle

public String getEditPageTitle()

getEditUrl

public String getEditUrl()
Description copied from interface: ContentEntity
Return the url where this entity can be edited.

Specified by:
getEditUrl in interface ContentEntity

getPageInfoUrl

public String getPageInfoUrl()

getPageSourceUrl

public String getPageSourceUrl()

getAddCommentUrl

public String getAddCommentUrl()

getAddChildPageUrl

public String getAddChildPageUrl()

getViewAttachmentsUrl

public String getViewAttachmentsUrl()

getPageHistoryUrl

public String getPageHistoryUrl()

getCopyPageUrl

public String getCopyPageUrl()

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-2011 Atlassian. All Rights Reserved.