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 String
getCurrentLinkPart()
Use theAbstractLinkRenamingBean.getPageBeingChanged()
to calculate (according to the content type's linking rules) the current (before the rename) link part to the page.protected String
getNewLinkPart()
Use theAbstractLinkRenamingBean.getPageBeingChanged()
,AbstractLinkRenamingBean.newSpaceKey
, andAbstractLinkRenamingBean.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
-
-
-
-
Constructor Detail
-
PageLinkRenamingBean
public PageLinkRenamingBean(ContentEntityObject referringContent, SpaceContentEntityObject pageBeingChanged, String newSpaceKey, String newTitle)
-
-
Method Detail
-
getCurrentLinkPart
protected String getCurrentLinkPart()
Description copied from class:AbstractPageLinkRenamingBean
Use 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:
getCurrentLinkPart
in classAbstractPageLinkRenamingBean
- Returns:
- the current link part of the page
-
getNewLinkPart
protected String getNewLinkPart()
Description copied from class:AbstractPageLinkRenamingBean
Use theAbstractLinkRenamingBean.getPageBeingChanged()
,AbstractLinkRenamingBean.newSpaceKey
, andAbstractLinkRenamingBean.newTitle
to caclulate (according to the content type's rules) a link to the content after the rename.- Specified by:
getNewLinkPart
in classAbstractPageLinkRenamingBean
- Returns:
- the new link part of the page
-
-