com.atlassian.confluence.util
Class BlogPostLinkRenamingBean

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

public class BlogPostLinkRenamingBean
extends AbstractPageLinkRenamingBean


Field Summary
 
Fields inherited from class com.atlassian.confluence.util.AbstractLinkRenamingBean
newSpaceKey, newTitle, pageBeingChanged, referringContent
 
Constructor Summary
BlogPostLinkRenamingBean(ContentEntityObject referringContent, SpaceContentEntityObject pageBeingChanged, String newSpaceKey, String newTitle)
           
 
Method Summary
protected  BlogPost getBlogPostBeingChanged()
           
protected  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  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

BlogPostLinkRenamingBean

public BlogPostLinkRenamingBean(ContentEntityObject referringContent,
                                SpaceContentEntityObject pageBeingChanged,
                                String newSpaceKey,
                                String newTitle)
Method Detail

getBlogPostBeingChanged

protected BlogPost getBlogPostBeingChanged()

getCurrentLinkPart

protected 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 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-2013 Atlassian. All Rights Reserved.