Class DefaultRenderingService
java.lang.Object
com.atlassian.confluence.content.service.DefaultRenderingService
- All Implemented Interfaces:
RenderingService
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetContentLocator
(long contentId) Creates and returns aIdContentLocator
that can locate aConfluenceEntityObject
by an id.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.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)
-
Constructor Details
-
DefaultRenderingService
public DefaultRenderingService()
-
-
Method Details
-
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
Description copied from interface:RenderingService
Creates and returns aIdContentLocator
that can locate aConfluenceEntityObject
by an id.- Specified by:
getContentLocator
in interfaceRenderingService
-
setPermissionManager
-
setContentEntityManager
-
getI18NBeanFactory
-
setI18NBeanFactory
-
getLocaleManager
-
setLocaleManager
-
setFormatConverter
-
setPageTemplateManager
-