Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.79 KB | None | 0 0
  1.  override fun getDataproductsByStatusByUserInfo(status: StatusProduct, userInfo: UserInfo): Flux<Dataproduct> {
  2.         return repository.findAllByStatus(status)
  3.  
  4.                 /*.map {product -> {product.comments.
  5.                 filter { comment ->comment.type != TypeComment.ATTENTE && comment.type != TypeComment.CORRECTION }
  6.                 return product}  }*/
  7.         /*return repository.findAllByStatus(status).filter{ product -> {
  8.             var list: List<Comment> = product.comments.stream().filter((comment: Comment) -> comment.type !=
  9.             TypeComment.ATTENTE && comment.type != TypeComment.CORRECTION).collect(Collectors.toList());
  10.             return true;
  11.         }}*/
  12.  
  13.         //dataproduct.comments.filter { comment ->comment.userInformations.email==userInfo.email }
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement