Class SimpleEntityExporter
java.lang.Object
com.atlassian.confluence.impl.backuprestore.backup.exporters.SimpleEntityExporter
Responsible for exporting objects that should not be exported as a part of the space
unless other objects have references to them. For example, confluence users or labels.
- Since:
- 7.20.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns default entity info for persister.getEntityInfo
(Class<?> exportedClass) Returns default entity info for the particular class.static boolean
isSuitableForExporter
(ExportableEntityInfo entityInfo, Set<Class<?>> simpleEntities) void
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 Long
-
Constructor Details
-
SimpleEntityExporter
-
-
Method Details
-
persistObjects
public void persistObjects(Collection<Object> objectIds) throws InterruptedException, BackupRestoreException Description copied from interface:Persister
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 Long- Specified by:
persistObjects
in interfacePersister
- Throws:
InterruptedException
BackupRestoreException
-
isSuitableForExporter
public static boolean isSuitableForExporter(ExportableEntityInfo entityInfo, Set<Class<?>> simpleEntities) -
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
Description copied from interface:Exporter
Returns default entity info for the particular class.- Specified by:
getEntityInfo
in interfaceExporter
-