Uses of Class
com.openclassrooms.tourguide.user.User
Packages that use User
-
Uses of User in com.openclassrooms.tourguide.controller
Methods in com.openclassrooms.tourguide.controller that return User -
Uses of User in com.openclassrooms.tourguide.service
Fields in com.openclassrooms.tourguide.service with type parameters of type UserModifier and TypeFieldDescriptionRewardsService.allUsers
TourGuideService.allUsers
TourGuideService.internalUserMap
Methods in com.openclassrooms.tourguide.service that return UserModifier and TypeMethodDescriptionSearch for a user by username.Methods in com.openclassrooms.tourguide.service that return types with arguments of type UserModifier and TypeMethodDescriptionTourGuideService.getAllUsers()
Returns the full list of registered users.Methods in com.openclassrooms.tourguide.service with parameters of type UserModifier and TypeMethodDescriptionvoid
Adds a user to the internal list if it does not already exist.void
RewardsService.calculateRewards
(User user, List<gpsUtil.location.Attraction> attractions) Calculates rewards for a user based on their past visits.RewardsService.calculateRewardsAsync
(User user, List<gpsUtil.location.Attraction> attractions) Calculates rewards for a user asynchronously (in the background).private void
TourGuideService.generateUserLocationHistory
(User user) Generates a random location history for a user.int
RewardsService.getRewardPoints
(gpsUtil.location.Attraction attraction, User user) Returns the number of reward points earned by a user at a given attraction.List<tripPricer.Provider>
TourGuideService.getTripDeals
(User user) Generate a list of personalized travel offers for a user.gpsUtil.location.VisitedLocation
TourGuideService.getUserLocation
(User user) Returns the user's current location.TourGuideService.getUserRewards
(User user) Returns the list of rewards associated with a given user.CompletableFuture<gpsUtil.location.VisitedLocation>
TourGuideService.trackUserLocation
(User user) Starts location tracking for a given user.Method parameters in com.openclassrooms.tourguide.service with type arguments of type UserModifier and TypeMethodDescriptionvoid
RewardsService.calculateRewardsForAllUsers
(List<User> users, List<gpsUtil.location.Attraction> attractions) Calculates rewards for a list of users in parallel.void
RewardsService.setAllUsers
(List<User> allUsers) Replaces the list of service users with a new one.void
TourGuideService.setAllUsers
(List<User> allUsers) Defines a new user list for the service.void
TourGuideService.trackAllUsersLocations
(List<User> users) Starts location tracking for all provided users.