com.atlassian.jira.imports.project.util
Class ProjectImportTemporaryFilesImpl

java.lang.Object
  extended by com.atlassian.jira.imports.project.util.ProjectImportTemporaryFilesImpl
All Implemented Interfaces:
ProjectImportTemporaryFiles

public class ProjectImportTemporaryFilesImpl
extends Object
implements ProjectImportTemporaryFiles

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

Since:
v3.13

Constructor Summary
ProjectImportTemporaryFilesImpl(String projectKey)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectImportTemporaryFilesImpl

public ProjectImportTemporaryFilesImpl(String projectKey)
                                throws IOException
Throws:
IOException
Method Detail

getParentDirectory

public File getParentDirectory()
Description copied from interface: ProjectImportTemporaryFiles
Returns the temporary directory which is the parent of all the temporary partition files.

Specified by:
getParentDirectory in interface ProjectImportTemporaryFiles
Returns:
the temporary directory which is the parent of all the temporary partition files.

getIssuesXmlFile

public File getIssuesXmlFile()
Description copied from interface: ProjectImportTemporaryFiles
Returns the temporary XML partition file for Issues.

Specified by:
getIssuesXmlFile in interface ProjectImportTemporaryFiles
Returns:
the temporary XML partition file for Issues.

getCustomFieldValuesXmlFile

public File getCustomFieldValuesXmlFile()
Description copied from interface: ProjectImportTemporaryFiles
Returns the temporary XML partition file for CustomFields.

Specified by:
getCustomFieldValuesXmlFile in interface ProjectImportTemporaryFiles
Returns:
the temporary XML partition file for CustomFields.

getIssueRelatedEntitiesXmlFile

public File getIssueRelatedEntitiesXmlFile()
Description copied from interface: ProjectImportTemporaryFiles
Returns the temporary XML partition file for Issue related entities.

Specified by:
getIssueRelatedEntitiesXmlFile in interface ProjectImportTemporaryFiles
Returns:
the temporary XML partition file for Issue related entities.

getChangeItemEntitiesXmlFile

public File getChangeItemEntitiesXmlFile()
Description copied from interface: ProjectImportTemporaryFiles
Returns the temporary XML partition file for ChangeItems.

Specified by:
getChangeItemEntitiesXmlFile in interface ProjectImportTemporaryFiles
Returns:
the temporary XML partition file for ChangeItems.

getFileAttachmentEntitiesXmlFile

public File getFileAttachmentEntitiesXmlFile()
Description copied from interface: ProjectImportTemporaryFiles
Returns the temporary XML partition file for FileAttachments.

Specified by:
getFileAttachmentEntitiesXmlFile in interface ProjectImportTemporaryFiles
Returns:
the temporary XML partition file for FileAttachments.

deleteTempFiles

public void deleteTempFiles()
Description copied from interface: ProjectImportTemporaryFiles
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.

Specified by:
deleteTempFiles in interface ProjectImportTemporaryFiles


Copyright © 2002-2013 Atlassian. All Rights Reserved.