|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.imports.project.mapper.AbstractMapper com.atlassian.jira.imports.project.mapper.UserMapper
public class UserMapper
Allows you to map Users. We keep the whole ExternalUser information so we can create Users that don't exist.
Constructor Summary | |
---|---|
UserMapper(UserUtil userUtil)
|
Method Summary | |
---|---|
void |
clearMappedValues()
This will clear any mapped data that may have been entered into the mappers. |
void |
flagUserAsInUse(String oldUserName)
|
void |
flagUserAsMandatory(String oldUserName)
|
ExternalUser |
getExternalUser(String userName)
|
String |
getMappedId(String oldId)
Retrieves a String that corresponds to the id in the target JIRA system, null if none has been mapped. |
Collection |
getOptionalOldIds()
|
Collection |
getUnmappedMandatoryUsers()
|
List |
getUnmappedMandatoryUsersWithNoRegisteredOldValue()
|
Collection |
getUnmappedUsersInUse()
|
List |
getUnmappedUsersInUseWithNoRegisteredOldValue()
|
Collection |
getUsersToAutoCreate()
Returns a List of users that can be automatically created by the import. |
void |
registerOldValue(ExternalUser externalUser)
|
boolean |
userExists(String userName)
|
Methods inherited from class com.atlassian.jira.imports.project.mapper.AbstractMapper |
---|
flagValueAsRequired, getAllMappedIds, getDisplayName, getKey, getRegisteredOldIds, getRequiredOldIds, getValuesFromImport, mapValue, registerOldValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserMapper(UserUtil userUtil)
Method Detail |
---|
public void registerOldValue(ExternalUser externalUser)
public ExternalUser getExternalUser(String userName)
public String getMappedId(String oldId)
ProjectImportIdMapper
getMappedId
in interface ProjectImportIdMapper
getMappedId
in class AbstractMapper
oldId
- identifies the mapping we are looking for.
public void flagUserAsMandatory(String oldUserName)
public void flagUserAsInUse(String oldUserName)
public Collection getUnmappedMandatoryUsers()
public List getUnmappedMandatoryUsersWithNoRegisteredOldValue()
public List getUnmappedUsersInUseWithNoRegisteredOldValue()
public Collection getUnmappedUsersInUse()
public Collection getUsersToAutoCreate()
This includes all optional and mandatory users that aren't in the current system, and the import file has the user details for.
Note that this method only makes sense if External User Management is off.
public Collection getOptionalOldIds()
public boolean userExists(String userName)
public void clearMappedValues()
ProjectImportIdMapper
clearMappedValues
in interface ProjectImportIdMapper
clearMappedValues
in class AbstractMapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |