Package com.atlassian.jira.upgrade
Class UpgradeVersionHistoryItemImpl
java.lang.Object
com.atlassian.jira.upgrade.UpgradeVersionHistoryItemImpl
- All Implemented Interfaces:
UpgradeVersionHistoryItem
- Since:
- v4.1
-
Constructor Summary
ConstructorsConstructorDescriptionUpgradeVersionHistoryItemImpl(Date timePerformed, String targetBuildNumber, String targetVersion, String originalBuildNumber, String originalVersion) UpgradeVersionHistoryItemImpl(Date timePerformed, String targetBuildNumber, String targetVersion, String originalBuildNumber, String originalVersion, boolean inferred) -
Method Summary
Modifier and TypeMethodDescriptionbooleanFor historical data, this number may not represent a released build of JIRA but instead the last upgrade task to run.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 historical data, we do not have information about when upgrade tasks were performed.inthashCode()boolean
-
Constructor Details
-
UpgradeVersionHistoryItemImpl
-
UpgradeVersionHistoryItemImpl
-
-
Method Details
-
getTimePerformed
Description copied from interface:UpgradeVersionHistoryItemFor historical data, we do not have information about when upgrade tasks were performed. In this case, null may be returned.- Specified by:
getTimePerformedin interfaceUpgradeVersionHistoryItem- Returns:
- the time when the upgrade was performed; may be null if it is unknown
-
getTargetBuildNumber
Description copied from interface:UpgradeVersionHistoryItemFor 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:
getTargetBuildNumberin interfaceUpgradeVersionHistoryItem- 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
- Specified by:
getOriginalBuildNumberin interfaceUpgradeVersionHistoryItem- 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
Description copied from interface:UpgradeVersionHistoryItemIf 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 be3.8, as it has a build number of209.- Specified by:
getTargetVersionin interfaceUpgradeVersionHistoryItem- Returns:
- the version of JIRA that corresponds to the target build number.
-
getOriginalVersion
- Specified by:
getOriginalVersionin interfaceUpgradeVersionHistoryItem- Returns:
- the previous version of JIRA before this upgrade.
-
isInferred
public boolean isInferred()- Specified by:
isInferredin interfaceUpgradeVersionHistoryItem- Returns:
- true if this was inferred from upgrade tasks; false otherwise
-
equals
-
hashCode
public int hashCode()
-