Class ContentBodyConversionManagerImpl
- java.lang.Object
-
- com.atlassian.confluence.api.impl.service.content.ContentBodyConversionManagerImpl
-
- All Implemented Interfaces:
ContentBodyConversionManager
public class ContentBodyConversionManagerImpl extends Object implements ContentBodyConversionManager
- Since:
- 5.10
-
-
Constructor Summary
Constructors Constructor Description ContentBodyConversionManagerImpl(FormatConverter formatConverter, ExceptionTolerantMigrator xhtmlRoundTripMigrator, WikiToXhtmlMigrator wikiToXhtmlMigrator, Renderer viewRenderer, TemplateRenderer templateRenderer, I18NBeanFactory i18nBeanFactory, WebResourceDependenciesRecorder webResourceDependenciesRecorder, WebResourceDependenciesFactory resourceDependenciesFactory, org.springframework.transaction.PlatformTransactionManager transactionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.atlassian.fugue.Pair<String,Reference<WebResourceDependencies>>
convert(ContentRepresentation fromFormat, String value, ContentRepresentation toFormat, ContentEntityObject ceo, Expansion... expansions)
Computes the converted value of the ContentBody and the required web resources that may be needed to render the converted value.
-
-
-
Constructor Detail
-
ContentBodyConversionManagerImpl
public ContentBodyConversionManagerImpl(FormatConverter formatConverter, ExceptionTolerantMigrator xhtmlRoundTripMigrator, WikiToXhtmlMigrator wikiToXhtmlMigrator, Renderer viewRenderer, TemplateRenderer templateRenderer, I18NBeanFactory i18nBeanFactory, WebResourceDependenciesRecorder webResourceDependenciesRecorder, WebResourceDependenciesFactory resourceDependenciesFactory, org.springframework.transaction.PlatformTransactionManager transactionManager)
-
-
Method Detail
-
convert
public com.atlassian.fugue.Pair<String,Reference<WebResourceDependencies>> convert(ContentRepresentation fromFormat, String value, ContentRepresentation toFormat, ContentEntityObject ceo, Expansion... expansions)
Description copied from interface:ContentBodyConversionManager
Computes the converted value of the ContentBody and the required web resources that may be needed to render the converted value.- Specified by:
convert
in interfaceContentBodyConversionManager
- Parameters:
fromFormat
- The format to convert from.value
- The value of the content body that is being converted.toFormat
- The format to covert to.ceo
- The ContentEntityObject to have its contents converted.expansions
- The required expansions, e.g. "webresource.tags,webresource.context,webresource.keys,webresource.uris".- Returns:
- The converted value of the content body and the required web resources if requested in the expansion.
-
-