@Manager public class DefaultAppImportExportManager extends Object implements AppImportExportManager
Constructor and Description |
---|
DefaultAppImportExportManager(AppImporter appImporter,
AppExporter appExporter,
AppReaderService appReaderService,
AppWriterFactory writerFactory,
ProcessImporter processImporter,
TimeProvider timeProvider,
AmbiguousIdHelper ambiguousIdHelper,
AppGraphOverviewService appGraphOverviewService,
UploadService uploadService) |
Modifier and Type | Method and Description |
---|---|
void |
exportApp(String appGlobalId,
javax.servlet.http.HttpServletResponse response)
Export App.
|
void |
exportTranslation(String appAmbiguousId,
String format,
javax.servlet.http.HttpServletResponse response)
Export translations used in form, process and case models of an App.
|
Object |
getAppGraphOverview(String ambiguousId)
Get AppGraph overview representation of the App.
|
void |
importApp(String ambiguousId,
String actionComment,
boolean importAsDuplicate)
Import an App.
|
void |
importAppTranslation(String appGlobalId,
String actionComment)
Import App translations.
|
void |
importProcess(String appAmbigousId,
boolean validate,
String actionComment)
Import process(es) from an uploaded BPMN 2.0 XML file.
|
UploadResponse |
uploadImportContent(String appAmbiguousId,
org.springframework.web.multipart.MultipartHttpServletRequest request)
Upload imported content for an App.
|
public DefaultAppImportExportManager(AppImporter appImporter, AppExporter appExporter, AppReaderService appReaderService, AppWriterFactory writerFactory, ProcessImporter processImporter, TimeProvider timeProvider, AmbiguousIdHelper ambiguousIdHelper, AppGraphOverviewService appGraphOverviewService, UploadService uploadService)
public UploadResponse uploadImportContent(String appAmbiguousId, org.springframework.web.multipart.MultipartHttpServletRequest request) throws IOException
AppImportExportManager
Upload imported content for an App.
uploadImportContent
in interface AppImportExportManager
appAmbiguousId
- the ID of the app (either work object ID value or global ID value)request
- Multipart requestIOException
- if the content could not be uploadedpublic void importApp(String ambiguousId, String actionComment, boolean importAsDuplicate) throws InterruptedException, IOException
AppImportExportManager
Import an App.
importApp
in interface AppImportExportManager
ambiguousId
- the ID of the app (either work object ID value or global ID value)actionComment
- comment to add to the actionimportAsDuplicate
- flag indicating if the App be imported as duplicateInterruptedException
- if the import was interruptedIOException
- if the App file could not be processedpublic void importProcess(String appAmbigousId, boolean validate, String actionComment) throws InterruptedException
AppImportExportManager
Import process(es) from an uploaded BPMN 2.0 XML file.
importProcess
in interface AppImportExportManager
appAmbigousId
- the ID of the app (either work object ID value or global ID value)validate
- flag indicating whether the process BPMN xml should be validated before importing.actionComment
- comment to add to the actionInterruptedException
- if the import was interruptedpublic void importAppTranslation(String appGlobalId, String actionComment) throws InterruptedException
AppImportExportManager
Import App translations.
importAppTranslation
in interface AppImportExportManager
appGlobalId
- global ID of the App.actionComment
- comment to add to the actionInterruptedException
- if the import was interruptedpublic void exportApp(String appGlobalId, javax.servlet.http.HttpServletResponse response)
AppImportExportManager
Export App.
exportApp
in interface AppImportExportManager
appGlobalId
- global ID of the App.response
- HttpServletResponsepublic void exportTranslation(String appAmbiguousId, String format, javax.servlet.http.HttpServletResponse response)
AppImportExportManager
Export translations used in form, process and case models of an App.
exportTranslation
in interface AppImportExportManager
appAmbiguousId
- the ID of the app (either work object ID value or global ID value)format
- format of the file in which the translations are exported.response
- HttpServletResponsepublic Object getAppGraphOverview(String ambiguousId)
AppImportExportManager
Get AppGraph overview representation of the App.
getAppGraphOverview
in interface AppImportExportManager
ambiguousId
- the ID of the app (either work object ID value or global ID value)Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.