Class DefaultPlaceholderUrlFactory
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.editor.macro.DefaultPlaceholderUrlFactory
-
- All Implemented Interfaces:
PlaceholderUrlFactory
public class DefaultPlaceholderUrlFactory extends Object implements PlaceholderUrlFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultPlaceholderUrlFactory(int placeholderVersion, SettingsManager settingsManager, ContextPathHolder contextPathHolder, LocaleManager localeManager, MacroDefinitionSerializer macroDefinitionSerializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetUrlForErrorPlaceholder(String errorI18nKey)StringgetUrlForMacro(MacroDefinition macroDefinition)StringgetUrlForMacroHeading(MacroDefinition macroDefinition)StringgetUrlForUnknownAttachment()StringgetUrlForUnknownMacro(String macroName)
-
-
-
Constructor Detail
-
DefaultPlaceholderUrlFactory
public DefaultPlaceholderUrlFactory(int placeholderVersion, SettingsManager settingsManager, ContextPathHolder contextPathHolder, LocaleManager localeManager, MacroDefinitionSerializer macroDefinitionSerializer)
-
-
Method Detail
-
getUrlForMacro
public String getUrlForMacro(MacroDefinition macroDefinition)
- Specified by:
getUrlForMacroin interfacePlaceholderUrlFactory- Parameters:
macroDefinition- the macro definition- Returns:
- the url for a macro placeholder
-
getUrlForMacroHeading
public String getUrlForMacroHeading(MacroDefinition macroDefinition)
- Specified by:
getUrlForMacroHeadingin interfacePlaceholderUrlFactory- Parameters:
macroDefinition- the macro definition- Returns:
- the url for a macro placeholder heading (for a body macro)
-
getUrlForUnknownAttachment
public String getUrlForUnknownAttachment()
- Specified by:
getUrlForUnknownAttachmentin interfacePlaceholderUrlFactory- Returns:
- the url for the icon for an unknown attachment placeholder
-
getUrlForUnknownMacro
public String getUrlForUnknownMacro(String macroName)
- Specified by:
getUrlForUnknownMacroin interfacePlaceholderUrlFactory- Parameters:
macroName- macro name- Returns:
- the url for an unknown macro placeholder
-
getUrlForErrorPlaceholder
public String getUrlForErrorPlaceholder(String errorI18nKey)
- Specified by:
getUrlForErrorPlaceholderin interfacePlaceholderUrlFactory- Parameters:
errorI18nKey- the i18n key of the error text- Returns:
- the url for an error placeholder
-
-