@RestController public class ModelHistoryResource extends AbstractModelHistoryResource
modelHistoryRepository, modelService, objectMapper| Constructor and Description |
|---|
ModelHistoryResource() |
| Modifier and Type | Method and Description |
|---|---|
ReviveModelResultRepresentation |
executeProcessModelHistoryAction(String modelId,
String modelHistoryId,
BaseRestActionRepresentation action) |
ResultListDataRepresentation |
getModelHistoryCollection(String modelId,
Boolean includeLatestVersion) |
ModelRepresentation |
getProcessModelHistory(String modelId,
String modelHistoryId) |
@RequestMapping(value="/rest/models/{modelId}/history",
method=GET,
produces="application/json")
public ResultListDataRepresentation getModelHistoryCollection(@PathVariable
String 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 ModelRepresentation getProcessModelHistory(@PathVariable
String modelId,
@PathVariable
String modelHistoryId)
getProcessModelHistory in class AbstractModelHistoryResource@RequestMapping(value="/rest/models/{modelId}/history/{modelHistoryId}",
method=POST,
produces="application/json")
public ReviveModelResultRepresentation executeProcessModelHistoryAction(@PathVariable
String modelId,
@PathVariable
String modelHistoryId,
@RequestBody(required=true)
BaseRestActionRepresentation action)
Copyright © 2017 Alfresco. All rights reserved.