com.atlassian.jira.imports.project.core
Class BackupProjectImpl

java.lang.Object
  extended by com.atlassian.jira.imports.project.core.BackupProjectImpl
All Implemented Interfaces:
BackupProject

public class BackupProjectImpl
extends Object
implements BackupProject

Since:
v3.13

Constructor Summary
BackupProjectImpl(ExternalProject project, List versions, List components, List customFieldConfigurations, List issueIds)
           
 
Method Summary
 boolean containsIssue(String id)
           
 boolean equals(Object o)
           
 ExternalCustomFieldConfiguration getCustomFieldConfiguration(String customFieldId)
           
 Collection getCustomFields()
           
 Collection getIssueIds()
           
 ExternalProject getProject()
           
 Collection getProjectComponents()
           
 Collection getProjectVersions()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BackupProjectImpl

public BackupProjectImpl(ExternalProject project,
                         List versions,
                         List components,
                         List customFieldConfigurations,
                         List issueIds)
Method Detail

getProject

public ExternalProject getProject()
Specified by:
getProject in interface BackupProject
Returns:
the ExternalProject that is represented in the XML backup.

getProjectVersions

public Collection getProjectVersions()
Specified by:
getProjectVersions in interface BackupProject
Returns:
the ExternalVersion's that are associated with the project returned from BackupProject.getProject().

getProjectComponents

public Collection getProjectComponents()
Specified by:
getProjectComponents in interface BackupProject
Returns:
the ExternalComponent's that are associated with the project returned from BackupProject.getProject().

getIssueIds

public Collection 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 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-2009 Atlassian. All Rights Reserved.