Class HistoryController
java.lang.Object
org.qubership.atp.dataset.service.rest.server.HistoryController
- All Implemented Interfaces:
HistoryControllerApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<HistoryItemResponseDto> getAllHistory(UUID projectId, UUID id, @Valid Integer offset, @Valid Integer limit) GET /api/history/{projectId}/datasetlist/{id} : Finds all changes history for defined data set listorg.springframework.http.ResponseEntity<UiManDataSetListJDto> getRevisionDetails(UUID projectId, UUID entityId, Integer revision) GET /api/history/{projectId}/datasetlist/revisionDetails/{entityId}/{revision} : Find model of Dataset List by revisionorg.springframework.http.ResponseEntity<Void> restoreToRevision(UUID projectId, UUID id, Integer revisionId) POST /api/history/restore/{projectId}/datasetlist/{id}/revision/{revisionId} : Restore the state of the provided entity to defined revision
-
Constructor Details
-
HistoryController
public HistoryController()
-
-
Method Details
-
getAllHistory
@PreAuthorize("@entityAccess.checkAccess(#projectId,\'READ\')") public org.springframework.http.ResponseEntity<HistoryItemResponseDto> getAllHistory(@PathVariable("projectId") UUID projectId, @PathVariable("id") UUID id, @Valid @RequestParam(value="offset",required=false,defaultValue="0") @Valid Integer offset, @Valid @RequestParam(value="limit",required=false,defaultValue="10") @Valid Integer limit) Description copied from interface:HistoryControllerApiGET /api/history/{projectId}/datasetlist/{id} : Finds all changes history for defined data set list- Specified by:
getAllHistoryin interfaceHistoryControllerApi- Parameters:
projectId- (required)id- (required)offset- (optional, default to 0)limit- (optional, default to 10)- Returns:
- OK (status code 200) or Entity Id not found (status code 404)
-
getRevisionDetails
@PreAuthorize("@entityAccess.checkAccess(#projectId, \'READ\')") public org.springframework.http.ResponseEntity<UiManDataSetListJDto> getRevisionDetails(@PathVariable("projectId") UUID projectId, @PathVariable("entityId") UUID entityId, @PathVariable("revision") Integer revision) Description copied from interface:HistoryControllerApiGET /api/history/{projectId}/datasetlist/revisionDetails/{entityId}/{revision} : Find model of Dataset List by revision- Specified by:
getRevisionDetailsin interfaceHistoryControllerApi- Parameters:
projectId- (required)entityId- (required)revision- (required)- Returns:
- OK (status code 200) or Entity Id not found (status code 404)
-
restoreToRevision
@PreAuthorize("@entityAccess.checkAccess(#projectId,\'UPDATE\')") public org.springframework.http.ResponseEntity<Void> restoreToRevision(@PathVariable("projectId") UUID projectId, @PathVariable("id") UUID id, @PathVariable("revisionId") Integer revisionId) Description copied from interface:HistoryControllerApiPOST /api/history/restore/{projectId}/datasetlist/{id}/revision/{revisionId} : Restore the state of the provided entity to defined revision- Specified by:
restoreToRevisionin interfaceHistoryControllerApi- Parameters:
projectId- (required)id- (required)revisionId- (required)- Returns:
- Revision was restored successfully (status code 200) or Forbidden (status code 403) or Entity Id not found (status code 404) or Revision was not restored (status code 500)
-