com.atlassian.jira.imports.project.mapper
Class IssueTypeMapper

java.lang.Object
  extended by com.atlassian.jira.imports.project.mapper.AbstractMapper
      extended by com.atlassian.jira.imports.project.mapper.IssueTypeMapper
All Implemented Interfaces:
ProjectImportIdMapper

@PublicApi
public class IssueTypeMapper
extends AbstractMapper
implements ProjectImportIdMapper

The issue type mapper. This is different from simple mappers because we need to keep track if an issue type is defined as a sub-task issue type or not.

Since:
v3.13

Constructor Summary
IssueTypeMapper()
           
 
Method Summary
 boolean equals(Object o)
           
 void flagValueAsRequired(String oldId)
          This is an internal method for use by Mappers extending AbstractMapper and should not be called from other classes.
 int hashCode()
           
 boolean isSubTask(String id)
           
 void registerOldValue(String oldId, String oldKey, boolean subTask)
           
 String toString()
           
 
Methods inherited from class com.atlassian.jira.imports.project.mapper.AbstractMapper
clearMappedValues, getAllMappedIds, getDisplayName, getKey, getMappedId, getRegisteredOldIds, getRequiredOldIds, getValuesFromImport, mapValue, registerOldValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.imports.project.mapper.ProjectImportIdMapper
clearMappedValues, getAllMappedIds, getDisplayName, getKey, getMappedId, getRegisteredOldIds, getRequiredOldIds, getValuesFromImport, mapValue
 

Constructor Detail

IssueTypeMapper

public IssueTypeMapper()
Method Detail

isSubTask

public boolean isSubTask(String id)

flagValueAsRequired

public void flagValueAsRequired(String oldId)
Description copied from class: AbstractMapper
This is an internal method for use by Mappers extending AbstractMapper and should not be called from other classes. MapperHandlers should call the public method specific to the concrete class they use.

Overrides:
flagValueAsRequired in class AbstractMapper
Parameters:
oldId - The ID of the required object from the import file.

registerOldValue

public void registerOldValue(String oldId,
                             String oldKey,
                             boolean subTask)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002-2015 Atlassian. All Rights Reserved.