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
public class XhtmlRoundTripMigrator extends AbstractExceptionTolerantMigrator
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
Constructors Constructor Description XhtmlRoundTripMigrator(FragmentTransformer storageRoundTripFragmentTransformer, XmlEventReaderFactory xmlEventReaderFactory, com.google.common.base.Predicate<ConversionContext> migrationPerformedPredicate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XhtmlRoundTripMigrator
createMigratorWithMigrationAwareTransformer(FragmentTransformer storageRoundTripFragmentTransformer, XmlEventReaderFactory xmlEventReaderFactory)
ExceptionTolerantMigrator.MigrationResult
migrate(String inputStorageFormat, ConversionContext conversionContext)
Migrate the supplied content.-
Methods inherited from class com.atlassian.confluence.content.render.xhtml.migration.AbstractExceptionTolerantMigrator
migrate
-
-
-
-
Constructor Detail
-
XhtmlRoundTripMigrator
public XhtmlRoundTripMigrator(FragmentTransformer storageRoundTripFragmentTransformer, XmlEventReaderFactory xmlEventReaderFactory, com.google.common.base.Predicate<ConversionContext> migrationPerformedPredicate)
-
-
Method Detail
-
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.
-
-