com.atlassian.jira.imports.project.core
Class BackupProjectImpl
java.lang.Object
com.atlassian.jira.imports.project.core.BackupProjectImpl
- All Implemented Interfaces:
- BackupProject
public class BackupProjectImpl
- extends Object
- implements BackupProject
- Since:
- v3.13
BackupProjectImpl
public BackupProjectImpl(ExternalProject project,
List<ExternalVersion> versions,
List<ExternalComponent> components,
List<ExternalCustomFieldConfiguration> customFieldConfigurations,
List<Long> issueIds)
getProject
public ExternalProject getProject()
- Specified by:
getProject in interface BackupProject
- Returns:
- the
ExternalProject that is represented in the XML backup.
getProjectVersions
public Collection<ExternalVersion> getProjectVersions()
- Specified by:
getProjectVersions in interface BackupProject
- Returns:
- the
ExternalVersion's that are associated with the project
returned from BackupProject.getProject().
getProjectComponents
public Collection<ExternalComponent> getProjectComponents()
- Specified by:
getProjectComponents in interface BackupProject
- Returns:
- the
ExternalComponent's that are associated with the project
returned from BackupProject.getProject().
getIssueIds
public Collection<Long> getIssueIds()
- Specified by:
getIssueIds in interface BackupProject
- Returns:
- the issue id's that are associated with the project returned from
BackupProject.getProject().
getCustomFields
public Collection<ExternalCustomFieldConfiguration> getCustomFields()
- Specified by:
getCustomFields in interface BackupProject
- Returns:
- the
ExternalCustomFieldConfiguration's that
describe the custom fields and their configurations for this project.
getCustomFieldConfiguration
public ExternalCustomFieldConfiguration getCustomFieldConfiguration(String customFieldId)
- Specified by:
getCustomFieldConfiguration in interface BackupProject
- 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.
containsIssue
public boolean containsIssue(String id)
- Specified by:
containsIssue in interface BackupProject
- Parameters:
id - an issue id that can be converted to a Long
- Returns:
- true if the backup project contains the issue, false otherwise.
toString
public String toString()
- Overrides:
toString in class Object
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2002-2012 Atlassian. All Rights Reserved.