Class Importer
java.lang.Object
com.atlassian.confluence.impl.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 SummaryFieldsModifier and TypeFieldDescriptionprotected ImportContextDeprecated.protected org.hibernate.SessionFactoryDeprecated.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
contextDeprecated.
- 
sessionFactoryprotected org.hibernate.SessionFactory sessionFactoryDeprecated.
 
- 
- 
Constructor Details- 
Importerpublic Importer()Deprecated.
 
- 
- 
Method Details- 
setContextDeprecated.
- 
setSessionFactorypublic final void setSessionFactory(org.hibernate.SessionFactory sessionFactory) Deprecated.
- 
setPostImportTasksDeprecated.
- 
setEventPublisherpublic final void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) Deprecated.
- 
doImportDeprecated.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.
 
- 
completeProgessMeterprotected void completeProgessMeter()Deprecated.
- 
preImportDeprecated.Perform any special logic prior to the import starting. Default implementation does nothing.- Throws:
- ImportExportException- if the import should be aborted
 
- 
postImportAndCleanUpDeprecated.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
 
- 
doImportInternalDeprecated.Performs the actual import.- Throws:
- ImportExportException- if there was a problem executing the import
- See Also:
 
- 
publishEventDeprecated.Publish an event to the rest of the system.- Parameters:
- event- the event to publish
 
- 
getEventPublisherprotected com.atlassian.event.api.EventPublisher getEventPublisher()Deprecated.
 
- 
BackupRestoreManagerinstead