Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override fun getDataproductsByStatusByUserInfo(status: StatusProduct, userInfo: UserInfo): Flux<Dataproduct> {
- return repository.findAllByStatus(status)
- /*.map {product -> {product.comments.
- filter { comment ->comment.type != TypeComment.ATTENTE && comment.type != TypeComment.CORRECTION }
- return product} }*/
- /*return repository.findAllByStatus(status).filter{ product -> {
- var list: List<Comment> = product.comments.stream().filter((comment: Comment) -> comment.type !=
- TypeComment.ATTENTE && comment.type != TypeComment.CORRECTION).collect(Collectors.toList());
- return true;
- }}*/
- //dataproduct.comments.filter { comment ->comment.userInformations.email==userInfo.email }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement