Interface PostImportTask
-
- All Known Implementing Classes:
CacheFlushingPostImportTask
,ClearReIndexJobPostImportTask
,KeyInitPostImportTask
,RebuildAncestorsPostImportTask
,TrashDatePostImportTask
@Deprecated public interface PostImportTask
Deprecated.since 7.17.0. Will be moved to 'impl' package in the future.A task which will be executed after an import is complete to ensure the data integrity of the system. TheImportFinishedEvent
is published after all these tasks have finished executing.Most implementations should log an error and return normally in the event of failure. Throwing an exception from the
execute(ImportContext)
method will abort the import and leave the system in an inconsistent state.- Since:
- 3.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
execute(ImportContext context)
Deprecated.Perform any necessary clean-up to ensure the imported data is internally consistent.
-
-
-
Method Detail
-
execute
void execute(ImportContext context) throws ImportExportException
Deprecated.Perform any necessary clean-up to ensure the imported data is internally consistent.- Parameters:
context
- the context of the import which has just finished- Throws:
ImportExportException
- if there was a problem with this task that should mean aborting the import entirely. Most implementations should not throw any exceptions, but rather log an error and allow the import to continue.
-
-