Class BackupSystemInformationImpl
java.lang.Object
com.atlassian.jira.imports.project.core.BackupSystemInformationImpl
- All Implemented Interfaces:
BackupSystemInformation
,Serializable
- Since:
- v3.13
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBackupSystemInformationImpl
(String buildNumber, String edition, List<PluginVersion> pluginVersions, boolean unassignedIssuesAllowed, Map<String, String> issueIdToKeyMap, Set<String> entities, int entityCount) -
Method Summary
Modifier and TypeMethodDescriptionReturns the JIRA build number the backup came from.Returns the JIRA edition the backup came from.int
Returns the number of entities in the backup file.Returns the types of entities represented in the backup file.getIssueKeyForId
(String issueId) Will get the issue key provided the issue id for any issue that existed in the backup file.Gets all thePluginVersion
's contained in the backup.toString()
boolean
Returnstrue
if unassigned issues are allowed in the backup file.
-
Constructor Details
-
BackupSystemInformationImpl
-
-
Method Details
-
getBuildNumber
Description copied from interface:BackupSystemInformation
Returns the JIRA build number the backup came from.- Specified by:
getBuildNumber
in interfaceBackupSystemInformation
- Returns:
- string representing the JIRA build number. It is safe to construct a number object with this string.
-
getEdition
Description copied from interface:BackupSystemInformation
Returns the JIRA edition the backup came from.- Specified by:
getEdition
in interfaceBackupSystemInformation
- Returns:
- string representing the JIRA edition, 'Enterprise', 'Professional', or 'Standard'
-
getPluginVersions
Description copied from interface:BackupSystemInformation
Gets all thePluginVersion
's contained in the backup.- Specified by:
getPluginVersions
in interfaceBackupSystemInformation
- Returns:
- List of
PluginVersion
's.
-
unassignedIssuesAllowed
public boolean unassignedIssuesAllowed()Description copied from interface:BackupSystemInformation
Returnstrue
if unassigned issues are allowed in the backup file.- Specified by:
unassignedIssuesAllowed
in interfaceBackupSystemInformation
- Returns:
true
if unassigned issues are allowed in the backup file.
-
getIssueKeyForId
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 interfaceBackupSystemInformation
- 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 interfaceBackupSystemInformation
- Returns:
- the number of entities in the backup file.
-
getEntityTypes
Description copied from interface:BackupSystemInformation
Returns the types of entities represented in the backup file.- Specified by:
getEntityTypes
in interfaceBackupSystemInformation
- Returns:
- the types of entities represented in the backup file.
-
toString
-