Class LabellingExporter
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.backup.exporters.LabellingExporter
-
- All Implemented Interfaces:
Exporter
,Subscriber
public class LabellingExporter extends Object implements Exporter, Subscriber
-
-
Constructor Summary
Constructors Constructor Description LabellingExporter(ExportableEntityInfo entityInfo, CommonDatabaseDataExporter exporter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExportableEntityInfo
getEntityInfo()
Returns default entity info for persister.ExportableEntityInfo
getEntityInfo(Class<?> exportedClass)
Returns default entity info for the particular class.Collection<Class<?>>
getWatchingEntityClasses()
Return a collection of entity classes that subscriber will monitor the object export events.void
onMonitoredObjectsExport(Class<?> exportedClass, Collection<Object> idList)
It is called when the collection of objects was exported.
-
-
-
Constructor Detail
-
LabellingExporter
public LabellingExporter(ExportableEntityInfo entityInfo, CommonDatabaseDataExporter exporter)
-
-
Method Detail
-
onMonitoredObjectsExport
public void onMonitoredObjectsExport(Class<?> exportedClass, Collection<Object> idList) throws InterruptedException, BackupRestoreException
Description copied from interface:Subscriber
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 interfaceSubscriber
- Parameters:
exportedClass
- the exported classidList
- the list of ids of exported objects- Throws:
InterruptedException
BackupRestoreException
-
getWatchingEntityClasses
public Collection<Class<?>> getWatchingEntityClasses()
Description copied from interface:Subscriber
Return a collection of entity classes that subscriber will monitor the object export events. This is called when DatabaseExporterHelper register subscribers for all exporters. See UseDatabaseExporterHelper.registerSubscriber(Subscriber)
- Specified by:
getWatchingEntityClasses
in interfaceSubscriber
-
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
-
-