Class AbstractIdMapper
java.lang.Object
com.atlassian.confluence.impl.backuprestore.restore.idmapping.AbstractIdMapper
- All Implemented Interfaces:
IdMapper
- Direct Known Subclasses:
SiteRestoreIdMapper,SpaceRestoreIdMapper
Responsible for keeping id mappings between the xml ids and the database ids during restore.
Also provides information about records saved to the database.
- Since:
- 8.1.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractIdMapper(PersistedObjectsRegister persistedObjectsRegister) -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?> fixContentEntityObjectClass(Class<?> clazz) getAllNotSatisfiedDependencies(ImportedObjectV2 importedObject) booleanisPersistedXmlId(Class<?> clazz, Object xmlId) Check if the records with id from XML has been persisted.voidmarkObjectsAsPersisted(ExportableEntityInfo entityInfo, List<Object> databaseObjectIds) Marks all ids as persisted.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.impl.backuprestore.restore.idmapping.IdMapper
getDatabaseId, prepareObjectsToBePersisted
-
Field Details
-
persistedObjectsRegister
-
-
Constructor Details
-
AbstractIdMapper
-
-
Method Details
-
isPersistedXmlId
Description copied from interface:IdMapperCheck if the records with id from XML has been persisted.- Specified by:
isPersistedXmlIdin interfaceIdMapper
-
markObjectsAsPersisted
Description copied from interface:IdMapperMarks all ids as persisted. This method is usually called when the transaction is committed.- Specified by:
markObjectsAsPersistedin interfaceIdMapper- Parameters:
entityInfo- entity infodatabaseObjectIds- database objects ids
-
getAllNotSatisfiedDependencies
- Specified by:
getAllNotSatisfiedDependenciesin interfaceIdMapper- Returns:
- all fields which referenced records are not persisted yet.
-
fixContentEntityObjectClass
-