com.atlassian.jira.imports.project.transformer
Class WorklogTransformerImpl

java.lang.Object
  extended by com.atlassian.jira.imports.project.transformer.WorklogTransformerImpl
All Implemented Interfaces:
WorklogTransformer

public class WorklogTransformerImpl
extends Object
implements WorklogTransformer

Since:
v3.13

Constructor Summary
WorklogTransformerImpl()
           
 
Method Summary
 ExternalWorklog transform(ProjectImportMapper projectImportMapper, ExternalWorklog oldWorklog)
          Transforms an ExternalWorklog based on the project import mapper that is provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorklogTransformerImpl

public WorklogTransformerImpl()
Method Detail

transform

public ExternalWorklog transform(ProjectImportMapper projectImportMapper,
                                 ExternalWorklog oldWorklog)
Description copied from interface: WorklogTransformer
Transforms an ExternalWorklog 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.

Specified by:
transform in interface WorklogTransformer
Parameters:
projectImportMapper - a fully mapped and validated ProjectImportMapper
oldWorklog - the external worklog 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 ExternalWorklog that contains the transformed values based on the projectImportMapper.


Copyright © 2002-2015 Atlassian. All Rights Reserved.