|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.importexport.Importer com.atlassian.confluence.importexport.xmlimport.BackupImporter
public abstract class BackupImporter
Field Summary | |
---|---|
static java.lang.String |
CONFLUENCE_IMPORT_USE_LEGACY_IMPORTER
|
static BuildAndVersionNumber |
FULL_EXPORT_BACKWARDS_COMPATIBILITY
Backwards compatibility for full export. |
static int |
MINIMUM_BUILD_NUMBER
|
static BuildAndVersionNumber |
MINIMUM_FULL_IMPORT_BUILD_NUMBER
Backwards compatibility for full export. |
static BuildAndVersionNumber |
MINIMUM_SPACE_IMPORT_BUILD_NUMBER
If you change this, you will break OD <-> BTF imports. |
static java.lang.String |
MINIMUM_VERSION
|
static BuildAndVersionNumber |
SPACE_EXPORT_BACKWARDS_COMPATIBILITY
Backwards compatibility of a space export. |
Fields inherited from class com.atlassian.confluence.importexport.Importer |
---|
context, sessionFactory |
Constructor Summary | |
---|---|
BackupImporter()
|
Method Summary | |
---|---|
protected void |
completeProgessMeter()
|
void |
deleteAllDatabaseContent()
|
protected ImportProcessorSummary |
doImportInternal()
Performs the actual import. |
protected boolean |
doSpecialProcessing(net.sf.hibernate.Session session,
TransientHibernateHandle key)
|
java.lang.String |
getBuildNumberOfImport()
|
java.lang.String |
getCreatedByBuildNumberOfImport()
|
protected abstract java.util.Properties |
getDescriptorProperties()
|
java.lang.String |
getExportType()
|
protected UpgradeManager |
getUpgradeManager()
|
abstract java.io.InputStream |
getXmlEntitiesStream()
|
protected ImportProcessorSummary |
importEntities(boolean hasExtraToImport)
|
protected ImportProcessorSummary |
importEverything()
|
protected ImportProcessorSummary |
importEverything(boolean hasExtraToImport)
|
boolean |
isBackupAttachments()
|
static boolean |
isBackupSupportedVersion(java.lang.String buildNumberOfImport)
|
protected boolean |
isExportedDefaultUserGroupPermission(SpacePermission permission)
|
boolean |
isExportScopeAll()
|
boolean |
isIncrementalImport()
|
protected void |
postImportAndCleanUp()
Perform any special logic after the import and post-import tasks are complete. |
protected void |
preImport()
Perform any special logic prior to the import starting. |
void |
setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
|
void |
setCacheManager(com.atlassian.cache.CacheManager cacheManager)
|
void |
setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
|
void |
setIncrementalImport(java.lang.Boolean value)
Deprecated. since 3.5 this is not used anywhere |
void |
setIndexManager(ConfluenceIndexManager indexManager)
|
void |
setPluginStateStore(com.atlassian.plugin.manager.PluginPersistentStateStore pluginStateStore)
|
void |
setPostRestoreUpgradeTasks(java.util.List<UpgradeTask> postRestoreUpgradeTasks)
|
void |
setPreProcessors(java.util.List<ImportedObjectPreProcessor> preProcessors)
|
void |
setScheduler(org.quartz.Scheduler scheduler)
|
void |
setSchemaHelper(SchemaHelper schemaHelper)
|
void |
setSettingsManager(SettingsManager settingsManager)
|
void |
setSpaceManager(SpaceManager spaceManager)
|
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
|
void |
setUpgradeManager(UpgradeManager upgradeManager)
|
void |
setUserAccessor(UserAccessor userAccessor)
|
void |
setXmlImporter(XmlImporter xmlImporter)
|
protected void |
unIndexAll()
|
Methods inherited from class com.atlassian.confluence.importexport.Importer |
---|
doImport, getEventPublisher, publishEvent, setContext, setEventPublisher, setPostImportTasks, setSessionFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONFLUENCE_IMPORT_USE_LEGACY_IMPORTER
public static final int MINIMUM_BUILD_NUMBER
public static final java.lang.String MINIMUM_VERSION
public static final BuildAndVersionNumber MINIMUM_FULL_IMPORT_BUILD_NUMBER
public static final BuildAndVersionNumber MINIMUM_SPACE_IMPORT_BUILD_NUMBER
public static final BuildAndVersionNumber FULL_EXPORT_BACKWARDS_COMPATIBILITY
public static final BuildAndVersionNumber SPACE_EXPORT_BACKWARDS_COMPATIBILITY
Constructor Detail |
---|
public BackupImporter()
Method Detail |
---|
@Deprecated public void setIncrementalImport(java.lang.Boolean value)
protected void preImport() throws ImportExportException
Importer
preImport
in class Importer
ImportExportException
- if the import should be abortedpublic static boolean isBackupSupportedVersion(java.lang.String buildNumberOfImport)
protected ImportProcessorSummary doImportInternal() throws ImportExportException
Importer
doImportInternal
in class Importer
ImportExportException
- if there was a problem executing the importImportExportManager.performImport(ImportContext)
protected void postImportAndCleanUp() throws ImportExportException
Importer
postImportAndCleanUp
in class Importer
ImportExportException
- if the import process should be abortedprotected ImportProcessorSummary importEverything() throws ImportExportException
ImportExportException
protected ImportProcessorSummary importEverything(boolean hasExtraToImport) throws ImportExportException
ImportExportException
protected ImportProcessorSummary importEntities(boolean hasExtraToImport) throws ImportExportException
ImportExportException
protected void completeProgessMeter()
protected boolean doSpecialProcessing(net.sf.hibernate.Session session, TransientHibernateHandle key) throws ImportExportException, net.sf.hibernate.HibernateException
ImportExportException
net.sf.hibernate.HibernateException
protected boolean isExportedDefaultUserGroupPermission(SpacePermission permission)
public void deleteAllDatabaseContent() throws net.sf.hibernate.HibernateException, java.sql.SQLException, com.atlassian.config.ConfigurationException
net.sf.hibernate.HibernateException
java.sql.SQLException
com.atlassian.config.ConfigurationException
protected void unIndexAll()
protected abstract java.util.Properties getDescriptorProperties() throws ImportExportException
ImportExportException
public void setCacheManager(com.atlassian.cache.CacheManager cacheManager)
public void setUserAccessor(UserAccessor userAccessor)
public void setSchemaHelper(SchemaHelper schemaHelper)
public java.lang.String getExportType() throws ImportExportException
ImportExportException
public boolean isBackupAttachments() throws ImportExportException
ImportExportException
public java.lang.String getBuildNumberOfImport() throws ImportExportException
ImportExportException
public java.lang.String getCreatedByBuildNumberOfImport() throws ImportExportException
ImportExportException
public boolean isIncrementalImport() throws ImportExportException
ImportExportException
public boolean isExportScopeAll() throws ImportExportException
ImportExportException
public abstract java.io.InputStream getXmlEntitiesStream() throws ImportExportException
ImportExportException
public void setSpaceManager(SpaceManager spaceManager)
public void setIndexManager(ConfluenceIndexManager indexManager)
public void setScheduler(org.quartz.Scheduler scheduler)
public void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
public void setPostRestoreUpgradeTasks(java.util.List<UpgradeTask> postRestoreUpgradeTasks)
public void setUpgradeManager(UpgradeManager upgradeManager)
protected UpgradeManager getUpgradeManager()
public void setXmlImporter(XmlImporter xmlImporter)
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
public void setPreProcessors(java.util.List<ImportedObjectPreProcessor> preProcessors)
public void setPluginStateStore(com.atlassian.plugin.manager.PluginPersistentStateStore pluginStateStore)
public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
public void setSettingsManager(SettingsManager settingsManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |