Class XhtmlRoundTripMigrator
java.lang.Object
com.atlassian.confluence.content.render.xhtml.migration.AbstractExceptionTolerantMigrator
com.atlassian.confluence.content.render.xhtml.migration.XhtmlRoundTripMigrator
- All Implemented Interfaces:
ExceptionTolerantMigrator
Migrate content to the current storage format using a simple storage to storage fragment transformer.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.confluence.content.render.xhtml.migration.ExceptionTolerantMigrator
ExceptionTolerantMigrator.MigrationResult
-
Constructor Summary
ConstructorsConstructorDescriptionXhtmlRoundTripMigrator
(FragmentTransformer storageRoundTripFragmentTransformer, XmlEventReaderFactory xmlEventReaderFactory, com.google.common.base.Predicate<ConversionContext> migrationPerformedPredicate) -
Method Summary
Modifier and TypeMethodDescriptionstatic XhtmlRoundTripMigrator
createMigratorWithMigrationAwareTransformer
(FragmentTransformer storageRoundTripFragmentTransformer, XmlEventReaderFactory xmlEventReaderFactory) migrate
(String inputStorageFormat, ConversionContext conversionContext) Migrate the supplied content.Methods inherited from class com.atlassian.confluence.content.render.xhtml.migration.AbstractExceptionTolerantMigrator
migrate
-
Constructor Details
-
XhtmlRoundTripMigrator
public XhtmlRoundTripMigrator(FragmentTransformer storageRoundTripFragmentTransformer, XmlEventReaderFactory xmlEventReaderFactory, com.google.common.base.Predicate<ConversionContext> migrationPerformedPredicate)
-
-
Method Details
-
createMigratorWithMigrationAwareTransformer
public static XhtmlRoundTripMigrator createMigratorWithMigrationAwareTransformer(FragmentTransformer storageRoundTripFragmentTransformer, XmlEventReaderFactory xmlEventReaderFactory) -
migrate
public ExceptionTolerantMigrator.MigrationResult migrate(String inputStorageFormat, ConversionContext conversionContext) Description copied from interface:ExceptionTolerantMigrator
Migrate the supplied content.- Parameters:
inputStorageFormat
- the comtent to be migratedconversionContext
- the context to be applied for this migration- Returns:
- a
ExceptionTolerantMigrator.MigrationResult
containing the migrated content (if any), as well as indications of failures.
-