public class

WorklogTransformerImpl

extends Object
implements WorklogTransformer
java.lang.Object
   ↳ com.atlassian.jira.imports.project.transformer.WorklogTransformerImpl

Summary

Public Constructors
WorklogTransformerImpl()
Public Methods
ExternalWorklog transform(ProjectImportMapper projectImportMapper, ExternalWorklog oldWorklog)
Transforms an ExternalWorklog 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.WorklogTransformer

Public Constructors

public WorklogTransformerImpl ()

Public Methods

public ExternalWorklog transform (ProjectImportMapper projectImportMapper, ExternalWorklog oldWorklog)

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.

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.