Package energy.eddie.aiida.web
Class LatestRecordController
java.lang.Object
energy.eddie.aiida.web.LatestRecordController
-
Constructor Summary
ConstructorsConstructorDescriptionLatestRecordController(LatestRecordService service, EventStream eventStream, AuthService authService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<reactor.core.publisher.Flux<LastMessageEventDto>> latestDataSourceRecord(UUID dataSourceId) latestDataSourceRecords(UUID dataSourceId, int amount) latestInboundPermissionRecord(UUID permissionId) latestOutboundPermissionRecord(UUID permissionId)
-
Constructor Details
-
LatestRecordController
@Autowired public LatestRecordController(LatestRecordService service, EventStream eventStream, AuthService authService)
-
-
Method Details
-
latestDataSourceRecord
@GetMapping("data-source/{id}/latest") public LatestDataSourceRecordDto latestDataSourceRecord(@PathVariable("id") UUID dataSourceId) throws LatestAiidaRecordNotFoundException -
latestDataSourceRecords
@GetMapping("data-source/{id}/latestRecords") public List<LatestDataSourceRecordDto> latestDataSourceRecords(@PathVariable("id") UUID dataSourceId, @RequestParam("amount") int amount) throws LatestAiidaRecordNotFoundException -
latestOutboundPermissionRecord
@GetMapping("permission/{id}/outbound/latest") public LatestOutboundPermissionRecordDto latestOutboundPermissionRecord(@PathVariable("id") UUID permissionId) throws LatestPermissionRecordNotFoundException -
latestInboundPermissionRecord
@GetMapping("permission/{id}/inbound/latest") public LatestInboundPermissionRecordDto latestInboundPermissionRecord(@PathVariable("id") UUID permissionId) throws PermissionNotFoundException, InvalidDataSourceTypeException, InboundRecordNotFoundException, UnsupportedInboundRecordTransformationException, InvalidInboundPermissionException -
lastMessageStream
@GetMapping(value="last-message-stream", produces="text/event-stream") public org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<LastMessageEventDto>> lastMessageStream() throws InvalidUserException- Throws:
InvalidUserException
-