@Service public class AppDefinitionExportService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected BpmnJsonConverter |
bpmnJsonConverter |
protected ModelRepository |
modelRepository |
protected ModelService |
modelService |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
| Constructor and Description |
|---|
AppDefinitionExportService() |
| Modifier and Type | Method and Description |
|---|---|
protected AppDefinitionRepresentation |
createAppDefinitionRepresentation(AbstractModel model) |
protected void |
createAppDefinitionZip(javax.servlet.http.HttpServletResponse response,
Model appModel,
AppDefinitionRepresentation appDefinition,
User user) |
protected String |
createModelEntryJson(Model model) |
protected void |
createZipEntries(Model model,
String directoryName,
ZipOutputStream zipOutputStream) |
protected void |
createZipEntry(ZipOutputStream zipOutputStream,
String filename,
byte[] content) |
protected void |
createZipEntry(ZipOutputStream zipOutputStream,
String filename,
String content) |
void |
exportAppDefinition(javax.servlet.http.HttpServletResponse response,
String modelId) |
@Autowired protected ModelService modelService
@Autowired protected ModelRepository modelRepository
@Autowired protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected BpmnJsonConverter bpmnJsonConverter
public void exportAppDefinition(javax.servlet.http.HttpServletResponse response,
String modelId)
throws IOException
IOExceptionprotected void createAppDefinitionZip(javax.servlet.http.HttpServletResponse response,
Model appModel,
AppDefinitionRepresentation appDefinition,
User user)
protected void createZipEntries(Model model, String directoryName, ZipOutputStream zipOutputStream) throws Exception
Exceptionprotected AppDefinitionRepresentation createAppDefinitionRepresentation(AbstractModel model)
protected void createZipEntry(ZipOutputStream zipOutputStream, String filename, String content) throws Exception
Exceptionprotected void createZipEntry(ZipOutputStream zipOutputStream, String filename, byte[] content) throws Exception
ExceptionCopyright © 2017 Alfresco. All rights reserved.