Class PageTemplateMigratorTask
java.lang.Object
org.springframework.transaction.support.TransactionCallbackWithoutResult
com.atlassian.confluence.content.render.xhtml.migration.tasks.PageTemplateMigratorTask
- All Implemented Interfaces:
org.springframework.transaction.support.TransactionCallback<Object>
public final class PageTemplateMigratorTask
extends org.springframework.transaction.support.TransactionCallbackWithoutResult
Performs migration of all Page Templates that match a given selector, by passing the templates'
content through an
ExceptionTolerantMigrator
and storing the result as a new template version.-
Constructor Summary
ConstructorDescriptionPageTemplateMigratorTask
(ExceptionTolerantMigrator migrator, PageTemplateDao dao, PageTemplateManager pageTemplateManager, ExceptionReport report, Predicate<PageTemplate> migrationCandidateSelector) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doInTransactionWithoutResult
(org.springframework.transaction.TransactionStatus status) Methods inherited from class org.springframework.transaction.support.TransactionCallbackWithoutResult
doInTransaction
-
Constructor Details
-
PageTemplateMigratorTask
public PageTemplateMigratorTask(ExceptionTolerantMigrator migrator, PageTemplateDao dao, PageTemplateManager pageTemplateManager, ExceptionReport report, Predicate<PageTemplate> migrationCandidateSelector)
-
-
Method Details
-
doInTransactionWithoutResult
protected void doInTransactionWithoutResult(org.springframework.transaction.TransactionStatus status) - Specified by:
doInTransactionWithoutResult
in classorg.springframework.transaction.support.TransactionCallbackWithoutResult
-