public class BackupProjectImpl extends Object implements BackupProject
| Constructor and Description |
|---|
BackupProjectImpl(ExternalProject project,
List<ExternalVersion> versions,
List<ExternalComponent> components,
List<ExternalCustomFieldConfiguration> customFieldConfigurations,
List<Long> issueIds,
int maxSystemFieldTextLength,
Map<String,Collection<Object>> additionalData) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsIssue(String id) |
boolean |
equals(Object o) |
Collection<Object> |
getAdditionalData(String key)
Get additional data stored against this key.
|
ExternalCustomFieldConfiguration |
getCustomFieldConfiguration(String customFieldId)
Deprecated.
|
Collection<ExternalCustomFieldConfiguration> |
getCustomFieldConfigurations(String customFieldId) |
Collection<ExternalCustomFieldConfiguration> |
getCustomFields() |
Collection<Long> |
getIssueIds() |
ExternalProject |
getProject() |
Collection<ExternalComponent> |
getProjectComponents() |
Collection<ExternalVersion> |
getProjectVersions() |
int |
getSystemFieldMaxTextLength()
Get maximum length of text system fields found in this project.
|
int |
hashCode() |
String |
toString() |
public BackupProjectImpl(ExternalProject project, List<ExternalVersion> versions, List<ExternalComponent> components, List<ExternalCustomFieldConfiguration> customFieldConfigurations, List<Long> issueIds, int maxSystemFieldTextLength, Map<String,Collection<Object>> additionalData)
public ExternalProject getProject()
getProject in interface BackupProjectExternalProject that is represented in the XML backup.public Collection<ExternalVersion> getProjectVersions()
getProjectVersions in interface BackupProjectExternalVersion's that are associated with the project
returned from BackupProject.getProject().public Collection<ExternalComponent> getProjectComponents()
getProjectComponents in interface BackupProjectExternalComponent's that are associated with the project
returned from BackupProject.getProject().public Collection<Long> getIssueIds()
getIssueIds in interface BackupProjectBackupProject.getProject().public Collection<ExternalCustomFieldConfiguration> getCustomFields()
getCustomFields in interface BackupProjectExternalCustomFieldConfiguration's that
describe the custom fields and their configurations for this project.@Deprecated public ExternalCustomFieldConfiguration getCustomFieldConfiguration(String customFieldId)
getCustomFieldConfiguration in interface BackupProjectcustomFieldId - the id of the custom field configuration to retrievepublic Collection<ExternalCustomFieldConfiguration> getCustomFieldConfigurations(String customFieldId)
getCustomFieldConfigurations in interface BackupProjectcustomFieldId - the id of the custom field configuration to retrievepublic boolean containsIssue(String id)
containsIssue in interface BackupProjectid - an issue id that can be converted to a Longpublic Collection<Object> getAdditionalData(String key)
BackupProjectPlugins 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.
getAdditionalData in interface BackupProjectkey - Key under which this data is stored.public int getSystemFieldMaxTextLength()
BackupProjectgetSystemFieldMaxTextLength in interface BackupProjectCopyright © 2002-2021 Atlassian. All Rights Reserved.