Uses of Class
edu.ucsb.cs156.happiercows.entities.User
Packages that use User
-
Uses of User in edu.ucsb.cs156.happiercows.repositories
Subinterfaces with type arguments of type User in edu.ucsb.cs156.happiercows.repositoriesMethods in edu.ucsb.cs156.happiercows.repositories that return types with arguments of type User -
Uses of User in edu.ucsb.cs156.happiercows.services
Methods in edu.ucsb.cs156.happiercows.services that return UserModifier and TypeMethodDescriptionCurrentUserServiceImpl.getOAuth2AuthenticatedUser(org.springframework.security.core.context.SecurityContext securityContext, org.springframework.security.core.Authentication authentication) abstract UserCurrentUserService.getUser()CurrentUserServiceImpl.getUser()Methods in edu.ucsb.cs156.happiercows.services with parameters of type UserModifier and TypeMethodDescriptionCourseAccessService.findMatchingStudentForCourseLinkedGame(User user, Game game) Returns the Student roster row that corresponds to this user, for the course linked to the given game - but only if the game is actually linked to a course.CourseAccessService.getCourseIdsForUser(User user) Returns the distinct list of course ids for which this user's email appears on the roster as a student or as staff.booleanCourseAccessService.isEligibleForGame(User user, Game game) A user is eligible for a course-linked game if they are an admin, or if their email appears on the course's roster of students or staff.voidFarmerActivityService.recordActivityIfStudentMatch(User user, Game game, Farmer farmer, int activityType, int numCows) Records a FarmerActivity row for the given user/game/farmer/activityType, but only if the game is linked to a course and the user's email matches a student on that course's roster.