Class Importer
java.lang.Object
com.atlassian.confluence.importexport.Importer
- Direct Known Subclasses:
 BackupImporter
Deprecated.
An importer is a single-use object for performing an import with a given 
ImportContext.
 
 Subclasses must implement the doImportInternal() method to perform the actual import,
 and may optionally override preImport() and postImportAndCleanUp() to do
 additional processing.
- See Also:
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ImportContextDeprecated.protected org.hibernate.SessionFactoryDeprecated. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidDeprecated.final ImportProcessorSummarydoImport()Deprecated.Executes an import with this importer.protected abstract ImportProcessorSummaryDeprecated.Performs the actual import.protected com.atlassian.event.api.EventPublisherDeprecated.protected voidDeprecated.Perform any special logic after the import and post-import tasks are complete.protected voidDeprecated.Perform any special logic prior to the import starting.protected final voidpublishEvent(Object event) Deprecated.Publish an event to the rest of the system.final voidsetContext(ImportContext context) Deprecated.final voidsetEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) Deprecated.final voidsetPostImportTasks(List<PostImportTask> postImportTasks) Deprecated.final voidsetSessionFactory(org.hibernate.SessionFactory sessionFactory) Deprecated. 
- 
Field Details
- 
context
Deprecated. - 
sessionFactory
protected org.hibernate.SessionFactory sessionFactoryDeprecated. 
 - 
 - 
Constructor Details
- 
Importer
public Importer()Deprecated. 
 - 
 - 
Method Details
- 
setContext
Deprecated. - 
setSessionFactory
public final void setSessionFactory(org.hibernate.SessionFactory sessionFactory) Deprecated. - 
setPostImportTasks
Deprecated. - 
setEventPublisher
public final void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) Deprecated. - 
doImport
Deprecated.Executes an import with this importer. Clients should not normally call this method directly, but instead use theImportExportManager.After the import is complete, runs the post-import tasks, published a
ImportFinishedEvent, and deletes the import working file.- Throws:
 ImportExportException- if there was a problem during the import or any of the post-import tasks failed.
 - 
completeProgessMeter
protected void completeProgessMeter()Deprecated. - 
preImport
Deprecated.Perform any special logic prior to the import starting. Default implementation does nothing.- Throws:
 ImportExportException- if the import should be aborted
 - 
postImportAndCleanUp
Deprecated.Perform any special logic after the import and post-import tasks are complete. This method will run even if the import fails. The default implementation does nothing.- Throws:
 ImportExportException- if the import process should be aborted
 - 
doImportInternal
Deprecated.Performs the actual import.- Throws:
 ImportExportException- if there was a problem executing the import- See Also:
 
 - 
publishEvent
Deprecated.Publish an event to the rest of the system.- Parameters:
 event- the event to publish
 - 
getEventPublisher
protected com.atlassian.event.api.EventPublisher getEventPublisher()Deprecated. 
 - 
 
BackupRestoreManagerinstead