com.atlassian.jira.imports.project.transformer
Interface LabelTransformer

All Known Implementing Classes:
LabelTransformerImpl

public interface LabelTransformer

Used to transform an ExternalLabel based on the project import mapper that is provided. This should only be used with a fully mapped and validated ProjectImportMapper.

Since:
v4.2

Method Summary
 ExternalLabel transform(ProjectImportMapper projectImportMapper, ExternalLabel label)
          Transforms an ExternalLabel based on the project import mapper that is provided.
 

Method Detail

transform

ExternalLabel transform(ProjectImportMapper projectImportMapper,
                        ExternalLabel label)
Transforms an ExternalLabel based on the project import mapper that is provided. This should only be used with a fully mapped and validated ProjectImportMapper.

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
label - the external label 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 ExternalLabel that contains the transformed values based on the projectImportMapper.


Copyright © 2002-2012 Atlassian. All Rights Reserved.