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

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.migration.PageTemplateWikiToXhtmlSiteMigrator
All Implemented Interfaces:
WikiToXhtmlSiteMigrator

public class PageTemplateWikiToXhtmlSiteMigrator
extends Object
implements WikiToXhtmlSiteMigrator


Field Summary
static int NUM_THREADS
          The number of conversion threads that may be running concurrently.
 
Constructor Summary
PageTemplateWikiToXhtmlSiteMigrator(int numberOfThreads, org.springframework.transaction.PlatformTransactionManager transactionManager, org.quartz.Scheduler scheduler, ExceptionTolerantMigrator migrator, PageTemplateDao pageTemplateDao, PageTemplateManager pageTemplateManager)
          The size of each batch.
 
Method Summary
 boolean isSiteMigrationInProgress()
           
 ExceptionReport migrateSite()
          Migrate the entire site from wiki to Xhtml storage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUM_THREADS

public static final int NUM_THREADS
The number of conversion threads that may be running concurrently.

See Also:
Constant Field Values
Constructor Detail

PageTemplateWikiToXhtmlSiteMigrator

public PageTemplateWikiToXhtmlSiteMigrator(int numberOfThreads,
                                           org.springframework.transaction.PlatformTransactionManager transactionManager,
                                           org.quartz.Scheduler scheduler,
                                           ExceptionTolerantMigrator migrator,
                                           PageTemplateDao pageTemplateDao,
                                           PageTemplateManager pageTemplateManager)
The size of each batch. Configurable through system property confluence.migration.batch.size.

Method Detail

migrateSite

public ExceptionReport migrateSite()
                            throws MigrationException
Description copied from interface: WikiToXhtmlSiteMigrator
Migrate the entire site from wiki to Xhtml storage. Only one migration can be in progress at any time.

Specified by:
migrateSite in interface WikiToXhtmlSiteMigrator
Throws:
MigrationException - wrapping any exceptions which occur during the migration

isSiteMigrationInProgress

public boolean isSiteMigrationInProgress()
Specified by:
isSiteMigrationInProgress in interface WikiToXhtmlSiteMigrator
Returns:
if a migration is currently in progress


Copyright © 2003-2013 Atlassian. All Rights Reserved.