@RestController public class ModelResource extends AbstractModelResource
| Modifier and Type | Field and Description |
|---|---|
protected org.activiti.editor.language.json.converter.BpmnJsonConverter |
bpmnJsonConverter |
protected BpmnXMLConverter |
bpmnXMLConverter |
protected ModelInternalService |
modelService |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected com.activiti.repository.editor.ModelShareInfoRepository |
shareInfoRepository |
historyRepository, modelRepository, PROCESS_NOT_FOUND_MESSAGE_KEY| Constructor and Description |
|---|
ModelResource() |
| Modifier and Type | Method and Description |
|---|---|
protected com.activiti.model.editor.ModelRepresentation |
createNewModel(String name,
String description,
Long stencilSetId,
Integer modelType,
String editorJson) |
void |
deleteModel(Long modelId,
Boolean cascade,
Boolean deleteRuntimeApp)
DELETE /rest/models/{modelId} -> delete process model or, as a non-owner,
remove the share info link for that user specifically
|
com.activiti.model.editor.ModelRepresentation |
getModel(Long modelId,
Boolean includePermissions)
GET /rest/models/{modelId} -> Get process model
|
com.fasterxml.jackson.databind.node.ObjectNode |
getModelJSON(Long modelId)
GET /rest/models/{modelId}/editor/json -> get the JSON model
|
byte[] |
getModelThumbnail(Long modelId)
GET /rest/models/{modelId}/thumbnail -> Get process model thumbnail
|
com.activiti.model.editor.ModelRepresentation |
importNewVersion(Long modelId,
org.springframework.web.multipart.MultipartFile file)
POST /rest/models/{modelId}/editor/newversion -> create a new model version
|
com.activiti.model.editor.ModelRepresentation |
saveModel(Long modelId,
org.springframework.util.MultiValueMap<String,String> values)
POST /rest/models/{modelId}/editor/json -> save the JSON model
|
com.activiti.model.editor.ModelRepresentation |
updateModel(Long modelId,
com.activiti.model.editor.ModelRepresentation updatedModel)
PUT /rest/models/{modelId} -> update process model properties
|
protected com.activiti.model.editor.ModelRepresentation |
updateModel(Long modelId,
org.springframework.util.MultiValueMap<String,String> values,
boolean forceNewVersion) |
getModel, getModelHistory, getParentModel, getProcessModelForOwner, populatePermissions@Inject protected ModelInternalService modelService
@Inject protected com.activiti.repository.editor.ModelShareInfoRepository shareInfoRepository
protected org.activiti.editor.language.json.converter.BpmnJsonConverter bpmnJsonConverter
protected BpmnXMLConverter bpmnXMLConverter
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
@RequestMapping(value="/rest/models/{modelId}",
method=GET,
produces="application/json")
public com.activiti.model.editor.ModelRepresentation getModel(@PathVariable
Long modelId,
@RequestParam(required=false)
Boolean includePermissions)
getModel in class AbstractModelResource@RequestMapping(value="/rest/models/{modelId}/thumbnail",
method=GET,
produces="image/png")
public byte[] getModelThumbnail(@PathVariable
Long modelId)
getModelThumbnail in class AbstractModelResource@RequestMapping(value="/rest/models/{modelId}",
method=PUT)
public com.activiti.model.editor.ModelRepresentation updateModel(@PathVariable
Long modelId,
@RequestBody
com.activiti.model.editor.ModelRepresentation updatedModel)
@RequestMapping(value="/rest/models/{modelId}",
method=DELETE)
public void deleteModel(@PathVariable
Long modelId,
@RequestParam(required=false)
Boolean cascade,
@RequestParam(required=false)
Boolean deleteRuntimeApp)
@RequestMapping(value="/rest/models/{modelId}/editor/json",
method=GET,
produces="application/json")
public com.fasterxml.jackson.databind.node.ObjectNode getModelJSON(@PathVariable
Long modelId)
@RequestMapping(value="/rest/models/{modelId}/editor/json",
method=POST)
public com.activiti.model.editor.ModelRepresentation saveModel(@PathVariable
Long modelId,
@RequestBody
org.springframework.util.MultiValueMap<String,String> values)
@RequestMapping(value="/rest/models/{modelId}/newversion",
method=POST)
public com.activiti.model.editor.ModelRepresentation importNewVersion(@PathVariable
Long modelId,
@RequestParam(value="file")
org.springframework.web.multipart.MultipartFile file)
importNewVersion in class AbstractModelResourceprotected com.activiti.model.editor.ModelRepresentation updateModel(Long modelId, org.springframework.util.MultiValueMap<String,String> values, boolean forceNewVersion)
Copyright © 2014–2015 Alfresco. All rights reserved.