Interface ConfluenceWysiwygConverter
- All Known Implementing Classes:
DefaultConfluenceWysiwygConverter
@Transactional
public interface ConfluenceWysiwygConverter
Confluence-specific wysiwig converter for rendering wiki markup in XHTML and vice versa.
-
Method Summary
Modifier and TypeMethodDescriptionconvertToPreview
(String inputText, String pageIdString, String spaceKey, String fromMode) Converts text into XHTML for PreviewconvertWikiMarkupToXHtml
(ContentEntityObject content, String wikiMarkup) Converts wiki markup text into XHTML, using the page context of the content object.convertWikiMarkupToXHtml
(ContentEntityObject content, String spaceKey, String wikiMarkup) Converts wiki markup text into XHTML, using the page context of the content object.convertWikiMarkupToXHtml
(String wikiMarkup, String pageId) Converts wiki markup text into XHTML, using the page context of the content object specified by the id.convertWikiMarkupToXHtml
(String wikiMarkup, String pageId, String spaceKey) Converts wiki markup text into XHTML, using the page context of the content object specified by the id.convertXHtmlToWikiMarkup
(ContentEntityObject content, String xhtml) Converts XHTML into wiki markup, using the page context of the content objectconvertXHtmlToWikiMarkup
(String xhtml, String pageId) Converts XHTML into wiki markup, without using page context
-
Method Details
-
convertWikiMarkupToXHtml
Converts wiki markup text into XHTML, using the page context of the content object. If content is null, use convertWikiMarkupToXHtml(ContentEntityObject content, String spaceKey, String wikiMarkup)- Parameters:
content
- - the object the markup is written withinwikiMarkup
- - the text to be converted- Returns:
- converted XHTML
-
convertWikiMarkupToXHtml
Converts wiki markup text into XHTML, using the page context of the content object. If content is null, the spaceKey is used to define the page context.- Parameters:
content
- - the object the markup is written withinspaceKey
- - the space in which the content is written, used when content is nullwikiMarkup
- - the text to be converted- Returns:
- converted XHTML
-
convertWikiMarkupToXHtml
Converts wiki markup text into XHTML, using the page context of the content object specified by the id. If content is null, use convertWikiMarkupToXHtml(ContentEntityObject content, String spaceKey, String wikiMarkup)- Parameters:
wikiMarkup
- - the text to be convertedpageId
- - id of the object- Returns:
- converted XHTML
-
convertWikiMarkupToXHtml
Converts wiki markup text into XHTML, using the page context of the content object specified by the id. If content is null, the spaceKey is used to define the page context.- Parameters:
wikiMarkup
- - the text to be convertedpageId
- - id of the objectspaceKey
- - the space in which the content is written, used when content is null- Returns:
- converted XHTML
-
convertXHtmlToWikiMarkup
Converts XHTML into wiki markup, using the page context of the content object- Parameters:
content
- - the content object the markup is writen withinxhtml
- - the text to be converted- Returns:
- converted wiki markup
-
convertXHtmlToWikiMarkup
Converts XHTML into wiki markup, without using page context- Parameters:
xhtml
- - the text to be convertedpageId
- - NOT USED- Returns:
- converted wiki markup
-
convertToPreview
Converts text into XHTML for Preview- Parameters:
inputText
- - text to be converted (can be either XHTML or Wiki Markup)pageIdString
- - the id of the content that the text is written withinspaceKey
- - if the content object doesn't exist the space key is usedfromMode
- - the form that the text is in (AbstractPageAction.RICHTEXT or AbstractPageAction.MARKUP)- Returns:
- converted XHTML
-