|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfluenceWysiwygConverter
Confluence-specific wysiwig converter for rendering wiki markup in XHTML and vice versa.
Method Summary | |
---|---|
String |
convertToPreview(String inputText,
String pageIdString,
String spaceKey,
String fromMode)
Converts text into XHTML for Preview |
String |
convertWikiMarkupToXHtml(ContentEntityObject content,
String wikiMarkup)
Converts wiki markup text into XHTML, using the page context of the content object. |
String |
convertWikiMarkupToXHtml(ContentEntityObject content,
String spaceKey,
String wikiMarkup)
Converts wiki markup text into XHTML, using the page context of the content object. |
String |
convertWikiMarkupToXHtml(String wikiMarkup,
String pageId)
Converts wiki markup text into XHTML, using the page context of the content object specified by the id. |
String |
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. |
String |
convertWikiMarkupToXHtmlWithoutPage(String wikiMarkup,
String pageId)
Deprecated. since 2.10 - Either use ConfluenceWysiwygConverterDWRWrapper.convertWikiMarkupToXHtmlWithoutPage(String wikiMarkup, String pageId) or ConfluenceWysiwygConverter.convertWikiMarkupToXHtml(String wikiMarkup, String pageId) 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) |
String |
convertXHtmlToWikiMarkup(ContentEntityObject content,
String xhtml)
Converts XHTML into wiki markup, using the page context of the content object |
String |
convertXHtmlToWikiMarkup(String xhtml,
String pageId)
Converts XHTML into wiki markup, without using page context |
String |
convertXHtmlToWikiMarkupWithoutPage(String xhtml,
String pageId)
Deprecated. since 2.10 - Either use ConfluenceWysiwygConverterDWRWrapper.convertXHtmlToWikiMarkupWithoutPage(String wikiMarkup, String pageId) or ConfluenceWysiwygConverter.convertXHtmlToWikiMarkup(String wikiMarkup, String pageId) Converts XHTML into wiki markup, without using page context |
boolean |
getUserWysiwygPreference()
Deprecated. since 4.0. Users are no longer able to set a user preference. |
Method Detail |
---|
String convertWikiMarkupToXHtml(ContentEntityObject content, String wikiMarkup)
content
- - the object the markup is written withinwikiMarkup
- - the text to be converted
String convertWikiMarkupToXHtml(ContentEntityObject content, String spaceKey, String wikiMarkup)
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
@Deprecated String convertWikiMarkupToXHtmlWithoutPage(String wikiMarkup, String pageId)
wikiMarkup
- - the text to be convertedpageId
- - id of the object
String convertWikiMarkupToXHtml(String wikiMarkup, String pageId)
wikiMarkup
- - the text to be convertedpageId
- - id of the object
String convertWikiMarkupToXHtml(String wikiMarkup, String pageId, String spaceKey)
wikiMarkup
- - the text to be convertedpageId
- - id of the objectspaceKey
- - the space in which the content is written, used when content is null
String convertXHtmlToWikiMarkup(ContentEntityObject content, String xhtml)
content
- - the content object the markup is writen withinxhtml
- - the text to be converted
@Deprecated String convertXHtmlToWikiMarkupWithoutPage(String xhtml, String pageId)
xhtml
- - the text to be convertedpageId
- - NOT USED
String convertXHtmlToWikiMarkup(String xhtml, String pageId)
xhtml
- - the text to be convertedpageId
- - NOT USED
String convertToPreview(String inputText, String pageIdString, String spaceKey, String fromMode)
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)
@Deprecated boolean getUserWysiwygPreference()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |