com.atlassian.bitbucket.migration.ImportContext |
Allows the consumption of entries contained in an import archive. An Importer
that wishes to make state
available for the lifetime of an import will use the facilities provided by this class such as
getAttributeMap()
and getEntityMapping(MigrationEntityType)
. This class also provides a facility
for storing error and warning messages that an Importer
may raise during the import process.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Report a failed import
| |||||||||||
Report a failed import
| |||||||||||
Report a warning during an import
| |||||||||||
Report a warning during an import
| |||||||||||
Returns the
AttributeMap object for this context. | |||||||||||
Returns the
EntityImportMapping of the MigrationEntityType for this context. | |||||||||||
Report a failed import
message | the failure message |
---|---|
entity | the entity for which export failed |
Report a failed import
message | the failure message |
---|---|
entity | the entity for which export failed |
t | an optional Throwable for the warning
|
Report a warning during an import
message | the failure message |
---|---|
entity | the entity for which export failed |
Report a warning during an import
message | the failure message |
---|---|
entity | the entity for which export failed |
t | an optional Throwable for the warning
|
Returns the AttributeMap
object for this context. This allows storage of attributes associated with this
context for the lifetime of this context.
AttributeMap
object for this contextReturns the EntityImportMapping
of the MigrationEntityType
for this context. If the mapping
does not exist for the type, it'll be created.
entityType | Entity type that this mapping should map |
---|
EntityImportMapping
of the MigrationEntityType
for this context