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
ConstructorsModifierConstructorDescriptionprotected
AbstractIdMapper
(PersistedObjectsRegister persistedObjectsRegister) -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?>
fixContentEntityObjectClass
(Class<?> clazz) getAllNotSatisfiedDependencies
(ImportedObjectV2 importedObject) boolean
isPersistedXmlId
(Class<?> clazz, Object xmlId) Check if the records with id from XML has been persisted.void
markObjectsAsPersisted
(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, wait
Methods 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:IdMapper
Check if the records with id from XML has been persisted.- Specified by:
isPersistedXmlId
in interfaceIdMapper
-
markObjectsAsPersisted
Description copied from interface:IdMapper
Marks all ids as persisted. This method is usually called when the transaction is committed.- Specified by:
markObjectsAsPersisted
in interfaceIdMapper
- Parameters:
entityInfo
- entity infodatabaseObjectIds
- database objects ids
-
getAllNotSatisfiedDependencies
- Specified by:
getAllNotSatisfiedDependencies
in interfaceIdMapper
- Returns:
- all fields which referenced records are not persisted yet.
-
fixContentEntityObjectClass
-