@RestController public class JaversController extends Object
| Constructor and Description |
|---|
JaversController(HistoryRestoreService historyRestoreService,
HistoryRetrieveService historyRetrieveService,
ItfReplicationService itfReplicationService) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<HistoryItemResponse> |
getAllHistory(UUID projectUuid,
HistoryEntityConstant type,
BigInteger objectId,
Integer offset,
Integer limit) |
org.springframework.http.ResponseEntity<List<HistoryCompareEntity>> |
getEntitiesByVersion(UUID projectUuid,
HistoryEntityConstant type,
BigInteger objectId,
List<Long> versions) |
org.springframework.http.ResponseEntity<Void> |
restoreToRevision(UUID projectUuid,
HistoryEntityConstant type,
BigInteger objectId,
Long revision) |
void |
testHistoryForReplicate(BigInteger systemId,
BigInteger projectId) |
@Autowired public JaversController(HistoryRestoreService historyRestoreService, HistoryRetrieveService historyRetrieveService, ItfReplicationService itfReplicationService)
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"READ\")")
@GetMapping(value="/api/v1/history/{projectUuid}/{type}/{id}")
public org.springframework.http.ResponseEntity<HistoryItemResponse> getAllHistory(@PathVariable(value="projectUuid")
UUID projectUuid,
@PathVariable(value="type")
HistoryEntityConstant type,
@PathVariable(value="id")
BigInteger objectId,
@RequestParam(value="offset",defaultValue="0",required=false)
Integer offset,
@RequestParam(value="limit",defaultValue="10",required=false)
Integer limit)
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"READ\")")
@GetMapping(value="/api/v1/entityversioning/{projectUuid}/{type}/{id}")
public org.springframework.http.ResponseEntity<List<HistoryCompareEntity>> getEntitiesByVersion(@PathVariable(value="projectUuid")
UUID projectUuid,
@PathVariable(value="type")
HistoryEntityConstant type,
@PathVariable(value="id")
BigInteger objectId,
@RequestParam(value="versions")
List<Long> versions)
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"UPDATE\")")
@PostMapping(value="/api/v1/history/restore/{projectUuid}/{type}/{id}/revision/{revision}")
public org.springframework.http.ResponseEntity<Void> restoreToRevision(@PathVariable(value="projectUuid")
UUID projectUuid,
@PathVariable(value="type")
HistoryEntityConstant type,
@PathVariable(value="id")
BigInteger objectId,
@PathVariable(value="revision")
Long revision)
@Transactional
@PostMapping(value="/history/testReplicate")
public void testHistoryForReplicate(@RequestParam(value="systemId")
BigInteger systemId,
BigInteger projectId)
Copyright © 2025. All rights reserved.