Class DirectoryMappingPersister
java.lang.Object
com.atlassian.confluence.impl.backuprestore.restore.persisters.DirectoryMappingPersister
- All Implemented Interfaces:
 EntityPersister
A persister for 
DirectoryMapping entity.
 This entity has two properties which require special treatment:
 1) `list_index` column which is not created properly because it's an index column.
    In legacy backups we take information for it from cwd_application.
 2) `allowedOperations` set which references `cwd_app_dir_operation` table.
    This table doesn't have its own entity class, so we need generate records for it from the set.- Since:
 - 8.3.0
 
- 
Constructor Summary
ConstructorsConstructorDescriptionDirectoryMappingPersister(ObjectPersister objectPersister, ImportedObjectsStashFactory importedObjectsStashFactory, PersisterHelper persisterHelper, IdMapper idMapper, OperationRecordsGenerator operationRecordsGenerator, ListIndexColumnValueCalculator listIndexColumnValueCalculator)  - 
Method Summary
Modifier and TypeMethodDescriptionbooleancanAccept(ImportedObjectV2 importedObject) TODO do we need it?Collection<Class<?>>Return a collection of entity classes that persister can persist.voidpersist(ImportedObjectV2 importedObject) Persists the object.longRequest the persister to persist the next chunk of data. 
- 
Constructor Details
- 
DirectoryMappingPersister
public DirectoryMappingPersister(ObjectPersister objectPersister, ImportedObjectsStashFactory importedObjectsStashFactory, PersisterHelper persisterHelper, IdMapper idMapper, OperationRecordsGenerator operationRecordsGenerator, ListIndexColumnValueCalculator listIndexColumnValueCalculator)  
 - 
 - 
Method Details
- 
getSupportedClasses
Description copied from interface:EntityPersisterReturn a collection of entity classes that persister can persist.- Specified by:
 getSupportedClassesin interfaceEntityPersister
 - 
canAccept
Description copied from interface:EntityPersisterTODO do we need it?- Specified by:
 canAcceptin interfaceEntityPersister- Returns:
 - true if the object can be persisted by the implementation.
 
 - 
persist
Description copied from interface:EntityPersisterPersists the object. Can be processed asynchronously.- Specified by:
 persistin interfaceEntityPersister- Parameters:
 importedObject- object to persist.- Throws:
 BackupRestoreException
 - 
persistNextChunkOfData
Description copied from interface:EntityPersisterRequest the persister to persist the next chunk of data.- Specified by:
 persistNextChunkOfDatain interfaceEntityPersister- Returns:
 - number of processed objects. Zero means there are no more objects to persist.
 - Throws:
 BackupRestoreException
 
 -