public class

ProjectImportTemporaryFilesImpl

extends Object
implements ProjectImportTemporaryFiles
java.lang.Object
   ↳ com.atlassian.jira.imports.project.util.ProjectImportTemporaryFilesImpl

Class Overview

Single class to hold the paths to the Tempory XML partition files, and their temporary parent directory.

Summary

Public Constructors
ProjectImportTemporaryFilesImpl(String projectKey)
Public Methods
void deleteTempFiles()
Deletes the temporary files held in this object.
File getChangeItemEntitiesXmlFile()
Returns the temporary XML partition file for ChangeItems.
File getCustomFieldValuesXmlFile()
Returns the temporary XML partition file for CustomFields.
File getFileAttachmentEntitiesXmlFile()
Returns the temporary XML partition file for FileAttachments.
File getIssueRelatedEntitiesXmlFile()
Returns the temporary XML partition file for Issue related entities.
File getIssuesXmlFile()
Returns the temporary XML partition file for Issues.
File getParentDirectory()
Returns the temporary directory which is the parent of all the temporary partition files.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.imports.project.util.ProjectImportTemporaryFiles

Public Constructors

public ProjectImportTemporaryFilesImpl (String projectKey)

Throws
IOException

Public Methods

public void deleteTempFiles ()

Deletes the temporary files held in this object. It is safe to call this method twice as it will check if the files actually exist first.

public File getChangeItemEntitiesXmlFile ()

Returns the temporary XML partition file for ChangeItems.

Returns
  • the temporary XML partition file for ChangeItems.

public File getCustomFieldValuesXmlFile ()

Returns the temporary XML partition file for CustomFields.

Returns
  • the temporary XML partition file for CustomFields.

public File getFileAttachmentEntitiesXmlFile ()

Returns the temporary XML partition file for FileAttachments.

Returns
  • the temporary XML partition file for FileAttachments.

public File getIssueRelatedEntitiesXmlFile ()

Returns the temporary XML partition file for Issue related entities.

Returns
  • the temporary XML partition file for Issue related entities.

public File getIssuesXmlFile ()

Returns the temporary XML partition file for Issues.

Returns
  • the temporary XML partition file for Issues.

public File getParentDirectory ()

Returns the temporary directory which is the parent of all the temporary partition files.

Returns
  • the temporary directory which is the parent of all the temporary partition files.