public abstract class

AbstractPageLinkRenamingBean

extends AbstractLinkRenamingBean
java.lang.Object
   ↳ com.atlassian.confluence.util.AbstractLinkRenamingBean
     ↳ com.atlassian.confluence.util.AbstractPageLinkRenamingBean
Known Direct Subclasses

Class Overview

Common base class for renaming links to different page types.

Summary

[Expand]
Inherited Fields
From class com.atlassian.confluence.util.AbstractLinkRenamingBean
Public Constructors
AbstractPageLinkRenamingBean(ContentEntityObject referringContent, SpaceContentEntityObject pageBeingChanged, String newSpaceKey, String newTitle)
Public Methods
void handleText(StringBuffer buffer, String s)
Protected Methods
abstract String getCurrentLinkPart()
Use the getPageBeingChanged() to calculate (according to the content type's linking rules) the current (before the rename) link part to the page.
abstract String getNewLinkPart()
Use the getPageBeingChanged(), newSpaceKey, and newTitle to caclulate (according to the content type's rules) a link to the content after the rename.
[Expand]
Inherited Methods
From class com.atlassian.confluence.util.AbstractLinkRenamingBean
From class java.lang.Object
From interface com.atlassian.confluence.util.LinkRenamingBean
From interface com.atlassian.renderer.v2.components.WikiContentHandler

Public Constructors

public AbstractPageLinkRenamingBean (ContentEntityObject referringContent, SpaceContentEntityObject pageBeingChanged, String newSpaceKey, String newTitle)

Public Methods

public void handleText (StringBuffer buffer, String s)

Protected Methods

protected abstract String getCurrentLinkPart ()

Use the 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.

Returns
  • the current link part of the page

protected abstract String getNewLinkPart ()

Use the getPageBeingChanged(), newSpaceKey, and newTitle to caclulate (according to the content type's rules) a link to the content after the rename.

Returns
  • the new link part of the page