com.atlassian.confluence.util
Class PageLinkRenamingBean

java.lang.Object
  extended by com.atlassian.confluence.util.AbstractLinkRenamingBean
      extended by com.atlassian.confluence.util.AbstractPageLinkRenamingBean
          extended by com.atlassian.confluence.util.PageLinkRenamingBean
All Implemented Interfaces:
LinkRenamingBean, com.atlassian.renderer.v2.components.WikiContentHandler

public class PageLinkRenamingBean
extends AbstractPageLinkRenamingBean


Field Summary
 
Fields inherited from class com.atlassian.confluence.util.AbstractLinkRenamingBean
newSpaceKey, newTitle, pageBeingChanged, referringContent
 
Constructor Summary
PageLinkRenamingBean(ContentEntityObject referringContent, SpaceContentEntityObject pageBeingChanged, java.lang.String newSpaceKey, java.lang.String newTitle)
           
 
Method Summary
protected  java.lang.String getCurrentLinkPart()
          Use the AbstractLinkRenamingBean.getPageBeingChanged() to calculate (according to the content type's linking rules) the current (before the rename) link part to the page.
protected  java.lang.String getNewLinkPart()
          Use the AbstractLinkRenamingBean.getPageBeingChanged(), AbstractLinkRenamingBean.newSpaceKey, and AbstractLinkRenamingBean.newTitle to caclulate (according to the content type's rules) a link to the content after the rename.
 
Methods inherited from class com.atlassian.confluence.util.AbstractPageLinkRenamingBean
handleText
 
Methods inherited from class com.atlassian.confluence.util.AbstractLinkRenamingBean
escapeDollars, getPageBeingChanged, getReferringContentSpaceKey, getRenamedContent, handleMacro, setMacroManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageLinkRenamingBean

public PageLinkRenamingBean(ContentEntityObject referringContent,
                            SpaceContentEntityObject pageBeingChanged,
                            java.lang.String newSpaceKey,
                            java.lang.String newTitle)
Method Detail

getCurrentLinkPart

protected java.lang.String getCurrentLinkPart()
Description copied from class: AbstractPageLinkRenamingBean
Use the AbstractLinkRenamingBean.getPageBeingChanged() to calculate (according to the content type's linking rules) the current (before the rename) link part to the page. The link part is the part of a wiki link that is used to identify the page by title or other unique identifier.

Specified by:
getCurrentLinkPart in class AbstractPageLinkRenamingBean
Returns:
the current link part of the page

getNewLinkPart

protected java.lang.String getNewLinkPart()
Description copied from class: AbstractPageLinkRenamingBean
Use the AbstractLinkRenamingBean.getPageBeingChanged(), AbstractLinkRenamingBean.newSpaceKey, and AbstractLinkRenamingBean.newTitle to caclulate (according to the content type's rules) a link to the content after the rename.

Specified by:
getNewLinkPart in class AbstractPageLinkRenamingBean
Returns:
the new link part of the page


Copyright © 2003-2010 Atlassian. All Rights Reserved.