public interface PostImportTask
ImportFinishedEvent
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.
Modifier and Type | Method and Description |
---|---|
void |
execute(ImportContext context)
Perform any necessary clean-up to ensure the imported data is internally consistent.
|
void execute(ImportContext context) throws ImportExportException
context
- the context of the import which has just finishedImportExportException
- 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.Copyright © 2003–2020 Atlassian. All rights reserved.