@PublicApi
public interface ProjectImportIdMapper
Modifier and Type | Method and Description |
---|---|
void |
clearMappedValues()
This will clear any mapped data that may have been entered into the mappers.
|
Collection<String> |
getAllMappedIds()
Returns a Collection of all the new IDs that are mapped to.
|
String |
getDisplayName(String oldId)
Returns a display name for the given old ID.
|
String |
getKey(String oldId)
Returns the registered "key" for the given old ID, or
null if none is registered. |
String |
getMappedId(String oldId)
Retrieves a String that corresponds to the id in the target JIRA system, null if none has been mapped.
|
Collection<String> |
getRegisteredOldIds()
Returns a collection of ID's as String objects identifying all objects of the appropriate type found in the import file.
|
Collection<String> |
getRequiredOldIds()
Returns a collection of ID's as String objects identifying objects from the import file that are required for the import.
|
Collection<IdKeyPair> |
getValuesFromImport()
Deprecated.
Use getRegisteredOldIds()
|
void |
mapValue(String oldId,
String newId)
This method maps a value from the backup system to a valid value in the target system.
|
@Deprecated Collection<IdKeyPair> getValuesFromImport()
IdKeyPair representing objects from the import file.
IdKeyPair representing objects from the import file.
IdKeyPair
Collection<String> getRequiredOldIds()
Collection<String> getRegisteredOldIds()
getKey(String)
method to extract this key.getRequiredOldIds()
,
getKey(String)
String getKey(String oldId)
null
if none is registered.
This is the unique "name" that will be used for automatic mapping of objects in the import file to the objects in
the current JIRA system.oldId
- The old ID.null
if none is registered.getDisplayName(String)
,
getRegisteredOldIds()
String getDisplayName(String oldId)
oldId
- The old ID.getKey(String)
void mapValue(String oldId, String newId)
oldId
- the string representation of the id of the backup value.newId
- the string representation of the id of the valid mapped value in the target system.String getMappedId(String oldId)
oldId
- identifies the mapping we are looking for.Collection<String> getAllMappedIds()
void clearMappedValues()
Copyright © 2002-2022 Atlassian. All Rights Reserved.