@PublicApi public class UserMapper extends AbstractMapper
Constructor and Description |
---|
UserMapper(UserUtil userUtil) |
Modifier and Type | Method and Description |
---|---|
void |
flagUserAsInUse(String oldUserKey) |
void |
flagUserAsMandatory(String oldUserKey) |
ExternalUser |
getExternalUser(String userKey) |
String |
getMappedId(String oldId)
Retrieves a String that corresponds to the id in the target JIRA system, null if none has been mapped.
|
String |
getMappedUserKey(String oldUserKey) |
Collection<String> |
getOptionalOldIds() |
Collection<ExternalUser> |
getUnmappedMandatoryUsers() |
List<ExternalUser> |
getUnmappedMandatoryUsersWithNoRegisteredOldValue() |
Collection<ExternalUser> |
getUnmappedUsersInUse() |
List<ExternalUser> |
getUnmappedUsersInUseWithNoRegisteredOldValue() |
Collection<ExternalUser> |
getUsersToAutoCreate()
Returns a List of users that can be automatically created by the import.
|
void |
registerOldValue(ExternalUser externalUser) |
boolean |
userExists(String userKey) |
clearMappedValues, flagValueAsRequired, getAllMappedIds, getDisplayName, getKey, getRegisteredOldIds, getRequiredOldIds, getValuesFromImport, mapValue, registerOldValue
public UserMapper(UserUtil userUtil)
public void registerOldValue(ExternalUser externalUser)
public ExternalUser getExternalUser(String userKey)
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 oldUserKey)
public void flagUserAsInUse(String oldUserKey)
public Collection<ExternalUser> getUnmappedMandatoryUsers()
public List<ExternalUser> getUnmappedMandatoryUsersWithNoRegisteredOldValue()
public List<ExternalUser> getUnmappedUsersInUseWithNoRegisteredOldValue()
public Collection<ExternalUser> getUnmappedUsersInUse()
public Collection<ExternalUser> 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<String> getOptionalOldIds()
public boolean userExists(String userKey)
Copyright © 2002-2022 Atlassian. All Rights Reserved.