public class DefaultRenderingService extends Object implements RenderingService
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultRenderingService.RenderMode |
| Constructor and Description |
|---|
DefaultRenderingService() |
| Modifier and Type | Method and Description |
|---|---|
IdContentLocator |
getContentLocator(long contentId)
Creates and returns a
IdContentLocator that can locate a ConfluenceEntityObject
by an id. |
I18NBeanFactory |
getI18NBeanFactory() |
LocaleManager |
getLocaleManager() |
RenderContentCommand |
newRenderWikiMarkupContentCommand(IdContentLocator contentLocator,
SpaceLocator spaceLocator,
String contentType,
String content,
ConversionContextOutputType conversionContextOutputType)
Creates and returns a
RenderContentCommand that will render given wiki markup content in the context of the
entity and space provided by the locators. |
RenderContentCommand |
newRenderXHtmlContentCommand(IdContentLocator contentLocator,
SpaceLocator spaceLocator,
String contentType,
String content,
ConversionContextOutputType conversionContextOutputType)
Creates and returns a
RenderContentCommand that will render given xhtml content in the context of the
entity and space provided by the locators. |
void |
setContentEntityManager(ContentEntityManager contentEntityManager) |
void |
setFormatConverter(FormatConverter formatConverter) |
void |
setI18NBeanFactory(I18NBeanFactory i18nBeanFactory) |
void |
setLocaleManager(LocaleManager localeManager) |
void |
setPageTemplateManager(PageTemplateManager pageTemplateManager) |
void |
setPermissionManager(PermissionManager permissionManager) |
public RenderContentCommand newRenderXHtmlContentCommand(IdContentLocator contentLocator, SpaceLocator spaceLocator, String contentType, String content, ConversionContextOutputType conversionContextOutputType)
RenderingServiceRenderContentCommand that will render given xhtml content in the context of the
entity and space provided by the locators. This is particularly useful when rendering the wysiwyg editor's content
for preview mode.newRenderXHtmlContentCommand in interface RenderingServicepublic RenderContentCommand newRenderWikiMarkupContentCommand(IdContentLocator contentLocator, SpaceLocator spaceLocator, String contentType, String content, ConversionContextOutputType conversionContextOutputType)
RenderingServiceRenderContentCommand that will render given wiki markup content in the context of the
entity and space provided by the locators. This is particularly useful when rendering the markup editor's content
for preview mode.newRenderWikiMarkupContentCommand in interface RenderingServicepublic IdContentLocator getContentLocator(long contentId)
RenderingServiceIdContentLocator that can locate a ConfluenceEntityObject
by an id.getContentLocator in interface RenderingServicepublic void setPermissionManager(PermissionManager permissionManager)
public void setContentEntityManager(ContentEntityManager contentEntityManager)
public I18NBeanFactory getI18NBeanFactory()
public void setI18NBeanFactory(I18NBeanFactory i18nBeanFactory)
public LocaleManager getLocaleManager()
public void setLocaleManager(LocaleManager localeManager)
public void setFormatConverter(FormatConverter formatConverter)
public void setPageTemplateManager(PageTemplateManager pageTemplateManager)
Copyright © 2003–2022 Atlassian. All rights reserved.