Class SpaceDatabaseDataExporter
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.backup.exporters.SpaceDatabaseDataExporter
-
-
Constructor Summary
Constructors Constructor Description SpaceDatabaseDataExporter(AbstractDatabaseDataConverter converter, DatabaseExporterHelper helper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
export(long spaceId)
It accepts the space id, finds the space, send space data to writer and notify other persisters about the space.ExportableEntityInfo
getEntityInfo()
Returns default entity info for persister.ExportableEntityInfo
getEntityInfo(Class<?> exportedClass)
Returns default entity info for the particular class.Collection<Class<?>>
getWatchingEntityClasses()
void
onMonitoredObjectsExport(Class<?> exportedClass, Collection<Object> idList)
It is called when the collection of objects was exported.
-
-
-
Constructor Detail
-
SpaceDatabaseDataExporter
public SpaceDatabaseDataExporter(AbstractDatabaseDataConverter converter, DatabaseExporterHelper helper)
-
-
Method Detail
-
onMonitoredObjectsExport
public void onMonitoredObjectsExport(Class<?> exportedClass, Collection<Object> idList)
Description copied from interface:Exporter
It is called when the collection of objects was exported. This is called only for objects that this class is watching. SeegetWatchingEntityClasses()
- Specified by:
onMonitoredObjectsExport
in interfaceExporter
- Parameters:
exportedClass
- the exported classidList
- the list of ids of exported objects
-
getWatchingEntityClasses
public Collection<Class<?>> getWatchingEntityClasses()
- Specified by:
getWatchingEntityClasses
in interfaceExporter
-
getEntityInfo
public ExportableEntityInfo getEntityInfo()
Description copied from interface:Exporter
Returns default entity info for persister. Will fail if the persister has to work with multiple hibernate entitites.- Specified by:
getEntityInfo
in interfaceExporter
-
getEntityInfo
public ExportableEntityInfo getEntityInfo(Class<?> exportedClass)
Description copied from interface:Exporter
Returns default entity info for the particular class.- Specified by:
getEntityInfo
in interfaceExporter
-
export
public String export(long spaceId) throws BackupRestoreException
It accepts the space id, finds the space, send space data to writer and notify other persisters about the space. Other persisters (content, space permissions, notification etc) will handle this event and export their corresponding data.- Parameters:
spaceId
- space id- Returns:
- spaceKey
- Throws:
BackupRestoreException
-
-