Class PostImportTaskRunner


  • public class PostImportTaskRunner
    extends Object
    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
    • 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 from CacheFlushingPostImportTask
        Parameters:
        workingFile - imported file path
      • runTrashDatePostImportTaskForSpaces

        public void runTrashDatePostImportTaskForSpaces​(Collection<String> spaceKeys)
        The code was copied from TrashDatePostImportTask 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 from TrashDatePostImportTask This is the part of the method, containing logic related to SITE restore only.