Class PostImportTaskRunner
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.restore.taskrunners.PostImportTaskRunner
-
public class PostImportTaskRunner extends Object
Runs all post-import tasks. It executes the same tasks as configured inBackupImporterexcept ancestor rebuilder task because in the new XML restore, ancestors are created during the restore process automatically.- Since:
- 8.2.0
-
-
Constructor Summary
Constructors Constructor Description PostImportTaskRunner(SpacePermissionManager spacePermissionManager, com.atlassian.event.api.EventPublisher eventPublisher, ReIndexJobPersister reIndexJobPersister, TrashManagerInternal trashManagerInternal, HibernateHiLoIdFixer hibernateHiLoIdFixer, ConfluenceSchemaCreator confluenceSchemaCreator, org.springframework.transaction.PlatformTransactionManager transactionManager, KeyPairInitialiser keyPairInitialiser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrunCacheFlushingPostImportTask(String workingFile)The code was copied fromCacheFlushingPostImportTaskvoidrunClearReIndexJobPostImportTask()The code was copied fromClearReIndexJobPostImportTaskvoidrunDatabaseConstraintsTask()Creates constraints that SchemaExport cannot automatically generate from hibernate mapping filesvoidrunKeyInitPostImportTask()Initialise system key pairs.voidrunResetIdentifierGeneratorsTask()Reset Hibernate incremental ID generators, so we don't get ID collisions after a restore.voidrunTrashDatePostImportTaskForSite()The code was copied fromTrashDatePostImportTaskThis is the part of the method, containing logic related to SITE restore only.voidrunTrashDatePostImportTaskForSpaces(Collection<String> spaceKeys)The code was copied fromTrashDatePostImportTaskThis is the part of the method, containing logic related to SPACE restore only.voidrunUpgradeTasks()Runs upgrade tasks
-
-
-
Constructor Detail
-
PostImportTaskRunner
public PostImportTaskRunner(SpacePermissionManager spacePermissionManager, com.atlassian.event.api.EventPublisher eventPublisher, ReIndexJobPersister reIndexJobPersister, TrashManagerInternal trashManagerInternal, HibernateHiLoIdFixer hibernateHiLoIdFixer, ConfluenceSchemaCreator confluenceSchemaCreator, org.springframework.transaction.PlatformTransactionManager transactionManager, KeyPairInitialiser keyPairInitialiser)
-
-
Method Detail
-
runResetIdentifierGeneratorsTask
public void runResetIdentifierGeneratorsTask()
Reset Hibernate incremental ID generators, so we don't get ID collisions after a restore.- Throws:
BackupRestoreException- if some hibernate error prevents us doing the reset
-
runUpgradeTasks
public void runUpgradeTasks()
Runs upgrade tasks
-
runDatabaseConstraintsTask
public void runDatabaseConstraintsTask()
Creates constraints that SchemaExport cannot automatically generate from hibernate mapping files
-
runCacheFlushingPostImportTask
public void runCacheFlushingPostImportTask(String workingFile)
The code was copied fromCacheFlushingPostImportTask- Parameters:
workingFile- imported file path
-
runClearReIndexJobPostImportTask
public void runClearReIndexJobPostImportTask()
The code was copied fromClearReIndexJobPostImportTask
-
runTrashDatePostImportTaskForSpaces
public void runTrashDatePostImportTaskForSpaces(Collection<String> spaceKeys)
The code was copied fromTrashDatePostImportTaskThis is the part of the method, containing logic related to SPACE restore only.- Parameters:
spaceKeys- space keys for space restore
-
runTrashDatePostImportTaskForSite
public void runTrashDatePostImportTaskForSite()
The code was copied fromTrashDatePostImportTaskThis is the part of the method, containing logic related to SITE restore only.
-
runKeyInitPostImportTask
public void runKeyInitPostImportTask() throws BackupRestoreExceptionInitialise system key pairs. The code was copied fromKeyInitPostImportTask- Throws:
BackupRestoreException
-
-