com.atlassian.jira.bean.export
Class AutoExportImpl

java.lang.Object
  extended bycom.atlassian.jira.bean.export.AutoExportImpl
All Implemented Interfaces:
AutoExport

public class AutoExportImpl
extends java.lang.Object
implements AutoExport

This class will determine the best possible location (if any)and export all the existing data to the chosen location


Field Summary
 
Fields inherited from interface com.atlassian.jira.bean.export.AutoExport
BASE_FILE_NAME, FIX_INVALID_XML_CHARACTERS
 
Constructor Summary
AutoExportImpl(java.lang.String defaultDir)
           
 
Method Summary
 java.lang.String exportData()
          Attempts to choose the best location for export and exports the existing data This method tries to export to backup path, then to index path and the to the value of the "javax.servlet.context.tempdir" property of the passed in ServletContext
 java.lang.String getExportFilePath()
           
protected  boolean isValidDirectory(java.lang.String filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoExportImpl

public AutoExportImpl(java.lang.String defaultDir)
Method Detail

exportData

public java.lang.String exportData()
                            throws java.io.FileNotFoundException,
                                   FileExistsException,
                                   IllegalXMLCharactersException,
                                   java.lang.Exception
Attempts to choose the best location for export and exports the existing data This method tries to export to backup path, then to index path and the to the value of the "javax.servlet.context.tempdir" property of the passed in ServletContext

Specified by:
exportData in interface AutoExport
Returns:
the list of errors that occured duing the export
Throws:
java.io.FileNotFoundException
FileExistsException
IllegalXMLCharactersException
java.lang.Exception

getExportFilePath

public java.lang.String getExportFilePath()
                                   throws java.io.FileNotFoundException,
                                          FileExistsException
Specified by:
getExportFilePath in interface AutoExport
Throws:
java.io.FileNotFoundException
FileExistsException

isValidDirectory

protected boolean isValidDirectory(java.lang.String filename)


Copyright © 2002-2005 Atlassian. All Rights Reserved.