Uses of Class
edu.ucsb.cs156.dining.entities.Review
-
Uses of Review in edu.ucsb.cs156.dining.controllers
Modifier and TypeMethodDescriptionReviewsController.moderateReview
(Long id, @Valid Review incoming) Moderate a single reviewReviewsController.postReview
(long itemId, LocalDateTime dateServed, long stars, String reviewText) Create a new reviewReviewsController.updateReview
(Long id, @Valid Review incoming) Update a single reviewModifier and TypeMethodDescriptionReviewsController.allReviews()
List all reviewsReviewsController.getReviewsByUser()
List all reviews created by a specific userReviewsController.getReviewsNeedingModeration()
List all reviews needing moderationModifier and TypeMethodDescriptionReviewsController.moderateReview
(Long id, @Valid Review incoming) Moderate a single reviewReviewsController.updateReview
(Long id, @Valid Review incoming) Update a single review -
Uses of Review in edu.ucsb.cs156.dining.repositories
Modifier and TypeMethodDescriptionReviewRepository.findAllByReviewerId
(long reviewerId) This method returns all Review entities with a given reviewerId.ReviewRepository.findAllByStatus
(String status) This method returns all Review entities with a given moderation status.