com.atlassian.jira.bc.dataimport
Interface ExportService

All Known Implementing Classes:
DefaultExportService

public interface ExportService

A service for the creation of JIRA XML backups.

Since:
v4.4

Nested Class Summary
static class ExportService.Style
           
 
Method Summary
 ServiceOutcome<Void> export(com.atlassian.crowd.embedded.api.User loggedInUser, String filename, ExportService.Style style, TaskProgressSink taskProgressSink)
          Export JIRA to the given filename with the specified backup style.
 ServiceOutcome<Void> export(com.atlassian.crowd.embedded.api.User loggedInUser, String filename, TaskProgressSink taskProgressSink)
          Export JIRA to the given filename.
 ServiceOutcome<Void> exportForDevelopment(com.atlassian.crowd.embedded.api.User loggedInUser, String xmlFilename, TaskProgressSink taskProgressSink)
          Export JIRA to the given filename.
 

Method Detail

export

ServiceOutcome<Void> export(com.atlassian.crowd.embedded.api.User 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
See Also:
{#ExportService.Style.NORMAL}

export

ServiceOutcome<Void> export(com.atlassian.crowd.embedded.api.User 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.

exportForDevelopment

ServiceOutcome<Void> exportForDevelopment(com.atlassian.crowd.embedded.api.User 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
See Also:
{#ExportService.Style.NORMAL}


Copyright © 2002-2012 Atlassian. All Rights Reserved.