|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RenderingService
The RenderingService is used to render a wiki page from its markup to something readable such as html It used a specific syntax to be able to read the markup
| Method Summary | |
|---|---|
org.xwiki.component.manager.ComponentManager |
getComponentManager()
Get the Component Manager |
String |
getContentOfSection(String markup,
String sourceSyntax,
String sectionIndex)
Get the content of a section |
String |
getCssURL()
Get the CSS url |
org.xwiki.context.Execution |
getExecution()
Get the current execution instance |
org.xwiki.rendering.block.XDOM |
parse(String markup,
String sourceSyntax)
Parse the markup of the page based on the syntax |
String |
render(String markup,
String sourceSyntax,
String targetSyntax,
boolean supportSectionEdit)
Render a wiki page from its markup to html by using the right syntax |
void |
setCssURL(String cssURL)
Set the CSS url |
String |
updateContentOfSection(String markup,
String sourceSyntax,
String sectionIndex,
String newSectionContent)
Update the content of the selected section |
| Method Detail |
|---|
org.xwiki.context.Execution getExecution()
throws org.xwiki.component.manager.ComponentLookupException,
org.xwiki.component.manager.ComponentRepositoryException
org.xwiki.component.manager.ComponentLookupException
org.xwiki.component.manager.ComponentRepositoryExceptionorg.xwiki.component.manager.ComponentManager getComponentManager()
String render(String markup,
String sourceSyntax,
String targetSyntax,
boolean supportSectionEdit)
throws Exception
markup - The markup of the pagesourceSyntax - The syntax used by the wiki pagetargetSyntax - The target syntax to applysupportSectionEdit - True if we support the section edit or false if not
Exception
String getContentOfSection(String markup,
String sourceSyntax,
String sectionIndex)
throws Exception
markup - The markup of the pagesourceSyntax - The syntax used by the wiki pagesectionIndex - The index of the section
Exception
String updateContentOfSection(String markup,
String sourceSyntax,
String sectionIndex,
String newSectionContent)
throws Exception
markup - The markup of the pagesourceSyntax - The syntax used by the wiki pagesectionIndex - The index of the sectionnewSectionContent - The new content of the section
Exception
org.xwiki.rendering.block.XDOM parse(String markup,
String sourceSyntax)
throws Exception
markup - The markup to parsesourceSyntax - The syntax to use
ExceptionString getCssURL()
void setCssURL(String cssURL)
cssURL - CSS url to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||