|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProjectImportIdMapper
Base interface for a Project Import Id Mapper. Defines a value mapper used for project import. This allows us to map an old value with a new value in the target system. Each instance of this interface represents a particular type of object in the system; eg IssueType, Issue, etc.
Method Summary | |
---|---|
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. |
Method Detail |
---|
@Deprecated Collection<IdKeyPair> getValuesFromImport()
IdKeyPair representing objects from the import file.
- Returns:
- a collection of
IdKeyPair representing objects from the import file.- See Also:
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |