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

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(java.lang.Object o)
           
 void flagValueAsRequired(java.lang.String oldId, java.lang.String oldIssueTypeId)
           
 java.util.Collection getIssueTypeIdsForRequiredStatus(java.lang.String statusId)
           
 int hashCode()
           
 void registerOldValue(java.lang.String oldId, java.lang.String oldKey)
          This is an internal method for use by Mappers extending AbstractMapper and should not be called from other classes.
 java.lang.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 java.util.Collection getIssueTypeIdsForRequiredStatus(java.lang.String statusId)

flagValueAsRequired

public void flagValueAsRequired(java.lang.String oldId,
                                java.lang.String oldIssueTypeId)

registerOldValue

public void registerOldValue(java.lang.String oldId,
                             java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2002-2010 Atlassian. All Rights Reserved.