Class LegacyImportDataHolder

java.lang.Object
com.atlassian.crowd.migration.legacy.LegacyImportDataHolder

public class LegacyImportDataHolder extends Object
This class holds references that can be shared across other importers should the need arise. This does, in some way, break the independance of the mappers - but the reality is that the mappers are interdependant and NEED to share data to allow for fast legacy imports.
  • Constructor Details

    • LegacyImportDataHolder

      public LegacyImportDataHolder()
  • Method Details

    • getOldToNewDirectoryIds

      public Map<Long,Long> getOldToNewDirectoryIds()
      Returns:
      a map of directory IDs present in the XML file mapped to actual directory IDs saved in the database.
    • setOldToNewDirectoryIds

      public void setOldToNewDirectoryIds(Map<Long,Long> oldToNewDirectoryIds)
      Parameters:
      oldToNewDirectoryIds - a map of directory IDs present in the XML file mapped to actual directory IDs saved in the database.
    • getUserImportResults

      public BatchResultWithIdReferences<User> getUserImportResults()
      Returns:
      results from the batch user import.
    • setUserImportResults

      public void setUserImportResults(BatchResultWithIdReferences<User> userImportResults)
      Parameters:
      userImportResults - results from the batch user import.