Class LegacyImportDataHolder
java.lang.Object
com.atlassian.crowd.migration.legacy.LegacyImportDataHolder
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setOldToNewDirectoryIds
(Map<Long, Long> oldToNewDirectoryIds) void
setUserImportResults
(BatchResultWithIdReferences<User> userImportResults)
-
Constructor Details
-
LegacyImportDataHolder
public LegacyImportDataHolder()
-
-
Method Details
-
getOldToNewDirectoryIds
- Returns:
- a map of directory IDs present in the XML file mapped to actual directory IDs saved in the database.
-
setOldToNewDirectoryIds
- Parameters:
oldToNewDirectoryIds
- a map of directory IDs present in the XML file mapped to actual directory IDs saved in the database.
-
getUserImportResults
- Returns:
- results from the batch user import.
-
setUserImportResults
- Parameters:
userImportResults
- results from the batch user import.
-