Package com.atlassian.confluence.util
Class AbstractLinkRenamingBean
- java.lang.Object
-
- com.atlassian.confluence.util.AbstractLinkRenamingBean
-
- All Implemented Interfaces:
LinkRenamingBean
,com.atlassian.renderer.v2.components.WikiContentHandler
- Direct Known Subclasses:
AbstractPageLinkRenamingBean
,CamelCaseLinkRenamingBean
,IncludePageMacroLinkRenamingBean
,SelfPageLinkRenamingBean
public abstract class AbstractLinkRenamingBean extends Object implements LinkRenamingBean, com.atlassian.renderer.v2.components.WikiContentHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected String
newSpaceKey
protected String
newTitle
protected SpaceContentEntityObject
pageBeingChanged
protected ContentEntityObject
referringContent
-
Constructor Summary
Constructors Constructor Description AbstractLinkRenamingBean(ContentEntityObject referringContent, SpaceContentEntityObject pageBeingChanged, String newSpaceKey, String newTitle)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected String
escapeDollars(String s)
protected SpaceContentEntityObject
getPageBeingChanged()
protected String
getReferringContentSpaceKey()
String
getRenamedContent()
void
handleMacro(StringBuffer buffer, com.atlassian.renderer.v2.components.MacroTag macroTag, String body)
abstract void
handleText(StringBuffer buffer, String s)
void
setMacroManager(com.atlassian.renderer.v2.macro.MacroManager macroManager)
-
-
-
Field Detail
-
pageBeingChanged
protected SpaceContentEntityObject pageBeingChanged
-
newSpaceKey
protected String newSpaceKey
-
newTitle
protected String newTitle
-
referringContent
protected ContentEntityObject referringContent
-
-
Constructor Detail
-
AbstractLinkRenamingBean
public AbstractLinkRenamingBean(ContentEntityObject referringContent, SpaceContentEntityObject pageBeingChanged, String newSpaceKey, String newTitle)
-
-
Method Detail
-
getReferringContentSpaceKey
protected String getReferringContentSpaceKey()
-
getPageBeingChanged
protected SpaceContentEntityObject getPageBeingChanged()
-
getRenamedContent
public String getRenamedContent()
- Specified by:
getRenamedContent
in interfaceLinkRenamingBean
-
setMacroManager
public void setMacroManager(com.atlassian.renderer.v2.macro.MacroManager macroManager)
-
handleMacro
public void handleMacro(StringBuffer buffer, com.atlassian.renderer.v2.components.MacroTag macroTag, String body)
- Specified by:
handleMacro
in interfacecom.atlassian.renderer.v2.components.WikiContentHandler
-
handleText
public abstract void handleText(StringBuffer buffer, String s)
- Specified by:
handleText
in interfacecom.atlassian.renderer.v2.components.WikiContentHandler
-
-