Class UserMapper
java.lang.Object
com.atlassian.jira.imports.project.mapper.AbstractMapper
com.atlassian.jira.imports.project.mapper.UserMapper
- All Implemented Interfaces:
ProjectImportIdMapper
Allows you to map Users.
We keep the whole ExternalUser information so we can create Users that don't exist.
- Since:
- v3.13
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
flagUserAsInUse
(String oldUserKey) void
flagUserAsMandatory
(String oldUserKey) getExternalUser
(String userKey) getMappedId
(String oldId) Retrieves a String that corresponds to the id in the target JIRA system, null if none has been mapped.getMappedUserKey
(String oldUserKey) Returns a List of users that can be automatically created by the import.void
registerOldValue
(ExternalUser externalUser) boolean
userExists
(String userKey) Methods inherited from class com.atlassian.jira.imports.project.mapper.AbstractMapper
clearMappedValues, flagValueAsRequired, getAllMappedIds, getDisplayName, getKey, getRegisteredOldIds, getRequiredOldIds, mapValue, registerOldValue
-
Constructor Details
-
UserMapper
-
-
Method Details
-
registerOldValue
-
getExternalUser
-
getMappedId
Description copied from interface:ProjectImportIdMapper
Retrieves a String that corresponds to the id in the target JIRA system, null if none has been mapped.- Specified by:
getMappedId
in interfaceProjectImportIdMapper
- Overrides:
getMappedId
in classAbstractMapper
- Parameters:
oldId
- identifies the mapping we are looking for.- Returns:
- String that corresponds to the id in the target JIRA system, null if none has been mapped.
-
flagUserAsMandatory
-
flagUserAsInUse
-
getUnmappedMandatoryUsers
-
getUnmappedMandatoryUsersWithNoRegisteredOldValue
-
getUnmappedUsersInUseWithNoRegisteredOldValue
-
getUnmappedUsersInUse
-
getUsersToAutoCreate
Returns a List of users that can be automatically created by the import.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.
- Returns:
- a List of users that can be automatically created by the import.
-
getOptionalOldIds
-
userExists
-
getMappedUserKey
-