com.atlassian.confluence.content.render.xhtml.migration
Class XhtmlRoundTripMigrator

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.migration.AbstractExceptionTolerantMigrator
      extended by 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
XhtmlRoundTripMigrator(FragmentTransformer storageRoundTripFragmentTransformer, XmlEventReaderFactory xmlEventReaderFactory, com.google.common.base.Predicate<ConversionContext> migrationPerformedPredicate)
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 migrated
conversionContext - the context to be applied for this migration
Returns:
a ExceptionTolerantMigrator.MigrationResult containing the migrated content (if any), as well as indications of failures.


Copyright © 2003–2015 Atlassian. All rights reserved.