public class

DefaultExportService

extends Object
implements ExportService
java.lang.Object
   ↳ com.atlassian.jira.bc.dataimport.DefaultExportService

Summary

Constants
String ACTIVEOBJECTS_XML
String ENTITIES_XML
Public Constructors
DefaultExportService(DelegatorInterface genericDelegator, EntitiesExporter entitiesExporter, I18nHelper.BeanFactory i18nFactory, EventPublisher eventPublisher, JiraProperties jiraSystemProperties, FeatureManager featureManager)
Public Methods
ServiceOutcome<Void> export(ApplicationUser loggedInUser, String filename, ExportService.Style style, TaskProgressSink taskProgressSink)
Export JIRA to the given filename with the specified backup style.
ServiceOutcome<Void> export(ApplicationUser loggedInUser, String filename, TaskProgressSink taskProgressSink)
Export JIRA to the given filename.
ServiceOutcome<Void> exportForDevelopment(ApplicationUser loggedInUser, String xmlFilename, TaskProgressSink taskProgressSink)
Export JIRA to the given filename.
Protected Methods
Backup getActiveObjectsBackup()
OutputStream getXmlOutputStream(String filename)
ZipArchiveOutputStream getZipOutputStream(String filename)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.bc.dataimport.ExportService

Constants

public static final String ACTIVEOBJECTS_XML

Constant Value: "activeobjects.xml"

public static final String ENTITIES_XML

Constant Value: "entities.xml"

Public Constructors

public DefaultExportService (DelegatorInterface genericDelegator, EntitiesExporter entitiesExporter, I18nHelper.BeanFactory i18nFactory, EventPublisher eventPublisher, JiraProperties jiraSystemProperties, FeatureManager featureManager)

Public Methods

public ServiceOutcome<Void> export (ApplicationUser loggedInUser, String filename, ExportService.Style style, TaskProgressSink taskProgressSink)

Export JIRA to the given filename with the specified backup style. It will be a zip file, no matter what suffix you give it. Inside the zip file will be the JIRA XML and the ActiveObjects XML.

Parameters
filename destination zipfile for the backup
style what time of backup we should perform.

public ServiceOutcome<Void> export (ApplicationUser loggedInUser, String filename, TaskProgressSink taskProgressSink)

Export JIRA to the given filename. It will be a zip file, no matter what suffix you give it. Inside the zip file will be the JIRA XML and the ActiveObjects XML. This will use the NORMAL style.

Parameters
filename destination zipfile for the backup

public ServiceOutcome<Void> exportForDevelopment (ApplicationUser loggedInUser, String xmlFilename, TaskProgressSink taskProgressSink)

Export JIRA to the given filename. Only a JIRA XML file will be created, This will use the NORMAL style.

Parameters
xmlFilename destination xmlfile for the backup

Protected Methods

protected Backup getActiveObjectsBackup ()

protected OutputStream getXmlOutputStream (String filename)

Throws
IOException

protected ZipArchiveOutputStream getZipOutputStream (String filename)

Throws
IOException