Class PageTemplateExporter
- java.lang.Object
 - 
- com.atlassian.confluence.impl.backuprestore.backup.exporters.PageTemplateExporter
 
 
- 
- All Implemented Interfaces:
 Exporter,Subscriber
public class PageTemplateExporter extends Object implements Exporter, Subscriber
Responsible for monitoring exported events of Space class, exporting historical and non-historical page templates of spaces and sending data to the backup writer. In PageTemplate there are few things to consider: 1) There are two types of page templates - global templates and space templates. During space export we take only space templates and ignore global ones (they don’t have space) 2) They have historical versions (historical versions also don't have a space id, but they will all have id of current version of this template).- Since:
 - 7.20.0
 
 
- 
- 
Constructor Summary
Constructors Constructor Description PageTemplateExporter(ExportableEntityInfo entityInfo, CommonDatabaseDataExporter exporter) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExportableEntityInfogetEntityInfo()Returns default entity info for persister.ExportableEntityInfogetEntityInfo(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.voidonMonitoredObjectsExport(Class<?> exportedClass, Collection<Object> idList)It is called when the collection of objects was exported. 
 - 
 
- 
- 
Constructor Detail
- 
PageTemplateExporter
public PageTemplateExporter(ExportableEntityInfo entityInfo, CommonDatabaseDataExporter exporter)
 
 - 
 
- 
Method Detail
- 
getEntityInfo
public ExportableEntityInfo getEntityInfo()
Description copied from interface:ExporterReturns default entity info for persister. Will fail if the persister has to work with multiple hibernate entitites.- Specified by:
 getEntityInfoin interfaceExporter
 
- 
getEntityInfo
public ExportableEntityInfo getEntityInfo(Class<?> exportedClass)
Description copied from interface:ExporterReturns default entity info for the particular class.- Specified by:
 getEntityInfoin interfaceExporter
 
- 
getWatchingEntityClasses
public Collection<Class<?>> getWatchingEntityClasses()
Description copied from interface:SubscriberReturn 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:
 getWatchingEntityClassesin interfaceSubscriber
 
- 
onMonitoredObjectsExport
public void onMonitoredObjectsExport(Class<?> exportedClass, Collection<Object> idList) throws InterruptedException, BackupRestoreException
Description copied from interface:SubscriberIt is called when the collection of objects was exported. This is called only for objects that this class is watching. SeegetWatchingEntityClasses()- Specified by:
 onMonitoredObjectsExportin interfaceSubscriber- Parameters:
 exportedClass- the exported classidList- the list of ids of exported objects- Throws:
 InterruptedExceptionBackupRestoreException
 
 - 
 
 -