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 classDefaultRenderingService.RenderMode
-
Constructor Summary
Constructors Constructor Description DefaultRenderingService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdContentLocatorgetContentLocator(long contentId)Creates and returns aIdContentLocatorthat can locate aConfluenceEntityObjectby an id.I18NBeanFactorygetI18NBeanFactory()LocaleManagergetLocaleManager()RenderContentCommandnewRenderWikiMarkupContentCommand(IdContentLocator contentLocator, SpaceLocator spaceLocator, String contentType, String content, ConversionContextOutputType conversionContextOutputType)Creates and returns aRenderContentCommandthat will render given wiki markup content in the context of the entity and space provided by the locators.RenderContentCommandnewRenderXHtmlContentCommand(IdContentLocator contentLocator, SpaceLocator spaceLocator, String contentType, String content, ConversionContextOutputType conversionContextOutputType)Creates and returns aRenderContentCommandthat will render given xhtml content in the context of the entity and space provided by the locators.voidsetContentEntityManager(ContentEntityManager contentEntityManager)voidsetFormatConverter(FormatConverter formatConverter)voidsetI18NBeanFactory(I18NBeanFactory i18nBeanFactory)voidsetLocaleManager(LocaleManager localeManager)voidsetPageTemplateManager(PageTemplateManager pageTemplateManager)voidsetPermissionManager(PermissionManager permissionManager)
-
-
-
Method Detail
-
newRenderXHtmlContentCommand
public RenderContentCommand newRenderXHtmlContentCommand(IdContentLocator contentLocator, SpaceLocator spaceLocator, String contentType, String content, ConversionContextOutputType conversionContextOutputType)
Description copied from interface:RenderingServiceCreates and returns aRenderContentCommandthat 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:
newRenderXHtmlContentCommandin interfaceRenderingService
-
newRenderWikiMarkupContentCommand
public RenderContentCommand newRenderWikiMarkupContentCommand(IdContentLocator contentLocator, SpaceLocator spaceLocator, String contentType, String content, ConversionContextOutputType conversionContextOutputType)
Description copied from interface:RenderingServiceCreates and returns aRenderContentCommandthat 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:
newRenderWikiMarkupContentCommandin interfaceRenderingService
-
getContentLocator
public IdContentLocator getContentLocator(long contentId)
Description copied from interface:RenderingServiceCreates and returns aIdContentLocatorthat can locate aConfluenceEntityObjectby an id.- Specified by:
getContentLocatorin 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)
-
-