Class PostImportTaskRunner
java.lang.Object
com.atlassian.confluence.impl.backuprestore.restore.taskrunners.PostImportTaskRunner
Runs all post-import tasks. It executes the same tasks as configured in
BackupImporter
except ancestor rebuilder task because in the new XML restore, ancestors are created during the restore process automatically.- Since:
- 8.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionPostImportTaskRunner
(SpacePermissionManager spacePermissionManager, com.atlassian.event.api.EventPublisher eventPublisher, ReIndexJobPersister reIndexJobPersister, TrashManagerInternal trashManagerInternal, PostSiteImportUpgrader postSiteImportUpgrader, SpaceDaoInternal spaceDaoInternal, LabelUniqueIndexHelper labelUniqueIndexHelper, BandanaToPluginSettingsUpgradeTask bandanaMigrationTask) -
Method Summary
Modifier and TypeMethodDescriptionvoid
evictSpacesFromCache
(Collection<String> spaceKeys) void
migrateBandanaDataToPluginSettings
(Collection<String> spaceKeys) Space-specific variant ofBandanaToPluginSettingsUpgradeTask
asBackupSupport.runOnSpaceImport()
mechanism is not yet implemented.void
runCacheFlushingPostImportTask
(String workingFile) The code was copied fromCacheFlushingPostImportTask
void
The code was copied fromClearReIndexJobPostImportTask
void
runLabelCleanUpAndCreateIndexPostImportTask
(BackupProperties backupProperties) Always run this task post site restore to clean up duplicate records, and create virtual column based on OWNER column for LABEL table and add a unique index for it.void
The code was copied fromTrashDatePostImportTask
This is the part of the method, containing logic related to SITE restore only.void
runTrashDatePostImportTaskForSpaces
(Collection<String> spaceKeys) The code was copied fromTrashDatePostImportTask
This is the part of the method, containing logic related to SPACE restore only.void
runUpgradeTasks
(BackupProperties backupProperties) Runs upgrade tasks.
-
Constructor Details
-
PostImportTaskRunner
public PostImportTaskRunner(SpacePermissionManager spacePermissionManager, com.atlassian.event.api.EventPublisher eventPublisher, ReIndexJobPersister reIndexJobPersister, TrashManagerInternal trashManagerInternal, PostSiteImportUpgrader postSiteImportUpgrader, SpaceDaoInternal spaceDaoInternal, LabelUniqueIndexHelper labelUniqueIndexHelper, BandanaToPluginSettingsUpgradeTask bandanaMigrationTask)
-
-
Method Details
-
runUpgradeTasks
Runs upgrade tasks. This should only run on site restore- Throws:
BackupRestoreException
-
runCacheFlushingPostImportTask
The code was copied fromCacheFlushingPostImportTask
- Parameters:
workingFile
- imported file path
-
runClearReIndexJobPostImportTask
public void runClearReIndexJobPostImportTask()The code was copied fromClearReIndexJobPostImportTask
-
evictSpacesFromCache
-
runTrashDatePostImportTaskForSpaces
The code was copied fromTrashDatePostImportTask
This 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 fromTrashDatePostImportTask
This is the part of the method, containing logic related to SITE restore only. -
runLabelCleanUpAndCreateIndexPostImportTask
Always run this task post site restore to clean up duplicate records, and create virtual column based on OWNER column for LABEL table and add a unique index for it. -
migrateBandanaDataToPluginSettings
public void migrateBandanaDataToPluginSettings(Collection<String> spaceKeys) throws BackupRestoreException Space-specific variant ofBandanaToPluginSettingsUpgradeTask
asBackupSupport.runOnSpaceImport()
mechanism is not yet implemented.- Throws:
BackupRestoreException
-