com.atlassian.greenhopper.upgrade.task013
Class UpgradeTaskState

java.lang.Object
  extended by com.atlassian.greenhopper.upgrade.task013.UpgradeTaskState

public class UpgradeTaskState
extends java.lang.Object

Encapsulates the state required for GhUpgradeTask013.


Constructor Summary
UpgradeTaskState()
           
 
Method Summary
 com.atlassian.jira.issue.fields.CustomField getLabsGlobalRankField()
           
 java.lang.String getLabsGlobalRankFieldOldDescription()
           
 java.util.Map<com.atlassian.jira.issue.fields.CustomField,com.atlassian.jira.issue.fields.CustomField> getMappingOfRankFields()
          The mapping of old rank custom fields to new rank custom fields
 java.util.Collection<com.atlassian.jira.issue.fields.CustomField> getNewRankFields()
           
 java.util.Set<com.atlassian.jira.issue.fields.CustomField> getOldRankFields()
           
 java.util.List<java.lang.String> getRankFieldIds()
          The IDs of the old GreenHopper rank fields (that we convert into Number fields).
 com.atlassian.jira.issue.fields.CustomField getTheChosenOldRankFieldToBeDefault()
          The old rank custom field which has been chosen to be mapped to the "newly-instantiated" global rank custom field (the one which GreenHopper creates on start-up).
 void setLabsGlobalRankField(com.atlassian.jira.issue.fields.CustomField labsGlobalRankField)
           
 void setLabsGlobalRankFieldOldDescription(java.lang.String labsGlobalRankFieldOldDescription)
           
 void setMappingOfRankFields(java.util.Map<com.atlassian.jira.issue.fields.CustomField,com.atlassian.jira.issue.fields.CustomField> mappingOfRankFields)
           
 void setRankFieldIds(java.util.List<java.lang.String> rankFieldIds)
           
 void setTheChosenOldRankFieldToBeDefault(com.atlassian.jira.issue.fields.CustomField theChosenOldRankFieldToBeDefault)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeTaskState

public UpgradeTaskState()
Method Detail

getRankFieldIds

public java.util.List<java.lang.String> getRankFieldIds()
The IDs of the old GreenHopper rank fields (that we convert into Number fields). Each id looks like this: customfield_12345.

Returns:
the list

setRankFieldIds

public void setRankFieldIds(java.util.List<java.lang.String> rankFieldIds)

getMappingOfRankFields

public java.util.Map<com.atlassian.jira.issue.fields.CustomField,com.atlassian.jira.issue.fields.CustomField> getMappingOfRankFields()
The mapping of old rank custom fields to new rank custom fields

Returns:
the map

setMappingOfRankFields

public void setMappingOfRankFields(java.util.Map<com.atlassian.jira.issue.fields.CustomField,com.atlassian.jira.issue.fields.CustomField> mappingOfRankFields)

getOldRankFields

public java.util.Set<com.atlassian.jira.issue.fields.CustomField> getOldRankFields()

getNewRankFields

public java.util.Collection<com.atlassian.jira.issue.fields.CustomField> getNewRankFields()

getTheChosenOldRankFieldToBeDefault

public com.atlassian.jira.issue.fields.CustomField getTheChosenOldRankFieldToBeDefault()
The old rank custom field which has been chosen to be mapped to the "newly-instantiated" global rank custom field (the one which GreenHopper creates on start-up).

Returns:
the custom field; null if no field was chosen

setTheChosenOldRankFieldToBeDefault

public void setTheChosenOldRankFieldToBeDefault(com.atlassian.jira.issue.fields.CustomField theChosenOldRankFieldToBeDefault)

getLabsGlobalRankField

public com.atlassian.jira.issue.fields.CustomField getLabsGlobalRankField()

setLabsGlobalRankField

public void setLabsGlobalRankField(com.atlassian.jira.issue.fields.CustomField labsGlobalRankField)

getLabsGlobalRankFieldOldDescription

public java.lang.String getLabsGlobalRankFieldOldDescription()

setLabsGlobalRankFieldOldDescription

public void setLabsGlobalRankFieldOldDescription(java.lang.String labsGlobalRankFieldOldDescription)


Copyright © 2007-2013 Atlassian. All Rights Reserved.