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 inBackupImporter
except 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, KeyPairInitialiser keyPairInitialiser, PostSiteImportUpgrader postSiteImportUpgrader, SpaceDaoInternal spaceDaoInternal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
evictSpacesFromCache(Collection<String> spaceKeys)
void
runCacheFlushingPostImportTask(String workingFile)
The code was copied fromCacheFlushingPostImportTask
void
runClearReIndexJobPostImportTask()
The code was copied fromClearReIndexJobPostImportTask
void
runKeyInitPostImportTask()
Initialise system key pairs.void
runTrashDatePostImportTaskForSite()
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 Detail
-
PostImportTaskRunner
public PostImportTaskRunner(SpacePermissionManager spacePermissionManager, com.atlassian.event.api.EventPublisher eventPublisher, ReIndexJobPersister reIndexJobPersister, TrashManagerInternal trashManagerInternal, KeyPairInitialiser keyPairInitialiser, PostSiteImportUpgrader postSiteImportUpgrader, SpaceDaoInternal spaceDaoInternal)
-
-
Method Detail
-
runUpgradeTasks
public void runUpgradeTasks(BackupProperties backupProperties) throws BackupRestoreException
Runs upgrade tasks. This should only run on site restore- Throws:
BackupRestoreException
-
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
-
evictSpacesFromCache
public void evictSpacesFromCache(Collection<String> spaceKeys)
-
runTrashDatePostImportTaskForSpaces
public void runTrashDatePostImportTaskForSpaces(Collection<String> spaceKeys)
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.
-
runKeyInitPostImportTask
public void runKeyInitPostImportTask() throws BackupRestoreException
Initialise system key pairs. The code was copied fromKeyInitPostImportTask
- Throws:
BackupRestoreException
-
-