Class DefaultRenderingService
- java.lang.Object
-
- com.atlassian.confluence.content.service.DefaultRenderingService
-
- All Implemented Interfaces:
RenderingService
public class DefaultRenderingService extends Object implements RenderingService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultRenderingService.RenderMode
-
Constructor Summary
Constructors Constructor Description DefaultRenderingService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdContentLocator
getContentLocator(long contentId)
Creates and returns aIdContentLocator
that can locate aConfluenceEntityObject
by an id.I18NBeanFactory
getI18NBeanFactory()
LocaleManager
getLocaleManager()
RenderContentCommand
newRenderWikiMarkupContentCommand(IdContentLocator contentLocator, SpaceLocator spaceLocator, String contentType, String content, ConversionContextOutputType conversionContextOutputType)
Creates and returns aRenderContentCommand
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 aRenderContentCommand
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)
-
-
-
Method Detail
-
newRenderXHtmlContentCommand
public RenderContentCommand newRenderXHtmlContentCommand(IdContentLocator contentLocator, SpaceLocator spaceLocator, String contentType, String content, ConversionContextOutputType conversionContextOutputType)
Description copied from interface:RenderingService
Creates and returns aRenderContentCommand
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.- Specified by:
newRenderXHtmlContentCommand
in interfaceRenderingService
-
newRenderWikiMarkupContentCommand
public RenderContentCommand newRenderWikiMarkupContentCommand(IdContentLocator contentLocator, SpaceLocator spaceLocator, String contentType, String content, ConversionContextOutputType conversionContextOutputType)
Description copied from interface:RenderingService
Creates and returns aRenderContentCommand
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.- Specified by:
newRenderWikiMarkupContentCommand
in interfaceRenderingService
-
getContentLocator
public IdContentLocator getContentLocator(long contentId)
Description copied from interface:RenderingService
Creates and returns aIdContentLocator
that can locate aConfluenceEntityObject
by an id.- Specified by:
getContentLocator
in interfaceRenderingService
-
setPermissionManager
public void setPermissionManager(PermissionManager permissionManager)
-
setContentEntityManager
public void setContentEntityManager(ContentEntityManager contentEntityManager)
-
getI18NBeanFactory
public I18NBeanFactory getI18NBeanFactory()
-
setI18NBeanFactory
public void setI18NBeanFactory(I18NBeanFactory i18nBeanFactory)
-
getLocaleManager
public LocaleManager getLocaleManager()
-
setLocaleManager
public void setLocaleManager(LocaleManager localeManager)
-
setFormatConverter
public void setFormatConverter(FormatConverter formatConverter)
-
setPageTemplateManager
public void setPageTemplateManager(PageTemplateManager pageTemplateManager)
-
-