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

All Known Implementing Classes:
AttachmentTransformerImpl

public interface AttachmentTransformer

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

Since:
v3.13

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

Method Detail

transform

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

Parameters:
projectImportMapper - a fully mapped and validated ProjectImportMapper
attachment - the external attachment 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 ExternalAttachment that contains the transformed values based on the projectImportMapper.


Copyright © 2002-2013 Atlassian. All Rights Reserved.