public class DefaultExportService extends Object implements ExportService
ExportService.Style| Modifier and Type | Field and Description |
|---|---|
static String |
ACTIVEOBJECTS_XML |
static String |
ENTITIES_XML |
| Constructor and Description |
|---|
DefaultExportService(org.ofbiz.core.entity.DelegatorInterface genericDelegator,
EntitiesExporter entitiesExporter,
I18nHelper.BeanFactory i18nFactory,
com.atlassian.event.api.EventPublisher eventPublisher,
JiraProperties jiraSystemProperties) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static final String ACTIVEOBJECTS_XML
public static final String ENTITIES_XML
public DefaultExportService(org.ofbiz.core.entity.DelegatorInterface genericDelegator,
EntitiesExporter entitiesExporter,
I18nHelper.BeanFactory i18nFactory,
com.atlassian.event.api.EventPublisher eventPublisher,
JiraProperties jiraSystemProperties)
public ServiceOutcome<Void> export(ApplicationUser loggedInUser, String filename, TaskProgressSink taskProgressSink)
ExportServiceexport in interface ExportServicefilename - destination zipfile for the backup{#ExportService.Style.NORMAL}public ServiceOutcome<Void> export(ApplicationUser loggedInUser, String filename, ExportService.Style style, TaskProgressSink taskProgressSink)
ExportServiceexport in interface ExportServicefilename - destination zipfile for the backupstyle - what time of backup we should perform.public ServiceOutcome<Void> exportForDevelopment(ApplicationUser loggedInUser, String xmlFilename, TaskProgressSink taskProgressSink)
ExportServiceexportForDevelopment in interface ExportServicexmlFilename - destination xmlfile for the backup{#ExportService.Style.NORMAL}protected com.atlassian.activeobjects.spi.Backup getActiveObjectsBackup()
protected org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream getZipOutputStream(String filename) throws IOException
IOExceptionprotected OutputStream getXmlOutputStream(String filename) throws IOException
IOExceptionCopyright © 2002-2023 Atlassian. All Rights Reserved.