@PublicApi public interface AppMappingContext
ProjectConfigurationHandler
which imports some objects that are
later referenced by data imported in an IssueDataHandler
.Modifier and Type | Method and Description |
---|---|
Optional<Long> |
lookupMapping(String type,
Long sourceId)
|
Optional<String> |
lookupMapping(String type,
String sourceId)
|
void |
recordMapping(String type,
Long sourceId,
Long targetId)
Records a mapping between source and target id for objects of the given type.
|
void |
recordMapping(String type,
String sourceId,
String targetId)
Records a mapping between source and target id for objects of the given type.
|
void recordMapping(String type, String sourceId, String targetId)
String
.type
- the type of the object - this is provided by the app handlers and represents a category of configuration objects, the same
type must be used for lookup.sourceId
- the source id of the object.targetId
- the target id of the object.void recordMapping(String type, Long sourceId, Long targetId)
Long
.type
- the type of the object - this is provided by the app handlers and represents a category of configuration objects, the same
* type must be used for lookup.sourceId
- the source id of the object.targetId
- the target id of the object.Optional<String> lookupMapping(String type, String sourceId)
Optional
of the target id of an app specific object if such mapping was previously recorded or an empty
Optional
otherwise.type
- the type of the object - this is provided by the app handlers and represents a category of configuration objects, the same
type must be used when recording the mapping.sourceId
- the source id of the object.Optional
of the target id of an app specific object if such mapping was previously recorded or an empty
Optional
otherwise.Optional<Long> lookupMapping(String type, Long sourceId)
Optional
of the target id of an app specific object if such mapping was previously recorded or an empty
Optional
otherwise.type
- the type of the object - this is provided by the app handlers and represents a category of configuration objects, the same
type must be used when recording the mapping.sourceId
- the source id of the object.Optional
of the target id of an app specific object if such mapping was previously recorded or an empty
Optional
otherwise.Copyright © 2022. All rights reserved.