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

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

@PublicApi
public class StatusMapper
extends AbstractMapper
implements ProjectImportIdMapper, MapperEntityRegister

Allows you to map statuses. This is different from the other simple mappers as when we find a status is in use we need to record which issue type it is in use with.

Since:
v3.13

Constructor Summary
StatusMapper()
           
 
Method Summary
 boolean equals(Object o)
           
 void flagValueAsRequired(String oldId, String oldIssueTypeId)
           
 Collection getIssueTypeIdsForRequiredStatus(String statusId)
           
 int hashCode()
           
 void registerOldValue(String oldId, String oldKey)
          This is an internal method for use by Mappers extending AbstractMapper and should not be called from other classes.
 String toString()
           
 
Methods inherited from class com.atlassian.jira.imports.project.mapper.AbstractMapper
clearMappedValues, flagValueAsRequired, getAllMappedIds, getDisplayName, getKey, getMappedId, getRegisteredOldIds, getRequiredOldIds, getValuesFromImport, mapValue
 
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

StatusMapper

public StatusMapper()
Method Detail

getIssueTypeIdsForRequiredStatus

public Collection getIssueTypeIdsForRequiredStatus(String statusId)

flagValueAsRequired

public void flagValueAsRequired(String oldId,
                                String oldIssueTypeId)

registerOldValue

public void registerOldValue(String oldId,
                             String oldKey)
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.

Specified by:
registerOldValue in interface MapperEntityRegister
Overrides:
registerOldValue in class AbstractMapper
Parameters:
oldId - The ID of the required object from the import file.
oldKey - The unique key of the required object from the import file.

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-2013 Atlassian. All Rights Reserved.