@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,
AppOverviewService appOverviewService,
AppDataModelService appDataModelService,
UploadService uploadService,
CurrentUserService currentUserService,
long importTimeoutMs) |
| Modifier and Type | Method and Description |
|---|---|
List<Map<String,String>> |
appModelDetails(String ambiguousId,
String nameLike)
Get details of the uploaded app filtered by name.
|
void |
exportApp(String appGlobalId,
Collection<String> exportedModelIds,
javax.servlet.http.HttpServletResponse response)
Export App.
|
void |
exportDataModel(String appAmbiguousId,
com.google.common.net.MediaType format,
Locale locale,
javax.servlet.http.HttpServletResponse response)
Export the data model for the given App.
|
void |
exportOverview(String appAmbiguousId,
com.google.common.net.MediaType format,
Locale locale,
javax.servlet.http.HttpServletResponse response)
Export an overview of all attributes defined within the given App.
|
void |
exportTranslation(String appAmbiguousId,
com.google.common.net.MediaType 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,
Collection<String> modelToImportIds)
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, AppOverviewService appOverviewService, AppDataModelService appDataModelService, UploadService uploadService, CurrentUserService currentUserService, long importTimeoutMs)
public UploadResponse uploadImportContent(String appAmbiguousId, org.springframework.web.multipart.MultipartHttpServletRequest request) throws IOException
AppImportExportManagerUpload imported content for an App.
uploadImportContent in interface AppImportExportManagerappAmbiguousId - 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, Collection<String> modelToImportIds) throws InterruptedException, IOException
AppImportExportManagerImport an App.
importApp in interface AppImportExportManagerambiguousId - 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 duplicatemodelToImportIds - collection of ids which should be imported. In the case of empty collection all models are importedInterruptedException - if the import was interruptedIOException - if the App file could not be processedpublic List<Map<String,String>> appModelDetails(String ambiguousId, String nameLike) throws InterruptedException
AppImportExportManagerGet details of the uploaded app filtered by name.
appModelDetails in interface AppImportExportManagernameLike - model name substring to search for ignoring caseWorkObjectDetails matching name like ignore case conditionInterruptedExceptionpublic void importProcess(String appAmbigousId, boolean validate, String actionComment) throws InterruptedException
AppImportExportManagerImport process(es) from an uploaded BPMN 2.0 XML file.
importProcess in interface AppImportExportManagerappAmbigousId - 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
AppImportExportManagerImport App translations.
importAppTranslation in interface AppImportExportManagerappGlobalId - global ID of the App.actionComment - comment to add to the actionInterruptedException - if the import was interruptedpublic void exportApp(String appGlobalId, Collection<String> exportedModelIds, javax.servlet.http.HttpServletResponse response)
AppImportExportManagerExport App.
exportApp in interface AppImportExportManagerappGlobalId - global ID of the App.exportedModelIds - list of model ids to export in the case when model list is empty all models are exportedresponse - HttpServletResponsepublic void exportTranslation(String appAmbiguousId, com.google.common.net.MediaType format, javax.servlet.http.HttpServletResponse response)
AppImportExportManagerExport translations used in form, process and case models of an App.
exportTranslation in interface AppImportExportManagerappAmbiguousId - 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 void exportOverview(String appAmbiguousId, com.google.common.net.MediaType format, Locale locale, javax.servlet.http.HttpServletResponse response)
AppImportExportManagerExport an overview of all attributes defined within the given App.
exportOverview in interface AppImportExportManagerappAmbiguousId - the global ID of the appformat - format of the export filelocale - the locale to be used for translatable contentresponse - HttpServletResponsepublic void exportDataModel(String appAmbiguousId, com.google.common.net.MediaType format, Locale locale, javax.servlet.http.HttpServletResponse response)
AppImportExportManagerExport the data model for the given App.
exportDataModel in interface AppImportExportManagerappAmbiguousId - the global ID of the appformat - format of the export filelocale - the locale to be used for translatable contentresponse - HttpServletResponsepublic Object getAppGraphOverview(String ambiguousId)
AppImportExportManagerGet AppGraph overview representation of the App.
getAppGraphOverview in interface AppImportExportManagerambiguousId - the ID of the app (either work object ID value or global ID value)Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.