com.atlassian.jira.util
Class MantisImportBean.DefaultMappingBean

java.lang.Object
  extended by com.atlassian.jira.util.MantisImportBean.DefaultMappingBean
All Implemented Interfaces:
MantisImportBean.MappingBean
Enclosing class:
MantisImportBean

public abstract static class MantisImportBean.DefaultMappingBean
extends java.lang.Object
implements MantisImportBean.MappingBean

Class mapping Mantis ids (see lang/strings_english.txt in the Mantis source) to JIRA IDs


Constructor Summary
MantisImportBean.DefaultMappingBean()
           
 
Method Summary
 java.lang.String getPriority(int originalPriority)
          Maps mantis severity to jira priority.
abstract  java.lang.String getProjectKey(java.lang.String project)
           
 java.lang.String getProjectName(java.lang.String project)
           
 java.lang.String getResolution(int originalResolution)
          Maps mantis resolution to jira resolution.
 int getStatus(int originalStatus)
           
 java.lang.String getWorkflowStatus(int originalWorkflowStatus)
           
 int getWorkflowStep(int originalWorkflowStep)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.util.MantisImportBean.MappingBean
getAttachmentPath, getProjectLead
 

Constructor Detail

MantisImportBean.DefaultMappingBean

public MantisImportBean.DefaultMappingBean()
Method Detail

getPriority

public java.lang.String getPriority(int originalPriority)
Maps mantis severity to jira priority. Default in config_defaults_inc.php is: $g_severity_enum_string = '10:feature,20:trivial,30:text,40:tweak,50:minor,60:major,70:crash,80:block';

Specified by:
getPriority in interface MantisImportBean.MappingBean

getResolution

public java.lang.String getResolution(int originalResolution)
Maps mantis resolution to jira resolution. Default in config_defaults_inc.php is: $g_resolution_enum_string = '10:open,20:fixed,30:reopened,40:unable to duplicate,50:not fixable,60:duplicate,70:not a bug,80:suspended,90:wont fix';

Specified by:
getResolution in interface MantisImportBean.MappingBean

getStatus

public int getStatus(int originalStatus)
Specified by:
getStatus in interface MantisImportBean.MappingBean

getWorkflowStep

public int getWorkflowStep(int originalWorkflowStep)
Specified by:
getWorkflowStep in interface MantisImportBean.MappingBean

getWorkflowStatus

public java.lang.String getWorkflowStatus(int originalWorkflowStatus)
Specified by:
getWorkflowStatus in interface MantisImportBean.MappingBean

getProjectName

public java.lang.String getProjectName(java.lang.String project)
Specified by:
getProjectName in interface MantisImportBean.MappingBean

getProjectKey

public abstract java.lang.String getProjectKey(java.lang.String project)
Specified by:
getProjectKey in interface MantisImportBean.MappingBean


Copyright © 2002-2010 Atlassian. All Rights Reserved.