com.atlassian.confluence.content.render.xhtml.editor.macro
Class DefaultPlaceholderUrlFactory

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.editor.macro.DefaultPlaceholderUrlFactory
All Implemented Interfaces:
PlaceholderUrlFactory

public class DefaultPlaceholderUrlFactory
extends java.lang.Object
implements PlaceholderUrlFactory


Constructor Summary
DefaultPlaceholderUrlFactory(int placeholderVersion, SettingsManager settingsManager, ContextPathHolder contextPathHolder, LocaleManager localeManager, MacroDefinitionSerializer macroDefinitionSerializer)
           
 
Method Summary
 java.lang.String getUrlForErrorPlaceholder(java.lang.String errorI18nKey)
           
 java.lang.String getUrlForMacro(MacroDefinition macroDefinition)
           
 java.lang.String getUrlForMacroHeading(MacroDefinition macroDefinition)
           
 java.lang.String getUrlForUnknownAttachment()
           
 java.lang.String getUrlForUnknownMacro(java.lang.String macroName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPlaceholderUrlFactory

public DefaultPlaceholderUrlFactory(int placeholderVersion,
                                    SettingsManager settingsManager,
                                    ContextPathHolder contextPathHolder,
                                    LocaleManager localeManager,
                                    MacroDefinitionSerializer macroDefinitionSerializer)
Method Detail

getUrlForMacro

public java.lang.String getUrlForMacro(MacroDefinition macroDefinition)
Specified by:
getUrlForMacro in interface PlaceholderUrlFactory
Parameters:
macroDefinition - the macro definition
Returns:
the url for a macro placeholder

getUrlForMacroHeading

public java.lang.String getUrlForMacroHeading(MacroDefinition macroDefinition)
Specified by:
getUrlForMacroHeading in interface PlaceholderUrlFactory
Parameters:
macroDefinition - the macro definition
Returns:
the url for a macro placeholder heading (for a body macro)

getUrlForUnknownAttachment

public java.lang.String getUrlForUnknownAttachment()
Specified by:
getUrlForUnknownAttachment in interface PlaceholderUrlFactory
Returns:
the url for the icon for an unknown attachment placeholder

getUrlForUnknownMacro

public java.lang.String getUrlForUnknownMacro(java.lang.String macroName)
Specified by:
getUrlForUnknownMacro in interface PlaceholderUrlFactory
Parameters:
macroName - macro name
Returns:
the url for an unknown macro placeholder

getUrlForErrorPlaceholder

public java.lang.String getUrlForErrorPlaceholder(java.lang.String errorI18nKey)
Specified by:
getUrlForErrorPlaceholder in interface PlaceholderUrlFactory
Parameters:
errorI18nKey - the i18n key of the error text
Returns:
the url for an error placeholder


Copyright © 2003-2014 Atlassian. All Rights Reserved.