java.lang.Object
com.atlassian.confluence.impl.backuprestore.restore.idmapping.AbstractIdMapper
All Implemented Interfaces:
IdMapper
Direct Known Subclasses:
SiteRestoreIdMapper, SpaceRestoreIdMapper

public abstract class AbstractIdMapper extends Object implements IdMapper
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 Details

  • Constructor Details

  • Method Details

    • isPersistedXmlId

      public boolean isPersistedXmlId(Class<?> clazz, Object xmlId)
      Description copied from interface: IdMapper
      Check if the records with id from XML has been persisted.
      Specified by:
      isPersistedXmlId in interface IdMapper
    • markObjectsAsPersisted

      public void markObjectsAsPersisted(ExportableEntityInfo entityInfo, List<Object> databaseObjectIds)
      Description copied from interface: IdMapper
      Marks all ids as persisted. This method is usually called when the transaction is committed.
      Specified by:
      markObjectsAsPersisted in interface IdMapper
      Parameters:
      entityInfo - entity info
      databaseObjectIds - database objects ids
    • getAllNotSatisfiedDependencies

      public Collection<HibernateField> getAllNotSatisfiedDependencies(ImportedObjectV2 importedObject)
      Specified by:
      getAllNotSatisfiedDependencies in interface IdMapper
      Returns:
      all fields which referenced records are not persisted yet.
    • fixContentEntityObjectClass

      protected Class<?> fixContentEntityObjectClass(Class<?> clazz)