public class

ChangeItemTransformerImpl

extends Object
implements ChangeItemTransformer
java.lang.Object
   ↳ com.atlassian.jira.imports.project.transformer.ChangeItemTransformerImpl

Summary

Public Constructors
ChangeItemTransformerImpl(String mappedProjectId, CustomFieldManager customFieldManager)
Public Methods
ExternalChangeItem transform(ProjectImportMapper projectImportMapper, ExternalChangeItem changeItem)
Transforms an ExternalChangeItem based on the project import mapper that is provided.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.imports.project.transformer.ChangeItemTransformer

Public Constructors

public ChangeItemTransformerImpl (String mappedProjectId, CustomFieldManager customFieldManager)

Public Methods

public ExternalChangeItem transform (ProjectImportMapper projectImportMapper, ExternalChangeItem changeItem)

Transforms an ExternalChangeItem based on the project import mapper that is provided. This should only be used with a fully mapped and validated ProjectImportMapper.

Note this will return a null value if the Change Group has not been mapped.

Note that the ID is left as null, as the new ID will not be known until the object is created.

Parameters
projectImportMapper a fully mapped and validated ProjectImportMapper
changeItem the external ChangeItem that contains all the old values that need to be transformed and other values that should be stored that need no transformation.
Returns
  • a new ExternalChangeItem that contains the transformed values based on the projectImportMapper.