Package com.atlassian.confluence.util
Class PageLinkRenamingBean
- java.lang.Object
-
- com.atlassian.confluence.util.AbstractLinkRenamingBean
-
- com.atlassian.confluence.util.AbstractPageLinkRenamingBean
-
- 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
Constructors Constructor Description PageLinkRenamingBean(ContentEntityObject referringContent, SpaceContentEntityObject pageBeingChanged, String newSpaceKey, String newTitle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetCurrentLinkPart()Use theAbstractLinkRenamingBean.getPageBeingChanged()to calculate (according to the content type's linking rules) the current (before the rename) link part to the page.protected StringgetNewLinkPart()Use theAbstractLinkRenamingBean.getPageBeingChanged(),AbstractLinkRenamingBean.newSpaceKey, andAbstractLinkRenamingBean.newTitleto 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
-
-
-
-
Constructor Detail
-
PageLinkRenamingBean
public PageLinkRenamingBean(ContentEntityObject referringContent, SpaceContentEntityObject pageBeingChanged, String newSpaceKey, String newTitle)
-
-
Method Detail
-
getCurrentLinkPart
protected String getCurrentLinkPart()
Description copied from class:AbstractPageLinkRenamingBeanUse theAbstractLinkRenamingBean.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:
getCurrentLinkPartin classAbstractPageLinkRenamingBean- Returns:
- the current link part of the page
-
getNewLinkPart
protected String getNewLinkPart()
Description copied from class:AbstractPageLinkRenamingBeanUse theAbstractLinkRenamingBean.getPageBeingChanged(),AbstractLinkRenamingBean.newSpaceKey, andAbstractLinkRenamingBean.newTitleto caclulate (according to the content type's rules) a link to the content after the rename.- Specified by:
getNewLinkPartin classAbstractPageLinkRenamingBean- Returns:
- the new link part of the page
-
-