@RestController public class ModelHistoryResource extends AbstractModelHistoryResource
modelService, objectMapper
historyRepository, modelRepository, PROCESS_NOT_FOUND_MESSAGE_KEY, shareInfoRepository
Constructor and Description |
---|
ModelHistoryResource() |
Modifier and Type | Method and Description |
---|---|
com.activiti.model.editor.ReviveModelResultRepresentation |
executeProcessModelHistoryAction(Long modelId,
Long modelHistoryId,
com.activiti.model.common.BaseRestActionRepresentation action) |
com.activiti.model.common.ResultListDataRepresentation |
getModelHistoryCollection(Long modelId,
Boolean includeLatestVersion) |
com.activiti.model.editor.ModelRepresentation |
getProcessModelHistory(Long modelId,
Long modelHistoryId) |
getModel, getModelHistory, getParentModel, getProcessModelForOwner, populatePermissions
@RequestMapping(value="/rest/models/{modelId}/history", method=GET, produces="application/json") public com.activiti.model.common.ResultListDataRepresentation getModelHistoryCollection(@PathVariable Long modelId, @RequestParam(value="includeLatestVersion",required=false) Boolean includeLatestVersion)
getModelHistoryCollection
in class AbstractModelHistoryResource
@RequestMapping(value="/rest/models/{modelId}/history/{modelHistoryId}", method=GET, produces="application/json") public com.activiti.model.editor.ModelRepresentation getProcessModelHistory(@PathVariable Long modelId, @PathVariable Long modelHistoryId)
getProcessModelHistory
in class AbstractModelHistoryResource
@RequestMapping(value="/rest/models/{modelId}/history/{modelHistoryId}", method=POST, produces="application/json") public com.activiti.model.editor.ReviveModelResultRepresentation executeProcessModelHistoryAction(@PathVariable Long modelId, @PathVariable Long modelHistoryId, @RequestBody(required=true) com.activiti.model.common.BaseRestActionRepresentation action)
Copyright © 2014–2015 Alfresco. All rights reserved.