Class BackupProjectImpl
java.lang.Object
com.atlassian.jira.imports.project.core.BackupProjectImpl
- All Implemented Interfaces:
BackupProject
- Since:
- v3.13
-
Constructor Summary
ConstructorsConstructorDescriptionBackupProjectImpl
(ExternalProject project, List<ExternalVersion> versions, List<ExternalComponent> components, List<ExternalCustomFieldConfiguration> customFieldConfigurations, List<Long> issueIds, int maxSystemFieldTextLength, Map<String, Collection<Object>> additionalData) -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsIssue
(String id) boolean
getAdditionalData
(String key) Get additional data stored against this key.getCustomFieldConfiguration
(String customFieldId) Deprecated.getCustomFieldConfigurations
(String customFieldId) int
Get maximum length of text system fields found in this project.int
hashCode()
toString()
-
Constructor Details
-
BackupProjectImpl
public BackupProjectImpl(ExternalProject project, List<ExternalVersion> versions, List<ExternalComponent> components, List<ExternalCustomFieldConfiguration> customFieldConfigurations, List<Long> issueIds, int maxSystemFieldTextLength, Map<String, Collection<Object>> additionalData)
-
-
Method Details
-
getProject
- Specified by:
getProject
in interfaceBackupProject
- Returns:
- the
ExternalProject
that is represented in the XML backup.
-
getProjectVersions
- Specified by:
getProjectVersions
in interfaceBackupProject
- Returns:
- the
ExternalVersion
's that are associated with the project returned fromBackupProject.getProject()
.
-
getProjectComponents
- Specified by:
getProjectComponents
in interfaceBackupProject
- Returns:
- the
ExternalComponent
's that are associated with the project returned fromBackupProject.getProject()
.
-
getIssueIds
- Specified by:
getIssueIds
in interfaceBackupProject
- Returns:
- the issue id's that are associated with the project returned from
BackupProject.getProject()
.
-
getCustomFields
- Specified by:
getCustomFields
in interfaceBackupProject
- Returns:
- the
ExternalCustomFieldConfiguration
's that describe the custom fields and their configurations for this project.
-
getCustomFieldConfiguration
@Deprecated public ExternalCustomFieldConfiguration getCustomFieldConfiguration(String customFieldId) Deprecated.- Specified by:
getCustomFieldConfiguration
in interfaceBackupProject
- Parameters:
customFieldId
- the id of the custom field configuration to retrieve- Returns:
- the ExternalCustomFieldConfiguration for the custom field with the specified id, null if the project does not have the custom field with the id.
-
getCustomFieldConfigurations
public Collection<ExternalCustomFieldConfiguration> getCustomFieldConfigurations(String customFieldId) - Specified by:
getCustomFieldConfigurations
in interfaceBackupProject
- Parameters:
customFieldId
- the id of the custom field configuration to retrieve- Returns:
- the Collection of applicable ExternalCustomFieldConfiguration for the custom field with the specified id, empty collection if the project does not have the custom field with the id.
-
containsIssue
- Specified by:
containsIssue
in interfaceBackupProject
- Parameters:
id
- an issue id that can be converted to a Long- Returns:
- true if the backup project contains the issue, false otherwise.
-
getAdditionalData
Description copied from interface:BackupProject
Get additional data stored against this key.Plugins should namespace keys appropriately to ensure they can store data uniquely.
Plugins would typically store information about what configuration items are used and may be required by items that will be related.
For example: A Plugin that provides Test Planning, might store any Test Plans that are referenced by the issues being imported.
- Specified by:
getAdditionalData
in interfaceBackupProject
- Parameters:
key
- Key under which this data is stored.- Returns:
- Collection of data stored under this key.
-
getSystemFieldMaxTextLength
public int getSystemFieldMaxTextLength()Description copied from interface:BackupProject
Get maximum length of text system fields found in this project. Used to check if imported project does not exceed jira character limit setting.- Specified by:
getSystemFieldMaxTextLength
in interfaceBackupProject
- Returns:
- maximum length of issue description, environment, comment or text custom field or 0 if project is empty
-
toString
-
equals
-
hashCode
public int hashCode()
-