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()
int getNonIssueEntityCount()
String getPathToEntityXml(String entityName)
The path to the partitioned XML file for the specified entity.
ProjectImportMapper getProjectImportMapper()
The central object used to map all the data the backup project contains.
AoImportTemporaryFiles getTemporaryAoFiles()
Returns the ProjectImportTemporaryFiles containing the path to the Project Import's temporary directory and all the partitioned XML files.
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 int getNonIssueEntityCount ()

public String getPathToEntityXml (String entityName)

The path to the partitioned XML file for the specified entity.

Returns
  • path to the partitioned XML file for the specified entity.

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 AoImportTemporaryFiles getTemporaryAoFiles ()

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 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.