Class LatestRecordService
java.lang.Object
energy.eddie.aiida.services.record.LatestRecordService
-
Constructor Summary
ConstructorsConstructorDescriptionLatestRecordService(AiidaRecordRepository aiidaRecordRepository, PermissionLatestRecordMap permissionLatestRecordMap, InboundRecordService inboundRecordService, PermissionRepository permissionRepository, InboundAggregator inboundAggregator, AuthService authService) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<LastMessageEventDto> Streams aLastMessageEventDtofor every new inbound/outbound message belonging to the current user's permissions.latestDataSourceRecord(UUID dataSourceId) latestDataSourceRecords(UUID dataSourceId, int amount) latestInboundPermissionRecord(UUID permissionId) latestOutboundPermissionRecord(UUID permissionId)
-
Constructor Details
-
LatestRecordService
@Autowired public LatestRecordService(AiidaRecordRepository aiidaRecordRepository, PermissionLatestRecordMap permissionLatestRecordMap, InboundRecordService inboundRecordService, PermissionRepository permissionRepository, InboundAggregator inboundAggregator, AuthService authService)
-
-
Method Details
-
latestDataSourceRecord
public LatestDataSourceRecordDto latestDataSourceRecord(UUID dataSourceId) throws LatestAiidaRecordNotFoundException -
latestDataSourceRecords
public List<LatestDataSourceRecordDto> latestDataSourceRecords(UUID dataSourceId, int amount) throws LatestAiidaRecordNotFoundException -
latestOutboundPermissionRecord
public LatestOutboundPermissionRecordDto latestOutboundPermissionRecord(UUID permissionId) throws LatestPermissionRecordNotFoundException -
latestInboundPermissionRecord
public LatestInboundPermissionRecordDto latestInboundPermissionRecord(UUID permissionId) throws PermissionNotFoundException, InvalidDataSourceTypeException, InboundRecordNotFoundException, UnsupportedInboundRecordTransformationException, InvalidInboundPermissionException -
lastMessageStream
public reactor.core.publisher.Flux<LastMessageEventDto> lastMessageStream() throws InvalidUserExceptionStreams aLastMessageEventDtofor every new inbound/outbound message belonging to the current user's permissions. The stream filters per user and not per permission as HTTP/1.1 limits concurrent SSE streams to a maximum of 6.- Throws:
InvalidUserException- if the current request has no valid authenticated user.
-