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 Object
implements BackupSystemInformation

Since:
v3.13

Constructor Summary
BackupSystemInformationImpl(String buildNumber, String edition, List pluginVersions, boolean unassignedIssuesAllowed, Map issueIdToKeyMap, int entityCount)
           
 
Method Summary
 String getBuildNumber()
          Returns the JIRA build number the backup came from.
 String getEdition()
          Returns the JIRA edition the backup came from.
 int getEntityCount()
          Returns the number of entities in the backup file.
 String getIssueKeyForId(String issueId)
          Will get the issue key provided the issue id for any issue that existed in the backup file.
 List getPluginVersions()
          Gets all the PluginVersion's contained in the backup.
 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(String buildNumber,
                                   String edition,
                                   List pluginVersions,
                                   boolean unassignedIssuesAllowed,
                                   Map issueIdToKeyMap,
                                   int entityCount)
Method Detail

getBuildNumber

public 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 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 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 String getIssueKeyForId(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 String toString()
Overrides:
toString in class Object


Copyright © 2002-2012 Atlassian. All Rights Reserved.