com.atlassian.jira.imports.project.core
Class BackupSystemInformationImpl

java.lang.Object
  extended by com.atlassian.jira.imports.project.core.BackupSystemInformationImpl
All Implemented Interfaces:
BackupSystemInformation

public class BackupSystemInformationImpl
extends java.lang.Object
implements BackupSystemInformation

Since:
v3.13

Constructor Summary
BackupSystemInformationImpl(java.lang.String buildNumber, java.lang.String edition, java.util.List pluginVersions, boolean unassignedIssuesAllowed, java.util.Map issueIdToKeyMap, int entityCount)
           
 
Method Summary
 java.lang.String getBuildNumber()
          Returns the JIRA build number the backup came from.
 java.lang.String getEdition()
          Returns the JIRA edition the backup came from.
 int getEntityCount()
          Returns the number of entities in the backup file.
 java.lang.String getIssueKeyForId(java.lang.String issueId)
          Will get the issue key provided the issue id for any issue that existed in the backup file.
 java.util.List getPluginVersions()
          Gets all the PluginVersion's contained in the backup.
 java.lang.String toString()
           
 boolean unassignedIssuesAllowed()
          Returns true if unassigned issues are allowed in the backup file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BackupSystemInformationImpl

public BackupSystemInformationImpl(java.lang.String buildNumber,
                                   java.lang.String edition,
                                   java.util.List pluginVersions,
                                   boolean unassignedIssuesAllowed,
                                   java.util.Map issueIdToKeyMap,
                                   int entityCount)
Method Detail

getBuildNumber

public java.lang.String getBuildNumber()
Description copied from interface: BackupSystemInformation
Returns the JIRA build number the backup came from.

Specified by:
getBuildNumber in interface BackupSystemInformation
Returns:
string representing the JIRA build number. It is safe to construct a number object with this string.

getEdition

public java.lang.String getEdition()
Description copied from interface: BackupSystemInformation
Returns the JIRA edition the backup came from.

Specified by:
getEdition in interface BackupSystemInformation
Returns:
string representing the JIRA edition, 'Enterprise', 'Professional', or 'Standard'

getPluginVersions

public java.util.List getPluginVersions()
Description copied from interface: BackupSystemInformation
Gets all the PluginVersion's contained in the backup.

Specified by:
getPluginVersions in interface BackupSystemInformation
Returns:
List of PluginVersion's.

unassignedIssuesAllowed

public boolean unassignedIssuesAllowed()
Description copied from interface: BackupSystemInformation
Returns true if unassigned issues are allowed in the backup file.

Specified by:
unassignedIssuesAllowed in interface BackupSystemInformation
Returns:
true if unassigned issues are allowed in the backup file.

getIssueKeyForId

public java.lang.String getIssueKeyForId(java.lang.String issueId)
Description copied from interface: BackupSystemInformation
Will get the issue key provided the issue id for any issue that existed in the backup file.

Specified by:
getIssueKeyForId in interface BackupSystemInformation
Parameters:
issueId - string representation of the issue id long.
Returns:
the issue key (i.e. TST-12) if the issue with the provided id existed in the backup file, null otherwise.

getEntityCount

public int getEntityCount()
Description copied from interface: BackupSystemInformation
Returns the number of entities in the backup file.

Specified by:
getEntityCount in interface BackupSystemInformation
Returns:
the number of entities in the backup file.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2002-2010 Atlassian. All Rights Reserved.