com.atlassian.crowd.migration.legacy
Class LegacyImportDataHolder

java.lang.Object
  extended by 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 Summary
LegacyImportDataHolder()
           
 
Method Summary
 Map<Long,Long> getOldToNewDirectoryIds()
           
 BatchResultWithIdReferences<User> getUserImportResults()
           
 void setOldToNewDirectoryIds(Map<Long,Long> oldToNewDirectoryIds)
           
 void setUserImportResults(BatchResultWithIdReferences<User> userImportResults)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyImportDataHolder

public LegacyImportDataHolder()
Method Detail

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.


Copyright © 2012 Atlassian. All Rights Reserved.