BackupRestoreManager instead@Deprecated public abstract class Importer extends Object
ImportContext.
Subclasses must implement the doImportInternal() method to perform the actual import,
and may optionally override preImport() and postImportAndCleanUp() to do
additional processing.
ImportExportManager| Modifier and Type | Field and Description |
|---|---|
protected ImportContext |
context
Deprecated.
|
protected net.sf.hibernate.SessionFactory |
sessionFactory
Deprecated.
|
| Constructor and Description |
|---|
Importer()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
completeProgessMeter()
Deprecated.
|
ImportProcessorSummary |
doImport()
Deprecated.
Executes an import with this importer.
|
protected abstract ImportProcessorSummary |
doImportInternal()
Deprecated.
Performs the actual import.
|
protected com.atlassian.event.api.EventPublisher |
getEventPublisher()
Deprecated.
|
protected void |
postImportAndCleanUp()
Deprecated.
Perform any special logic after the import and post-import tasks are complete.
|
protected void |
preImport()
Deprecated.
Perform any special logic prior to the import starting.
|
protected void |
publishEvent(Object event)
Deprecated.
Publish an event to the rest of the system.
|
void |
setContext(ImportContext context)
Deprecated.
|
void |
setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
Deprecated.
|
void |
setPostImportTasks(List<PostImportTask> postImportTasks)
Deprecated.
|
void |
setSessionFactory(net.sf.hibernate.SessionFactory sessionFactory)
Deprecated.
|
protected ImportContext context
protected net.sf.hibernate.SessionFactory sessionFactory
public final void setContext(ImportContext context)
public final void setSessionFactory(net.sf.hibernate.SessionFactory sessionFactory)
public final void setPostImportTasks(List<PostImportTask> postImportTasks)
public final void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
public final ImportProcessorSummary doImport() throws ImportExportException
ImportExportManager.
After the import is complete, runs the post-import tasks, published a ImportFinishedEvent,
and deletes the import working file.
ImportExportException - if there was a problem during the import or any of
the post-import tasks failed.protected void completeProgessMeter()
protected void preImport()
throws ImportExportException
ImportExportException - if the import should be abortedprotected void postImportAndCleanUp()
throws ImportExportException
ImportExportException - if the import process should be abortedprotected abstract ImportProcessorSummary doImportInternal() throws ImportExportException
ImportExportException - if there was a problem executing the importImportExportManager.performImport(ImportContext)protected final void publishEvent(Object event)
event - the event to publishprotected com.atlassian.event.api.EventPublisher getEventPublisher()
Copyright © 2003–2022 Atlassian. All rights reserved.