java.lang.Object | |
↳ | com.atlassian.jira.imports.project.mapper.AbstractMapper |
Known Direct Subclasses |
Known Indirect Subclasses |
@Internal
classes and interfaces can not expect to be compatible with any version
other than the version they were compiled against (even minor version and milestone releases may break binary
compatibility with respect to @Internal
elements).
Abstract mapper that will manage most of the generic data for mappers. Complicated mappers can extend this abstract class and provide public methods with required method signatures, which then maintain their special data and pass standard data to this mapper with the protected methods.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This will clear any mapped data that may have been entered into the mappers.
| |||||||||||
Returns a Collection of all the new IDs that are mapped to.
| |||||||||||
Returns a display name for the given old ID.
| |||||||||||
Returns the registered "key" for the given old ID, or
null if none is registered. | |||||||||||
Retrieves a String that corresponds to the id in the target JIRA system, null if none has been mapped.
| |||||||||||
Returns a collection of ID's as String objects identifying all objects of the appropriate type found in the import file.
| |||||||||||
Returns a collection of ID's as String objects identifying objects from the import file that are required for the import.
| |||||||||||
This method is deprecated.
Use getRegisteredOldIds(). Since 5.0
| |||||||||||
This method maps a value from the backup system to a valid value in the target system.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This is an internal method for use by Mappers extending AbstractMapper and should not be called from other classes.
| |||||||||||
This is an internal method for use by Mappers extending AbstractMapper and should not be called from other classes.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.imports.project.mapper.ProjectImportIdMapper
|
This will clear any mapped data that may have been entered into the mappers. All registered values and values that have been flagged as required will not be changed. This method only affects the mapped data. It is used to re-map and re-validate the data after the user has made changes to the current configuration.
Returns a Collection of all the new IDs that are mapped to.
Returns a display name for the given old ID. This will normally be the registered key for that ID, but if no key was registered we return the ID in square brackets (eg "[1234]").
oldId | The old ID. |
---|
Returns the registered "key" for the given old ID, or 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.Retrieves a String that corresponds to the id in the target JIRA system, null if none has been mapped.
oldId | identifies the mapping we are looking for. |
---|
Returns a collection of ID's as String objects identifying all objects of the appropriate type found in the import file.
Note that that this should normally be a super set of the "required" ID's.
Each of these ID's will have a unique key associated with it that can be used for mapping old ID's in the import
file to "new" ID's in the current JIRA system.
You can use the getKey(String)
method to extract this key.
Returns a collection of ID's as String objects identifying objects from the import file that are required for the import.
This method is deprecated.
Use getRegisteredOldIds(). Since 5.0
Returns a collection of IdKeyPair
representing objects from the import file.
IdKeyPair representing objects from the import file.
This method maps a value from the backup system to a valid value in the target system.
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. |
This is an internal method for use by Mappers extending AbstractMapper and should not be called from other classes. MapperHandlers should call the public method specific to the concrete class they use.
oldId | The ID of the required object from the import file. |
---|
This is an internal method for use by Mappers extending AbstractMapper and should not be called from other classes. MapperHandlers should call the public method specific to the concrete class they use.
oldId | The ID of the required object from the import file. |
---|---|
oldKey | The unique key of the required object from the import file. |