Uses of Class
com.atlassian.confluence.backuprestore.exception.BackupRestoreException
-
-
Uses of BackupRestoreException in com.atlassian.confluence.backuprestore.exception
Subclasses of BackupRestoreException in com.atlassian.confluence.backuprestore.exception Modifier and Type Class Description class
NotPermittedException
It is thrown when a user does not have permissions to perform an action.class
TheSameSpaceBackupRestoreJobAlreadyInProgressException
It is thrown when another space backup/restore operation is in progress or in the queue. -
Uses of BackupRestoreException in com.atlassian.confluence.impl.backuprestore
Methods in com.atlassian.confluence.impl.backuprestore that throw BackupRestoreException Modifier and Type Method Description void
BackupRestoreConsumer. accept(T t)
String
BackupRestoreFilesystemManager. moveExistingLocalFileToRestoreDir(File fileToMove, JobScope jobScope)
Moves the provided file to the restore directory -
Uses of BackupRestoreException in com.atlassian.confluence.impl.backuprestore.backup
Methods in com.atlassian.confluence.impl.backuprestore.backup that throw BackupRestoreException Modifier and Type Method Description protected abstract JobStatisticsInfo
AbstractBackupService. backupAllEntitiesAndAttachments(BackupRestoreJob job, BackupRestoreSettings settings, ParallelTasksExecutor parallelTasksExecutor, BackupContainerWriter containerWriter)
protected JobStatisticsInfo
SpaceBackupService. backupAllEntitiesAndAttachments(BackupRestoreJob job, BackupRestoreSettings settings, ParallelTasksExecutor parallelTasksExecutor, BackupContainerWriter containerWriter)
Backups all entities (including plugin data) and attachments.abstract void
AbstractBackupService. doBackupSynchronously(BackupRestoreJob job, BackupRestoreSettings settings)
Run the backup process synchronously.void
SiteBackupService. doBackupSynchronously(BackupRestoreJob job, BackupRestoreSettings settings)
Run the backup process synchronously.void
SpaceBackupService. doBackupSynchronously(BackupRestoreJob job, BackupRestoreSettings settings)
Run the backup process synchronously.protected File
AbstractBackupService. performBackup(BackupRestoreJob job, BackupRestoreSettings settings, ParallelTasksExecutor parallelTasksExecutor, BackupContainerWriter containerWriter)
ExportDescriptor
BackupDescriptorWriter. writeBackupDescriptor(BackupContainerWriter backupContainerWriter, ExportScope exportScope, boolean backupAttachments, Collection<String> spaceKeys, Long objectsCount)
BackupDescriptorWriter was created as an equivalent of the existing legacy code from com.atlassian.confluence.importexport.impl.AbstractXmlExporter (will disapper in Confluence 8.0). -
Uses of BackupRestoreException in com.atlassian.confluence.impl.backuprestore.backup.container
Methods in com.atlassian.confluence.impl.backuprestore.backup.container that throw BackupRestoreException Modifier and Type Method Description void
BackupContainerWriter. addDescriptionProperty(String name, String value)
void
XmlBackupContainerWriter. addDescriptionProperty(String name, String value)
void
BackupContainerWriter. addPluginModuleData(List<? extends com.atlassian.plugin.ModuleDescriptor<BackupRestoreProvider>> moduleDescriptor)
void
XmlBackupContainerWriter. addPluginModuleData(List<? extends com.atlassian.plugin.ModuleDescriptor<BackupRestoreProvider>> moduleDescriptors)
Create the data file for a specific plugin module into the backup zip file using the module Descriptorsvoid
ArchiveWriter. close()
Locking method that waits for all data to be archived and closes necessary resources.void
BackupContainerWriter. close()
void
StreamZipWriter. close()
void
XmlBackupContainerWriter. close()
BackupContainerWriter
BackupContainerWriterFactory. createBackupContainerWriter(String fileName)
BackupContainerWriter
BackupContainerWriterFactoryImpl. createBackupContainerWriter(String exportContainerFileName)
void
BackupContainerWriter. writeObjects(Collection<EntityObjectReadyForExport> objects)
void
XmlBackupContainerWriter. writeObjects(Collection<EntityObjectReadyForExport> objects)
void
PluginDataWriter. writePluginData(List<? extends com.atlassian.plugin.ModuleDescriptor<BackupRestoreProvider>> moduleDescriptors)
Constructors in com.atlassian.confluence.impl.backuprestore.backup.container that throw BackupRestoreException Constructor Description XmlBackupContainerWriter(File outputFile, ArchiveWriter archiveWriter, AttachmentDataFileSystem attachmentDataFileSystem, PluginDataWriter pluginWriter, AttachmentDaoInternal attachmentDaoInternal)
XmlBackupContainerWriter(File outputFile, ArchiveWriter archiveWriter, AttachmentDataFileSystem attachmentDataFileSystem, PluginDataWriter pluginWriter, AttachmentDaoInternal attachmentDaoInternal, Instant currentTime)
-
Uses of BackupRestoreException in com.atlassian.confluence.impl.backuprestore.backup.exception
Subclasses of BackupRestoreException in com.atlassian.confluence.impl.backuprestore.backup.exception Modifier and Type Class Description class
DataConversionException
Exception class for all exceptions related to data conversions in backup/restore process. -
Uses of BackupRestoreException in com.atlassian.confluence.impl.backuprestore.backup.exporters
Methods in com.atlassian.confluence.impl.backuprestore.backup.exporters that throw BackupRestoreException Modifier and Type Method Description void
PostExportAction. apply(List<EntityObjectReadyForExport> entities)
Performs action on a collection of Entities after they have been exportedvoid
SpaceDatabaseDataExporter. export(Collection<String> spaceKeys)
It accepts the space key, finds the space, send space data to writer and notify other persisters about the space.void
DatabaseExporterHelper. notifyExportersAboutPersistedObjects(Collection<EntityObjectReadyForExport> exportedObjects)
void
BandanaDataExporter. onMonitoredObjectsExport(Class<?> exportedClass, Collection<Object> idList)
void
BodyContentDataExporter. onMonitoredObjectsExport(Class<?> exportedClass, Collection<Object> idList)
void
BucketsExporter. onMonitoredObjectsExport(Class<?> exportedClass, Collection<Object> idList)
void
Content2ContentRelationEntityDataExporter. onMonitoredObjectsExport(Class<?> exportedClass, Collection<Object> idList)
void
ContentPropertyDataExporter. onMonitoredObjectsExport(Class<?> exportedClass, Collection<Object> idList)
void
LabellingExporter. onMonitoredObjectsExport(Class<?> exportedClass, Collection<Object> idList)
void
NotificationDatabaseDataExporter. onMonitoredObjectsExport(Class<?> exportedClass, Collection<Object> idList)
void
PageTemplateExporter. onMonitoredObjectsExport(Class<?> exportedClass, Collection<Object> idList)
void
SingleDependencyGenericExporter. onMonitoredObjectsExport(Class<?> exportedClass, Collection<Object> idList)
void
Subscriber. onMonitoredObjectsExport(Class<?> exportedClass, Collection<Object> idList)
It is called when the collection of objects was exported.void
ContentEntityDatabaseDataExporter. persistObjects(Collection<Object> objectIds)
void
Persister. persistObjects(Collection<Object> objectIds)
Retrieve a list of EntityObjectReadyForExport from object IDs and persist retrieved records for backup file NOTED: in order to deal with multiple underlining datatype from different DBs we will need to useAbstractDatabaseDataConverter.convertToLong(Object)
to convert ID from Object to Longvoid
SimpleEntityExporter. persistObjects(Collection<Object> objectIds)
void
DatabaseExporterHelper. writeAllReferencedSimpleObjects(Collection<EntityObjectReadyForExport> entities)
Objects would have references to users, labels etc.void
DatabaseExporterHelper. writeObjects(Collection<EntityObjectReadyForExport> entities)
void
DatabaseExporterHelper. writeObjectsAndNotifyOtherExporters(Collection<EntityObjectReadyForExport> entities)
-
Uses of BackupRestoreException in com.atlassian.confluence.impl.backuprestore.backup.exporters.site
Methods in com.atlassian.confluence.impl.backuprestore.backup.exporters.site that throw BackupRestoreException Modifier and Type Method Description void
ContentEntityPostExportAction. apply(List<EntityObjectReadyForExport> entities)
void
GenericSiteExporter. exportAllRecords()
void
WholeTableExporter. exportAllRecords()
Synchronously exports all the records from the table. -
Uses of BackupRestoreException in com.atlassian.confluence.impl.backuprestore.restore
Methods in com.atlassian.confluence.impl.backuprestore.restore that throw BackupRestoreException Modifier and Type Method Description ImportedObjectsDispatcher
ImportedObjectsDispatcherFactory. createImportedObjectsDispatcher(BackupRestoreJob job, JobSource jobSource, Optional<Set<String>> allowedLowerSpaceKeys, String filePath, ParallelTasksExecutor parallelTasksExecutor, HibernateMetadataHelper hibernateMetadataHelper, OnObjectsProcessingHandler onObjectsProcessingHandler, Boolean backupAttachments)
void
RestoreService. doRestore(BackupRestoreJob job, BackupRestoreSettings settings, int threadsNumber)
void
SiteRestoreService. doRestoreSynchronously(BackupRestoreJob job, BackupRestoreSettings settings)
Run the restore process synchronously.void
SpaceRestoreService. doRestoreSynchronously(BackupRestoreJob job, BackupRestoreSettings settings)
Run the restore process synchronously.void
EntityPersister. persist(ImportedObjectV2 importedObject)
Persists the object.long
EntityPersister. persistNextChunkOfData()
Request the persister to persist the next chunk of data.boolean
ImportedObjectsDispatcher. processIncomingImportedObject(ImportedObjectV2 importedObject)
boolean
ImportedObjectsDispatcher. processNextStashPhase()
Processes the next phase.void
ImportedObjectsDispatcher. runDeferredOperations()
void
HiLoGeneratorInitialiserOnSiteRestore. updateHiLoIdGenerator()
BackupProperties
BackupPropertiesValidator. validatePropertiesAgainstBackupJob(BackupRestoreJob job, BackupProperties backupProperties)
-
Uses of BackupRestoreException in com.atlassian.confluence.impl.backuprestore.restore.container
Methods in com.atlassian.confluence.impl.backuprestore.restore.container that throw BackupRestoreException Modifier and Type Method Description void
BackupContainerReader. close()
void
XMLBackupContainerReader. close()
BackupContainerReader
BackupContainerReaderFactory. createBackupContainerReader(File file)
BackupContainerReader
BackupContainerReaderFactoryImpl. createBackupContainerReader(File file)
BackupProperties
BackupContainerReader. getBackupProperties()
BackupProperties
XMLBackupContainerReader. getBackupProperties()
JobScope
BackupProperties. getJobScope()
JobSource
BackupProperties. getJobSource()
Get the source of the export that we want to importProperties
BackupContainerReader. getLegacyBackupProperties()
Deprecated.since 8.2.0Properties
XMLBackupContainerReader. getLegacyBackupProperties()
Deprecated.void
BackupContainerReader. readObjects(BackupRestoreConsumer<ImportedObjectV2> objectConsumer)
void
XMLBackupContainerReader. readObjects(BackupRestoreConsumer<ImportedObjectV2> objectConsumer)
void
PluginDataReader. readPluginData(BackupProperties backupProperties)
void
BackupContainerReader. readPluginModuleData()
void
XMLBackupContainerReader. readPluginModuleData()
-
Uses of BackupRestoreException in com.atlassian.confluence.impl.backuprestore.restore.events
Methods in com.atlassian.confluence.impl.backuprestore.restore.events that throw BackupRestoreException Modifier and Type Method Description void
OnRestoreEventsSender. sendFinishEvents(BackupRestoreJob job, BackupRestoreSettings settings, Collection<String> spaceKeys, Properties properties)
void
OnRestoreEventsSender. sendStartEvents(BackupRestoreJob job, BackupRestoreSettings settings, Collection<String> spaceKeys, Properties properties)
-
Uses of BackupRestoreException in com.atlassian.confluence.impl.backuprestore.restore.idmapping
Methods in com.atlassian.confluence.impl.backuprestore.restore.idmapping that throw BackupRestoreException Modifier and Type Method Description IdMapper
IdMapperFactory. createIdMapper(BackupRestoreJob job, JobSource jobSource, Collection<ExportableEntityInfo> importableEntitiesInfo, OnObjectsProcessingHandler onObjectsProcessingHandler)
Constructors in com.atlassian.confluence.impl.backuprestore.restore.idmapping that throw BackupRestoreException Constructor Description FakeObjectProvider(Collection<ExportableEntityInfo> importableEntitiesInfo)
-
Uses of BackupRestoreException in com.atlassian.confluence.impl.backuprestore.restore.persisters
Methods in com.atlassian.confluence.impl.backuprestore.restore.persisters that throw BackupRestoreException Modifier and Type Method Description void
ApplicationPersister. persist(ImportedObjectV2 importedObject)
void
AttachmentsPersister. persist(Map<ExportableEntityInfo,Collection<ImportedObjectV2>> objectsToPersistGroupedByClass)
Persists attachment files in the attachments' storage (e.g.void
BodyContentPersister. persist(ImportedObjectV2 importedObject)
void
ContentPersister. persist(ImportedObjectV2 importedObject)
void
ContentPropertiesPersister. persist(ImportedObjectV2 importedObject)
void
DatabasePersister. persist(Map<ExportableEntityInfo,Collection<ImportedObjectV2>> objectsToPersistGroupedByClass)
void
DirectoryMappingPersister. persist(ImportedObjectV2 importedObject)
void
DirectoryPersister. persist(ImportedObjectV2 importedObject)
void
GenericPersister. persist(ImportedObjectV2 importedObject)
void
InternalUserCredentialRecordPersister. persist(ImportedObjectV2 importedObject)
void
PageTemplatePersister. persist(ImportedObjectV2 importedObject)
void
Persister. persist(Map<ExportableEntityInfo,Collection<ImportedObjectV2>> objectsWithDatabaseIdsByClass)
Persists some or all given objects.void
SpacePersister. persist(ImportedObjectV2 importedObject)
long
ApplicationPersister. persistNextChunkOfData()
long
BodyContentPersister. persistNextChunkOfData()
long
ContentPersister. persistNextChunkOfData()
We know that the content table is processed separately, so we can process everything is one iteration.long
ContentPropertiesPersister. persistNextChunkOfData()
long
DirectoryMappingPersister. persistNextChunkOfData()
long
DirectoryPersister. persistNextChunkOfData()
long
GenericPersister. persistNextChunkOfData()
long
InternalUserCredentialRecordPersister. persistNextChunkOfData()
long
PageTemplatePersister. persistNextChunkOfData()
long
SpacePersister. persistNextChunkOfData()
Collection<ImportedObjectV2>
AttributeRecordsGenerator. prepareAttributeRecords(ImportedObjectV2 importedObjectV2)
Collection<ImportedObjectV2>
OperationRecordsGenerator. prepareOperationRecords(ImportedObjectV2 importedObjectV2)
int
ObjectQueueProcessor. processChunkOfStash(ImportedObjectsStash stash, IdMapper idMapper)
Processes a small piece of data from the stash async.void
ListIndexColumnValueCalculator. trackRecordsOrderInList(ImportedObjectV2 importedObjectV2)
void
ObjectPersister. waitUntilAllJobsFinish(Collection<Future<?>> futures)
Constructors in com.atlassian.confluence.impl.backuprestore.restore.persisters that throw BackupRestoreException Constructor Description PersistersCreator(EntityPersistersFactory entityPersistersFactory, Collection<ExportableEntityInfo> exportableEntityInfos, Map<Class<?>,ExportableEntityInfo> additionalExportableEntities, JobScope jobScope, Optional<Set<String>> allowedLowerSpaceKeys)
-
Uses of BackupRestoreException in com.atlassian.confluence.impl.backuprestore.restore.searchindexer
Methods in com.atlassian.confluence.impl.backuprestore.restore.searchindexer that throw BackupRestoreException Modifier and Type Method Description void
OnRestoreSearchIndexer. flush()
It is called when all searchable objects are persisted so the indexer can finish its job.void
OnRestoreSiteSearchIndexer. flush()
void
OnRestoreSpaceSearchIndexer. flush()
void
OnRestoreSearchIndexer. onObjectsPersisting(Collection<ImportedObjectV2> importedObjects)
A consumer accepting persisted objects.void
OnRestoreSpaceSearchIndexer. onObjectsPersisting(Collection<ImportedObjectV2> importedObjects)
-
Uses of BackupRestoreException in com.atlassian.confluence.impl.backuprestore.restore.stash
Methods in com.atlassian.confluence.impl.backuprestore.restore.stash that throw BackupRestoreException Modifier and Type Method Description void
ImportedObjectsStash. add(ImportedObjectV2 object)
Add object to stash.void
ImportedObjectsStashImpl. add(ImportedObjectV2 object)
Different threads can add objects to the stash in parallel.void
StashObjectsWriter. close()
Closes the stash.void
StashObjectsWriterImpl. close()
List<ImportedObjectV2>
ImportedObjectsStash. readObjects(int numberOfObjects)
Read a collection of objects from the stash.List<ImportedObjectV2>
ImportedObjectsStashImpl. readObjects(int numberOfObjects)
List<ImportedObjectV2>
StashObjectsReader. readObjects(int numberOfObjects)
Reads objects from stash.List<ImportedObjectV2>
StashObjectsReaderImpl. readObjects(int numberOfObjects)
void
StashObjectsWriter. writeObject(ImportedObjectV2 object)
Writes an object to the stash.void
StashObjectsWriterImpl. writeObject(ImportedObjectV2 object)
-
Uses of BackupRestoreException in com.atlassian.confluence.impl.backuprestore.restore.taskrunners
Methods in com.atlassian.confluence.impl.backuprestore.restore.taskrunners that throw BackupRestoreException Modifier and Type Method Description void
PreImportTaskRunner. pauseSchedulerAndFlushJobs()
Pause cluster schedulervoid
PostImportTaskRunner. runKeyInitPostImportTask()
Initialise system key pairs.void
ImportTaskRunner. runPostImportTasks(BackupRestoreJob job, BackupRestoreSettings settings, BackupProperties backupProperties)
Run tasks which should be executed after we finish processing entitiesvoid
SiteImportTaskRunner. runPostImportTasks(BackupRestoreJob job, BackupRestoreSettings settings, BackupProperties backupProperties)
void
ImportTaskRunner. runPreImportTasks()
Run tasks which should be executed before we start processing entitiesvoid
SiteImportTaskRunner. runPreImportTasks()
void
PostImportTaskRunner. runUpgradeTasks(BackupProperties backupProperties)
Runs upgrade tasks.void
PostSiteImportUpgrader. runUpgradeTasks(BackupProperties backupProperties)
-
Uses of BackupRestoreException in com.atlassian.confluence.impl.backuprestore.statistics
Methods in com.atlassian.confluence.impl.backuprestore.statistics that throw BackupRestoreException Modifier and Type Method Description void
OnObjectsProcessingHandler. onObjectsPersist(Collection<ImportedObjectV2> persistedObjects)
Is called when objects have been successfully persisted to the database.
-