Uses of Class
edu.ucsb.cs156.rec.entities.RecommendationRequest
-
Uses of RecommendationRequest in edu.ucsb.cs156.rec.controllers
Modifier and TypeMethodDescriptionThis method returns a single recommendation request where the current user is either the requester or the professor.RecommendationRequestController.postRecommendationRequests
(Long professorId, String recommendationType, String details, LocalDateTime dueDate) This method creates a new Recommendation Request.RecommendationRequestController.updateRecommendationRequestAsAdmin
(Long id, @Valid RecommendationRequest incoming) Prof can update a Recommendation Request's statusRecommendationRequestController.updateRecommendationRequestAsUser
(Long id, @Valid RecommendationRequest incoming) The user who posted a RecommendationRequest can update their RecommendationRequestModifier and TypeMethodDescriptionRecommendationRequestController.allProfessorRecommendationRequests()
This method returns a list of all Recommendation Requests intended for current user who is a professor.RecommendationRequestController.allRequesterRecommendationRequests()
This method returns a list of all Recommendation Requests requested by current student.RecommendationRequestController.getRecommendationRequestByStatusForProfessor
(String status) This method returns a list of recommendation requests with specified status for a professor.Modifier and TypeMethodDescriptionRecommendationRequestController.updateRecommendationRequestAsAdmin
(Long id, @Valid RecommendationRequest incoming) Prof can update a Recommendation Request's statusRecommendationRequestController.updateRecommendationRequestAsUser
(Long id, @Valid RecommendationRequest incoming) The user who posted a RecommendationRequest can update their RecommendationRequest -
Uses of RecommendationRequest in edu.ucsb.cs156.rec.repositories
Modifier and TypeMethodDescriptionRecommendationRequestRepository.findAllByProfessorId
(Long professor_id) This method returns an iterable of recommendation requests with given professor_id.RecommendationRequestRepository.findAllByProfessorIdAndStatus
(Long professor_id, String status) Find all recommendation requests by professor ID and status.RecommendationRequestRepository.findAllByRequesterId
(Long requester_id) This method returns an iterable of recommendation requests with given requester_id.RecommendationRequestRepository.findByIdAndRequester
(long id, User requester_id)