com.atlassian.jira.bc.dataimport
Class DefaultExportService
java.lang.Object
com.atlassian.jira.bc.dataimport.DefaultExportService
- All Implemented Interfaces:
- ExportService
public class DefaultExportService
- extends Object
- implements ExportService
- Since:
- v4.4
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DefaultExportService
public DefaultExportService(org.ofbiz.core.entity.DelegatorInterface genericDelegator,
EntitiesExporter entitiesExporter,
I18nHelper.BeanFactory i18nFactory,
com.atlassian.event.api.EventPublisher eventPublisher)
export
public ServiceOutcome<Void> export(com.atlassian.crowd.embedded.api.User 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(com.atlassian.crowd.embedded.api.User 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 backupstyle
- what time of backup we should perform.
exportForDevelopment
public ServiceOutcome<Void> exportForDevelopment(com.atlassian.crowd.embedded.api.User 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 ZipOutputStream getZipOutputStream(String filename)
throws IOException
- Throws:
IOException
getXmlOutputStream
protected OutputStream getXmlOutputStream(String filename)
throws IOException
- Throws:
IOException
Copyright © 2002-2012 Atlassian. All Rights Reserved.