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) |
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 BackupProject
ExternalProject
that is represented in the XML backup.public Collection<ExternalVersion> getProjectVersions()
getProjectVersions
in interface BackupProject
ExternalVersion
's that are associated with the project
returned from BackupProject.getProject()
.public Collection<ExternalComponent> getProjectComponents()
getProjectComponents
in interface BackupProject
ExternalComponent
's that are associated with the project
returned from BackupProject.getProject()
.public Collection<Long> getIssueIds()
getIssueIds
in interface BackupProject
BackupProject.getProject()
.public Collection<ExternalCustomFieldConfiguration> getCustomFields()
getCustomFields
in interface BackupProject
ExternalCustomFieldConfiguration
's that
describe the custom fields and their configurations for this project.public ExternalCustomFieldConfiguration getCustomFieldConfiguration(String customFieldId)
getCustomFieldConfiguration
in interface BackupProject
customFieldId
- the id of the custom field configuration to retrievepublic boolean containsIssue(String id)
containsIssue
in interface BackupProject
id
- an issue id that can be converted to a Longpublic Collection<Object> getAdditionalData(String key)
BackupProject
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.
getAdditionalData
in interface BackupProject
key
- Key under which this data is stored.public int getSystemFieldMaxTextLength()
BackupProject
getSystemFieldMaxTextLength
in interface BackupProject
Copyright © 2002-2015 Atlassian. All Rights Reserved.