com.atlassian.jira.upgrade
Class UpgradeHistoryItemImpl

java.lang.Object
  extended by com.atlassian.jira.upgrade.UpgradeHistoryItemImpl
All Implemented Interfaces:
UpgradeHistoryItem

public class UpgradeHistoryItemImpl
extends java.lang.Object
implements UpgradeHistoryItem

Since:
v4.1

Constructor Summary
UpgradeHistoryItemImpl(java.util.Date timePerformed, java.lang.String targetBuildNumber, java.lang.String targetVersion, java.lang.String originalBuildNumber, java.lang.String originalVersion)
           
UpgradeHistoryItemImpl(java.util.Date timePerformed, java.lang.String targetBuildNumber, java.lang.String targetVersion, java.lang.String originalBuildNumber, java.lang.String originalVersion, boolean inferred)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getOriginalBuildNumber()
           
 java.lang.String getOriginalVersion()
           
 java.lang.String getTargetBuildNumber()
          For historical data, this number may not represent a released build of JIRA but instead the last upgrade task to run.
 java.lang.String getTargetVersion()
          If the target build number was not a released build of JIRA, the version picked will be the next version of JIRA after that build number.
 java.util.Date getTimePerformed()
          For historical data, we do not have information about when upgrade tasks were performed.
 int hashCode()
           
 boolean isInferred()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeHistoryItemImpl

public UpgradeHistoryItemImpl(java.util.Date timePerformed,
                              java.lang.String targetBuildNumber,
                              java.lang.String targetVersion,
                              java.lang.String originalBuildNumber,
                              java.lang.String originalVersion)

UpgradeHistoryItemImpl

public UpgradeHistoryItemImpl(java.util.Date timePerformed,
                              java.lang.String targetBuildNumber,
                              java.lang.String targetVersion,
                              java.lang.String originalBuildNumber,
                              java.lang.String originalVersion,
                              boolean inferred)
Method Detail

getTimePerformed

public java.util.Date getTimePerformed()
Description copied from interface: UpgradeHistoryItem
For historical data, we do not have information about when upgrade tasks were performed. In this case, null may be returned.

Specified by:
getTimePerformed in interface UpgradeHistoryItem
Returns:
the time when the upgrade was performed; may be null if it is unknown

getTargetBuildNumber

public java.lang.String getTargetBuildNumber()
Description copied from interface: UpgradeHistoryItem
For historical data, this number may not represent a released build of JIRA but instead the last upgrade task to run. This is because often the release build number does not have an associated upgrade task.

Specified by:
getTargetBuildNumber in interface UpgradeHistoryItem
Returns:
the build number that was being upgraded to which represents which version of JIRA the instance was running at the time of upgrade.

getOriginalBuildNumber

public java.lang.String getOriginalBuildNumber()
Specified by:
getOriginalBuildNumber in interface UpgradeHistoryItem
Returns:
the previous build number of JIRA before this upgrade, or the build number used to infer this history item if it was inferred.

getTargetVersion

public java.lang.String getTargetVersion()
Description copied from interface: UpgradeHistoryItem

If the target build number was not a released build of JIRA, the version picked will be the next version of JIRA after that build number.

For example, if the target build number is 207, the version returned would be 3.8, as it has a build number of 209.

Specified by:
getTargetVersion in interface UpgradeHistoryItem
Returns:
the version of JIRA that corresponds to the target build number.

getOriginalVersion

public java.lang.String getOriginalVersion()
Specified by:
getOriginalVersion in interface UpgradeHistoryItem
Returns:
the previous version of JIRA before this upgrade.

isInferred

public boolean isInferred()
Specified by:
isInferred in interface UpgradeHistoryItem
Returns:
true if this was inferred from upgrade tasks; false otherwise

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