com.atlassian.jira.imports.project.core
Interface BackupProject

All Known Implementing Classes:
BackupProjectImpl

public interface BackupProject

Represents information about a single project gleaned from an XML backup.

Since:
v3.13

Method Summary
 boolean containsIssue(java.lang.String id)
           
 ExternalCustomFieldConfiguration getCustomFieldConfiguration(java.lang.String customFieldId)
           
 java.util.Collection<ExternalCustomFieldConfiguration> getCustomFields()
           
 java.util.Collection<java.lang.Long> getIssueIds()
           
 ExternalProject getProject()
           
 java.util.Collection<ExternalComponent> getProjectComponents()
           
 java.util.Collection<ExternalVersion> getProjectVersions()
           
 

Method Detail

getProject

ExternalProject getProject()
Returns:
the ExternalProject that is represented in the XML backup.

getProjectVersions

java.util.Collection<ExternalVersion> getProjectVersions()
Returns:
the ExternalVersion's that are associated with the project returned from getProject().

getProjectComponents

java.util.Collection<ExternalComponent> getProjectComponents()
Returns:
the ExternalComponent's that are associated with the project returned from getProject().

getIssueIds

java.util.Collection<java.lang.Long> getIssueIds()
Returns:
the issue id's that are associated with the project returned from getProject().

getCustomFields

java.util.Collection<ExternalCustomFieldConfiguration> getCustomFields()
Returns:
the ExternalCustomFieldConfiguration's that describe the custom fields and their configurations for this project.

getCustomFieldConfiguration

ExternalCustomFieldConfiguration getCustomFieldConfiguration(java.lang.String customFieldId)
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

boolean containsIssue(java.lang.String id)
Parameters:
id - an issue id that can be converted to a Long
Returns:
true if the backup project contains the issue, false otherwise.


Copyright © 2002-2010 Atlassian. All Rights Reserved.