public class AbstractAppDefinitionResource extends BaseModelResource
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractAppDefinitionResource.ImportGroupCache |
protected class |
AbstractAppDefinitionResource.ImportUserCache |
Modifier and Type | Field and Description |
---|---|
protected AppDefinitionPublishService |
appDefinitionPublishService |
protected org.activiti.editor.language.json.converter.BpmnJsonConverter |
bpmnJsonConverter |
protected DeploymentService |
deploymentService |
protected org.springframework.core.env.Environment |
env |
protected GroupService |
groupService |
protected com.activiti.repository.editor.ModelRepository |
modelRepository |
protected ModelInternalService |
modelService |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected UserService |
userService |
historyRepository, PROCESS_NOT_FOUND_MESSAGE_KEY, shareInfoRepository
Constructor and Description |
---|
AbstractAppDefinitionResource() |
Modifier and Type | Method and Description |
---|---|
protected com.activiti.model.editor.AppDefinitionRepresentation |
createAppDefinitionRepresentation(com.activiti.domain.editor.AbstractModel model) |
protected void |
createAppDefinitionZip(javax.servlet.http.HttpServletResponse response,
com.activiti.model.editor.AppDefinitionRepresentation appDefinition,
String appDefJson,
com.activiti.domain.idm.User user) |
protected com.activiti.model.editor.ModelRepresentation |
createModelRepresentation(String name,
int type) |
protected void |
createZipEntry(ZipOutputStream zipOutputStream,
String filename,
byte[] content) |
protected void |
createZipEntry(ZipOutputStream zipOutputStream,
String filename,
String content) |
protected String |
createZipEntryFileName(String name,
Long id) |
void |
exportAppDefinition(javax.servlet.http.HttpServletResponse response,
Long modelId) |
protected void |
fillForm(String formKey,
FlowElement flowElement,
Map<Long,com.activiti.domain.editor.Model> formMap) |
protected com.activiti.domain.editor.Model |
importAppDefinition(com.activiti.domain.editor.AppDefinition appDefinition,
com.activiti.domain.editor.Model existingAppModel,
String name,
Map<Long,com.activiti.domain.editor.Model> oldBpmnModelIdAndModelMap) |
protected com.activiti.model.editor.AppDefinitionRepresentation |
importAppDefinition(javax.servlet.http.HttpServletRequest request,
InputStream is,
String fileName,
com.activiti.domain.editor.Model existingAppModel,
Map<String,com.activiti.domain.editor.Model> existingProcessModelMap,
Map<String,Map<String,com.activiti.domain.editor.Model>> existingSubProcessModelMap,
Map<String,Map<String,com.activiti.domain.editor.Model>> existingFormModelMap) |
com.activiti.model.editor.AppDefinitionRepresentation |
importAppDefinition(javax.servlet.http.HttpServletRequest request,
org.springframework.web.multipart.MultipartFile file) |
com.activiti.model.editor.AppDefinitionRepresentation |
importAppDefinitionNewVersion(javax.servlet.http.HttpServletRequest request,
org.springframework.web.multipart.MultipartFile file,
Long appDefId) |
protected Map<Long,com.activiti.domain.editor.Model> |
importBpmnModels(Map<String,String> bpmnModelMap,
Map<Long,com.activiti.domain.editor.Model> oldFormKeyAndModelMap,
AbstractAppDefinitionResource.ImportGroupCache groupCache,
AbstractAppDefinitionResource.ImportUserCache userCache,
boolean renewIdmEntries,
Map<String,byte[]> thumbnailMap,
Map<String,com.activiti.domain.editor.Model> existingProcessModelMap) |
protected Map<Long,com.activiti.domain.editor.Model> |
importForms(Map<String,String> formMap,
Map<String,byte[]> thumbnailMap,
Map<Long,String> matchFormAndProcessMap,
Map<String,Map<String,com.activiti.domain.editor.Model>> existingFormModelMap) |
protected void |
matchBpmnModelWithFormIds(String modelName,
Collection<FlowElement> flowElements,
Map<Long,String> matchFormAndProcessMap) |
protected void |
matchFormKeyValue(String modelName,
String formKey,
FlowElement flowElement,
Map<Long,String> matchFormAndProcessMap) |
protected void |
matchFormsAndSubProcesses(Map<String,String> formMap,
Map<String,String> bpmnModelMap,
Map<Long,String> matchFormAndProcessMap) |
protected void |
processBpmnEditorModel(Collection<FlowElement> flowElements,
Map<Long,com.activiti.domain.editor.Model> formMap) |
com.activiti.model.editor.AppDefinitionUpdateResultRepresentation |
publishAppDefinition(Long modelId,
com.activiti.model.editor.AppDefinitionPublishRepresentation publishModel) |
protected com.fasterxml.jackson.databind.node.ObjectNode |
readModelJson(String modelJson) |
protected com.activiti.domain.editor.Model |
readZipFile(InputStream inputStream,
Map<String,String> formMap,
Map<String,String> bpmnModelMap,
Map<String,byte[]> thumbnailMap) |
protected void |
updateBpmnForms(Long modelId,
Collection<FlowElement> flowElements,
Map<Long,com.activiti.domain.editor.Model> formMap,
AbstractAppDefinitionResource.ImportGroupCache groupCache,
AbstractAppDefinitionResource.ImportUserCache userCache,
boolean renewIdmEntries) |
protected void |
updateExtensionElementName(String name,
String updatedName,
Task task) |
protected void |
updateFormKeyValue(String formKey,
FlowElement flowElement,
Map<Long,com.activiti.domain.editor.Model> formMap,
Long modelId) |
getModel, getModelHistory, getParentModel, getProcessModelForOwner, populatePermissions
@Autowired protected org.springframework.core.env.Environment env
@Autowired protected ModelInternalService modelService
@Autowired protected GroupService groupService
@Autowired protected UserService userService
@Autowired protected DeploymentService deploymentService
@Autowired protected com.activiti.repository.editor.ModelRepository modelRepository
@Autowired protected AppDefinitionPublishService appDefinitionPublishService
@Autowired protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected org.activiti.editor.language.json.converter.BpmnJsonConverter bpmnJsonConverter
public void exportAppDefinition(javax.servlet.http.HttpServletResponse response, Long modelId) throws IOException
IOException
public com.activiti.model.editor.AppDefinitionRepresentation importAppDefinition(javax.servlet.http.HttpServletRequest request, org.springframework.web.multipart.MultipartFile file)
public com.activiti.model.editor.AppDefinitionRepresentation importAppDefinitionNewVersion(javax.servlet.http.HttpServletRequest request, org.springframework.web.multipart.MultipartFile file, Long appDefId)
protected com.activiti.model.editor.AppDefinitionRepresentation importAppDefinition(javax.servlet.http.HttpServletRequest request, InputStream is, String fileName, com.activiti.domain.editor.Model existingAppModel, Map<String,com.activiti.domain.editor.Model> existingProcessModelMap, Map<String,Map<String,com.activiti.domain.editor.Model>> existingSubProcessModelMap, Map<String,Map<String,com.activiti.domain.editor.Model>> existingFormModelMap)
public com.activiti.model.editor.AppDefinitionUpdateResultRepresentation publishAppDefinition(Long modelId, com.activiti.model.editor.AppDefinitionPublishRepresentation publishModel)
protected com.activiti.model.editor.AppDefinitionRepresentation createAppDefinitionRepresentation(com.activiti.domain.editor.AbstractModel model)
protected void createAppDefinitionZip(javax.servlet.http.HttpServletResponse response, com.activiti.model.editor.AppDefinitionRepresentation appDefinition, String appDefJson, com.activiti.domain.idm.User user)
protected com.activiti.domain.editor.Model readZipFile(InputStream inputStream, Map<String,String> formMap, Map<String,String> bpmnModelMap, Map<String,byte[]> thumbnailMap)
protected void matchFormsAndSubProcesses(Map<String,String> formMap, Map<String,String> bpmnModelMap, Map<Long,String> matchFormAndProcessMap)
protected Map<Long,com.activiti.domain.editor.Model> importForms(Map<String,String> formMap, Map<String,byte[]> thumbnailMap, Map<Long,String> matchFormAndProcessMap, Map<String,Map<String,com.activiti.domain.editor.Model>> existingFormModelMap)
protected Map<Long,com.activiti.domain.editor.Model> importBpmnModels(Map<String,String> bpmnModelMap, Map<Long,com.activiti.domain.editor.Model> oldFormKeyAndModelMap, AbstractAppDefinitionResource.ImportGroupCache groupCache, AbstractAppDefinitionResource.ImportUserCache userCache, boolean renewIdmEntries, Map<String,byte[]> thumbnailMap, Map<String,com.activiti.domain.editor.Model> existingProcessModelMap)
protected com.activiti.domain.editor.Model importAppDefinition(com.activiti.domain.editor.AppDefinition appDefinition, com.activiti.domain.editor.Model existingAppModel, String name, Map<Long,com.activiti.domain.editor.Model> oldBpmnModelIdAndModelMap)
protected void processBpmnEditorModel(Collection<FlowElement> flowElements, Map<Long,com.activiti.domain.editor.Model> formMap)
protected void matchBpmnModelWithFormIds(String modelName, Collection<FlowElement> flowElements, Map<Long,String> matchFormAndProcessMap)
protected void matchFormKeyValue(String modelName, String formKey, FlowElement flowElement, Map<Long,String> matchFormAndProcessMap)
protected void updateBpmnForms(Long modelId, Collection<FlowElement> flowElements, Map<Long,com.activiti.domain.editor.Model> formMap, AbstractAppDefinitionResource.ImportGroupCache groupCache, AbstractAppDefinitionResource.ImportUserCache userCache, boolean renewIdmEntries)
protected void fillForm(String formKey, FlowElement flowElement, Map<Long,com.activiti.domain.editor.Model> formMap)
protected void updateFormKeyValue(String formKey, FlowElement flowElement, Map<Long,com.activiti.domain.editor.Model> formMap, Long modelId)
protected void updateExtensionElementName(String name, String updatedName, Task task)
protected com.activiti.model.editor.ModelRepresentation createModelRepresentation(String name, int type)
protected com.fasterxml.jackson.databind.node.ObjectNode readModelJson(String modelJson)
protected void createZipEntry(ZipOutputStream zipOutputStream, String filename, String content) throws Exception
Exception
protected void createZipEntry(ZipOutputStream zipOutputStream, String filename, byte[] content) throws Exception
Exception
Copyright © 2014–2015 Alfresco. All rights reserved.