public interface

ProjectImportData

com.atlassian.jira.imports.project.core.ProjectImportData
Known Indirect Subclasses

Class Overview

Stores project specific data that is used to make the import happen. Provides the project import mapper and the paths, on disk, to the partitioned XML files that contain the backup projects data.

Summary

Public Methods
int getChangeItemEntityCount()
int getCustomFieldValuesEntityCount()
int getFileAttachmentEntityCount()
int getIssueEntityCount()
int getIssueRelatedEntityCount()
String getPathToChangeItemXml()
The path to the partitioned XML file for the projects change item entities.
String getPathToCustomFieldValuesXml()
The path to the partitioned XML file for the projects custom field values.
String getPathToFileAttachmentXml()
The path to the partitioned XML file for the projects issue file attachment entities.
String getPathToIssueRelatedEntitiesXml()
The path to the partitioned XML file for the projects issue related entities.
String getPathToIssuesXml()
The path to the partitioned XML file for the projects issue entities.
ProjectImportMapper getProjectImportMapper()
The central object used to map all the data the backup project contains.
ProjectImportTemporaryFiles getTemporaryFiles()
Returns the ProjectImportTemporaryFiles containing the path to the Project Import's temporary directory and all the partitioned XML files.
int getValidAttachmentsCount()
Gets the count of the number of valid attachments the import will try to create.
void setValidAttachmentsCount(int validAttachmentCount)
Sets the count of the number of valid attachments the import will try to create.

Public Methods

public int getChangeItemEntityCount ()

Returns
  • The count of the number of change item values that are stored in the change item XML file.

public int getCustomFieldValuesEntityCount ()

Returns
  • The count of the number of custom field values that are stored in the custom field values XML file.

public int getFileAttachmentEntityCount ()

Returns
  • The count of the number of file attachment values that are stored in the attachment XML file.

public int getIssueEntityCount ()

Returns
  • The count of the number of issues that are stored in the issue XML file.

public int getIssueRelatedEntityCount ()

Returns
  • The count of the number of issue related values that are stored in the issue related XML file.

public String getPathToChangeItemXml ()

The path to the partitioned XML file for the projects change item entities.

Returns
  • path to the partitioned XML file for the projects change item entities.

public String getPathToCustomFieldValuesXml ()

The path to the partitioned XML file for the projects custom field values.

Returns
  • path to the partitioned XML file for the projects custom field values.

public String getPathToFileAttachmentXml ()

The path to the partitioned XML file for the projects issue file attachment entities.

Returns
  • path to the partitioned XML file for the projects issue file attachment entities. This can be null if the user has chosen not to specify an attachment directory.

public String getPathToIssueRelatedEntitiesXml ()

The path to the partitioned XML file for the projects issue related entities.

Returns
  • path to the partitioned XML file for the projects issue related entities.

public String getPathToIssuesXml ()

The path to the partitioned XML file for the projects issue entities.

Returns
  • path to the partitioned XML file for the projects issue entities.

public ProjectImportMapper getProjectImportMapper ()

The central object used to map all the data the backup project contains.

Returns
  • object used to map all the data the backup project contains.

public ProjectImportTemporaryFiles getTemporaryFiles ()

Returns the ProjectImportTemporaryFiles containing the path to the Project Import's temporary directory and all the partitioned XML files.

Returns
  • the ProjectImportTemporaryFiles containing the path to the Project Import's temporary directory and all the partitioned XML files.

public int getValidAttachmentsCount ()

Gets the count of the number of valid attachments the import will try to create.

Returns
  • the count of the number of valid attachments the import will try to create.

public void setValidAttachmentsCount (int validAttachmentCount)

Sets the count of the number of valid attachments the import will try to create.

Parameters
validAttachmentCount the count of the number of valid attachments the import will try to create.