Package com.atlassian.jira.bc.dataimport
Class DefaultExportService
java.lang.Object
com.atlassian.jira.bc.dataimport.DefaultExportService
- All Implemented Interfaces:
ExportService
- Since:
- v4.4
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.bc.dataimport.ExportService
ExportService.Style
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultExportService
(org.ofbiz.core.entity.DelegatorInterface genericDelegator, EntitiesExporter entitiesExporter, I18nHelper.BeanFactory i18nFactory, com.atlassian.event.api.EventPublisher eventPublisher, JiraProperties jiraSystemProperties, BackupPathProvider backupPathProvider, BackupFileStoreProvider backupFileStoreProvider, FileStores fileStores) -
Method Summary
Modifier and TypeMethodDescriptionexport
(ApplicationUser loggedInUser, String filename, ExportService.Style style, TaskProgressSink taskProgressSink) Export JIRA to the given filename with the specified backup style.export
(ApplicationUser loggedInUser, String filename, TaskProgressSink taskProgressSink) Export JIRA to the given filename.exportForDevelopment
(ApplicationUser loggedInUser, String xmlFilename, TaskProgressSink taskProgressSink) Export JIRA to the given filename.protected com.atlassian.activeobjects.spi.Backup
protected OutputStream
getXmlOutputStream
(String filename) protected org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream
getZipOutputStream
(String filename)
-
Field Details
-
ACTIVEOBJECTS_XML
- See Also:
-
ENTITIES_XML
- See Also:
-
-
Constructor Details
-
DefaultExportService
public DefaultExportService(org.ofbiz.core.entity.DelegatorInterface genericDelegator, EntitiesExporter entitiesExporter, I18nHelper.BeanFactory i18nFactory, com.atlassian.event.api.EventPublisher eventPublisher, JiraProperties jiraSystemProperties, BackupPathProvider backupPathProvider, BackupFileStoreProvider backupFileStoreProvider, FileStores fileStores)
-
-
Method Details
-
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 interfaceExportService
- Parameters:
filename
- destination zipfile for the backup
-
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 interfaceExportService
- Parameters:
filename
- destination zipfile for the backupstyle
- 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 interfaceExportService
- Parameters:
xmlFilename
- destination xmlfile for the backup
-
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
- Throws:
IOException
-