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 ImportContext
Deprecated.protected org.hibernate.SessionFactory
Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Deprecated.final ImportProcessorSummary
doImport()
Deprecated.Executes an import with this importer.protected abstract ImportProcessorSummary
Deprecated.Performs the actual import.protected com.atlassian.event.api.EventPublisher
Deprecated.protected void
Deprecated.Perform any special logic after the import and post-import tasks are complete.protected void
Deprecated.Perform any special logic prior to the import starting.protected final void
publishEvent
(Object event) Deprecated.Publish an event to the rest of the system.final void
setContext
(ImportContext context) Deprecated.final void
setEventPublisher
(com.atlassian.event.api.EventPublisher eventPublisher) Deprecated.final void
setPostImportTasks
(List<PostImportTask> postImportTasks) Deprecated.final void
setSessionFactory
(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.
-
BackupRestoreManager
instead