com.atlassian.jira.imports.project.core
Class ProjectImportOptionsImpl

java.lang.Object
  extended by com.atlassian.jira.imports.project.core.ProjectImportOptionsImpl
All Implemented Interfaces:
ProjectImportOptions

public class ProjectImportOptionsImpl
extends Object
implements ProjectImportOptions

Since:
v3.13

Constructor Summary
ProjectImportOptionsImpl(String pathToBackupXml, String attachmentPath)
           
ProjectImportOptionsImpl(String pathToBackupXml, String attachmentPath, boolean overwriteProjectDetails)
           
 
Method Summary
 String getAttachmentPath()
          Specifies the path, on disk on the server, to the directory that will contain the attachments for the project data that will be restored.
 String getPathToBackupXml()
          Specifies the path, on disk on the server, to the backup XML data file that will contain the project data that will be restored.
 String getSelectedProjectKey()
          The project key that the user has chosen to import.
 boolean overwriteProjectDetails()
          A boolean that indicates if the user wants the existing JIRA project, which is being imported into, to have its project details (name, lead, etc) over-written by the backup projects data.
 void setOverwriteProjectDetails(boolean overwriteProjectDetails)
           
 void setSelectedProjectKey(String selectedProjectKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectImportOptionsImpl

public ProjectImportOptionsImpl(String pathToBackupXml,
                                String attachmentPath)

ProjectImportOptionsImpl

public ProjectImportOptionsImpl(String pathToBackupXml,
                                String attachmentPath,
                                boolean overwriteProjectDetails)
Method Detail

getPathToBackupXml

public String getPathToBackupXml()
Description copied from interface: ProjectImportOptions
Specifies the path, on disk on the server, to the backup XML data file that will contain the project data that will be restored.

Specified by:
getPathToBackupXml in interface ProjectImportOptions
Returns:
the file path on disk to the backup XML file.

getAttachmentPath

public String getAttachmentPath()
Description copied from interface: ProjectImportOptions
Specifies the path, on disk on the server, to the directory that will contain the attachments for the project data that will be restored.

Specified by:
getAttachmentPath in interface ProjectImportOptions
Returns:
the file path on disk to the attachments directory.

overwriteProjectDetails

public boolean overwriteProjectDetails()
Description copied from interface: ProjectImportOptions
A boolean that indicates if the user wants the existing JIRA project, which is being imported into, to have its project details (name, lead, etc) over-written by the backup projects data. NOTE: If the project does not yet exist the importer will work as if this value is set to true, no matter what the value really is.

Specified by:
overwriteProjectDetails in interface ProjectImportOptions
Returns:
true if we want to overwrite the project details, false otherwise

setOverwriteProjectDetails

public void setOverwriteProjectDetails(boolean overwriteProjectDetails)

getSelectedProjectKey

public String getSelectedProjectKey()
Description copied from interface: ProjectImportOptions
The project key that the user has chosen to import.

Specified by:
getSelectedProjectKey in interface ProjectImportOptions
Returns:
project key that the user has chosen to import.

setSelectedProjectKey

public void setSelectedProjectKey(String selectedProjectKey)


Copyright © 2002-2013 Atlassian. All Rights Reserved.