Class DefaultPlaceholderUrlFactory
java.lang.Object
com.atlassian.confluence.content.render.xhtml.editor.macro.DefaultPlaceholderUrlFactory
- All Implemented Interfaces:
PlaceholderUrlFactory
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultPlaceholderUrlFactory
(int placeholderVersion, SettingsManager settingsManager, ContextPathHolder contextPathHolder, LocaleManager localeManager, MacroDefinitionSerializer macroDefinitionSerializer) -
Method Summary
Modifier and TypeMethodDescriptiongetUrlForErrorPlaceholder
(String errorI18nKey) getUrlForMacro
(MacroDefinition macroDefinition) getUrlForMacroHeading
(MacroDefinition macroDefinition) getUrlForUnknownMacro
(String macroName)
-
Constructor Details
-
DefaultPlaceholderUrlFactory
public DefaultPlaceholderUrlFactory(int placeholderVersion, SettingsManager settingsManager, ContextPathHolder contextPathHolder, LocaleManager localeManager, MacroDefinitionSerializer macroDefinitionSerializer)
-
-
Method Details
-
getUrlForMacro
- Specified by:
getUrlForMacro
in interfacePlaceholderUrlFactory
- Parameters:
macroDefinition
- the macro definition- Returns:
- the url for a macro placeholder
-
getUrlForMacroHeading
- Specified by:
getUrlForMacroHeading
in interfacePlaceholderUrlFactory
- Parameters:
macroDefinition
- the macro definition- Returns:
- the url for a macro placeholder heading (for a body macro)
-
getUrlForUnknownAttachment
- Specified by:
getUrlForUnknownAttachment
in interfacePlaceholderUrlFactory
- Returns:
- the url for the icon for an unknown attachment placeholder
-
getUrlForUnknownMacro
- Specified by:
getUrlForUnknownMacro
in interfacePlaceholderUrlFactory
- Parameters:
macroName
- macro name- Returns:
- the url for an unknown macro placeholder
-
getUrlForErrorPlaceholder
- Specified by:
getUrlForErrorPlaceholder
in interfacePlaceholderUrlFactory
- Parameters:
errorI18nKey
- the i18n key of the error text- Returns:
- the url for an error placeholder
-