findByDocTypeHCPartyAndMessageForeignKeys method
Future<List<DecryptedDocumentDto> >
findByDocTypeHCPartyAndMessageForeignKeys(
- UserDto user,
- String documentType,
- String hcpId,
- String messageSecretForeignKeys,
- CryptoConfig<
DecryptedDocumentDto, DocumentDto> config,
Implementation
Future<List<DecryptedDocumentDto>> findByDocTypeHCPartyAndMessageForeignKeys(UserDto user, String documentType, String hcpId, String messageSecretForeignKeys, CryptoConfig<DecryptedDocumentDto, DocumentDto> config) async {
return Future.wait(
(await this.rawListDocumentByTypeHCPartyMessageSecretFKeys(documentType, hcpId, messageSecretForeignKeys))!
.map((it) => config.decryptDocument(user.dataOwnerId()!, it))
);
}