com.atlassian.jira.bc.dataimport
Class DefaultExportService

java.lang.Object
  extended by com.atlassian.jira.bc.dataimport.DefaultExportService
All Implemented Interfaces:
ExportService

public class DefaultExportService
extends Object
implements ExportService

Since:
v4.4

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.bc.dataimport.ExportService
ExportService.Style
 
Field Summary
static String ACTIVEOBJECTS_XML
           
static String ENTITIES_XML
           
 
Constructor Summary
DefaultExportService(org.ofbiz.core.entity.DelegatorInterface genericDelegator, EntitiesExporter entitiesExporter, I18nHelper.BeanFactory i18nFactory, com.atlassian.event.api.EventPublisher eventPublisher, JiraProperties jiraSystemProperties)
           
 
Method Summary
 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  com.atlassian.activeobjects.spi.Backup getActiveObjectsBackup()
           
protected  OutputStream getXmlOutputStream(String filename)
           
protected  org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream getZipOutputStream(String filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTIVEOBJECTS_XML

public static final String ACTIVEOBJECTS_XML
See Also:
Constant Field Values

ENTITIES_XML

public static final String ENTITIES_XML
See Also:
Constant Field Values
Constructor Detail

DefaultExportService

public DefaultExportService(org.ofbiz.core.entity.DelegatorInterface genericDelegator,
                            EntitiesExporter entitiesExporter,
                            I18nHelper.BeanFactory i18nFactory,
                            com.atlassian.event.api.EventPublisher eventPublisher,
                            JiraProperties jiraSystemProperties)
Method Detail

export

public ServiceOutcome<Void> export(ApplicationUser loggedInUser,
                                   String filename,
                                   TaskProgressSink taskProgressSink)
Description copied from interface: ExportService
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.

Specified by:
export in interface ExportService
filename - destination zipfile for the backup
See Also:
{#ExportService.Style.NORMAL}

export

public ServiceOutcome<Void> export(ApplicationUser loggedInUser,
                                   String filename,
                                   ExportService.Style style,
                                   TaskProgressSink taskProgressSink)
Description copied from interface: ExportService
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.

Specified by:
export in interface ExportService
filename - destination zipfile for the backup
style - what time of backup we should perform.

exportForDevelopment

public ServiceOutcome<Void> exportForDevelopment(ApplicationUser loggedInUser,
                                                 String xmlFilename,
                                                 TaskProgressSink taskProgressSink)
Description copied from interface: ExportService
Export JIRA to the given filename. Only a JIRA XML file will be created, This will use the NORMAL style.

Specified by:
exportForDevelopment in interface ExportService
xmlFilename - destination xmlfile for the backup
See Also:
{#ExportService.Style.NORMAL}

getActiveObjectsBackup

protected com.atlassian.activeobjects.spi.Backup getActiveObjectsBackup()

getZipOutputStream

protected org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream getZipOutputStream(String filename)
                                                                                       throws IOException
Throws:
IOException

getXmlOutputStream

protected OutputStream getXmlOutputStream(String filename)
                                   throws IOException
Throws:
IOException


Copyright © 2002-2015 Atlassian. All Rights Reserved.