Uses of Class
fr.utc.miage.sporttrack.entity.user.Athlete
Packages that use Athlete
Package
Description
-
Uses of Athlete in fr.utc.miage.sporttrack.controller
Methods in fr.utc.miage.sporttrack.controller that return Athlete -
Uses of Athlete in fr.utc.miage.sporttrack.entity.activity
Methods in fr.utc.miage.sporttrack.entity.activity that return AthleteModifier and TypeMethodDescriptionActivity.getCreatedBy()Returns the athlete who created this activity.Methods in fr.utc.miage.sporttrack.entity.activity with parameters of type AthleteModifier and TypeMethodDescriptionvoidActivity.setCreatedBy(Athlete createdBy) Sets the athlete who created this activity. -
Uses of Athlete in fr.utc.miage.sporttrack.entity.event
Methods in fr.utc.miage.sporttrack.entity.event that return AthleteModifier and TypeMethodDescriptionChallengeRanking.getAthlete()Returns the athlete associated with this ranking.Challenge.getOrganizer()Returns the athlete who organised this challenge.Objective.getUser()Returns the athlete who owns this objective.Methods in fr.utc.miage.sporttrack.entity.event that return types with arguments of type AthleteModifier and TypeMethodDescriptionBadge.getEarnedBy()Returns the list of athletes who have earned this badge.Challenge.getParticipants()Returns the list of athletes participating in this challenge.Methods in fr.utc.miage.sporttrack.entity.event with parameters of type AthleteModifier and TypeMethodDescriptionvoidChallengeRanking.setAthlete(Athlete athlete) Sets the athlete associated with this ranking.voidObjective.setAthlete(Athlete athlete) Sets the athlete who owns this objective.voidChallenge.setOrganizer(Athlete organizer) Sets the athlete who organised this challenge.Method parameters in fr.utc.miage.sporttrack.entity.event with type arguments of type AthleteModifier and TypeMethodDescriptionvoidBadge.setEarnedBy(List<Athlete> earnedBy) Sets the list of athletes who have earned this badge.voidChallenge.setParticipants(List<Athlete> participants) Sets the list of athletes participating in this challenge. -
Uses of Athlete in fr.utc.miage.sporttrack.entity.user.communication
Methods in fr.utc.miage.sporttrack.entity.user.communication that return AthleteModifier and TypeMethodDescriptionNotification.getActor()Returns the athlete who triggered this notification.Comment.getAuthor()Returns the athlete who authored this comment.Friendship.getInitiator()Returns the athlete who initiated the friendship request.Message.getInitiator()Returns the athlete who sent this message.Friendship.getRecipient()Returns the athlete who received the friendship request.Message.getRecipient()Returns the athlete who received this message.Notification.getRecipient()Returns the athlete to whom this notification is addressed.Methods in fr.utc.miage.sporttrack.entity.user.communication with parameters of type AthleteModifier and TypeMethodDescriptionvoidSets the athlete who triggered this notification.voidSets the athlete who authored this comment.voidFriendship.setInitiator(Athlete initiator) Sets the athlete who initiated the friendship request.voidMessage.setInitiator(Athlete initiator) Sets the athlete who sent this message.voidFriendship.setRecipient(Athlete recipient) Sets the athlete who received the friendship request.voidMessage.setRecipient(Athlete recipient) Sets the athlete who received this message.voidNotification.setRecipient(Athlete recipient) Sets the athlete to whom this notification is addressed.Constructors in fr.utc.miage.sporttrack.entity.user.communication with parameters of type AthleteModifierConstructorDescriptionFriendship(Athlete initiator, Athlete recipient) Constructs a new friendship with the specified initiator and recipient.Friendship(Athlete initiator, Athlete recipient, FriendshipStatus status) Constructs a new friendship with the specified initiator, recipient, and initial status. -
Uses of Athlete in fr.utc.miage.sporttrack.repository.event
Methods in fr.utc.miage.sporttrack.repository.event with parameters of type AthleteModifier and TypeMethodDescriptionObjectiveRepository.findByAthlete(Athlete athlete) Finds all objectives belonging to the specified athlete. -
Uses of Athlete in fr.utc.miage.sporttrack.repository.user
Methods in fr.utc.miage.sporttrack.repository.user that return types with arguments of type AthleteModifier and TypeMethodDescriptionAthleteRepository.findByEmail(String email) Finds an athlete by their email address.Finds an athlete by their unique identifier.AthleteRepository.findByUsernameContainingIgnoreCase(String q) Finds all athletes whose username contains the given search string, ignoring case. -
Uses of Athlete in fr.utc.miage.sporttrack.repository.user.communication
Methods in fr.utc.miage.sporttrack.repository.user.communication with parameters of type AthleteModifier and TypeMethodDescriptionbooleanFriendshipRepository.existsBlock(Athlete blocker, Athlete blocked) Checks whether a specific athlete has blocked another athlete (one-directional).FriendshipRepository.findBetweenAthletes(Athlete a, Athlete b) Finds a friendship between two athletes, regardless of direction.FriendshipRepository.findByInitiatorAndStatus(Athlete initiator, FriendshipStatus status) Finds all friendships in which the specified athlete is the initiator and the relationship has the given status.FriendshipRepository.findByRecipientAndStatus(Athlete recipient, FriendshipStatus status) Finds all friendships in which the specified athlete is the recipient and the relationship has the given status. -
Uses of Athlete in fr.utc.miage.sporttrack.service.activity
Methods in fr.utc.miage.sporttrack.service.activity with parameters of type AthleteModifier and TypeMethodDescriptionActivityService.createActivityForAthlete(Athlete athlete, double duration, String title, String description, int repetition, double distance, LocalDate dateA, LocalTime startTime, String locationCity, int sportId) Creates and persists a new activity for the specified athlete with full validation.voidActivityService.deleteByIdForAthlete(Athlete athlete, int id) Deletes an activity owned by the specified athlete, including its associated weather report.ActivityService.findAllByAthlete(Athlete athlete) Returns all activities created by the specified athlete, ordered newest first.ActivityService.findByIdForAthlete(int id, Athlete athlete) Finds an activity by identifier, restricted to those owned by the specified athlete.ActivityService.updateActivityForAthlete(Athlete athlete, int id, double duration, String title, String description, int repetition, double distance, LocalDate dateA, LocalTime startTime, String locationCity, int sportId) Updates an activity owned by the specified athlete with full validation. -
Uses of Athlete in fr.utc.miage.sporttrack.service.event
Methods in fr.utc.miage.sporttrack.service.event with parameters of type AthleteModifier and TypeMethodDescriptionObjectiveService.getObjectivesByUser(Athlete athlete) Returns all objectives belonging to the specified athlete.ObjectiveService.markAsCompleted(int id, Athlete athlete) Marks the specified objective as completed for the given athlete.voidChallengeService.saveChallenge(Challenge challenge, Athlete athlete, Sport sport) Saves a challenge entity, associating it with the given organiser athlete and sport.voidObjectiveService.saveObjective(Objective objective, Athlete athlete, Sport sport) Saves a new objective associated with the given athlete and sport. -
Uses of Athlete in fr.utc.miage.sporttrack.service.user
Methods in fr.utc.miage.sporttrack.service.user that return AthleteModifier and TypeMethodDescriptionAthleteService.getCurrentAthlete(String email) Retrieves the current athlete's profile by their email address.Methods in fr.utc.miage.sporttrack.service.user that return types with arguments of type AthleteModifier and TypeMethodDescriptionAthleteService.getAllAthletes()Returns all registered athletes.AthleteService.searchAthletesByName(String query) Searches for athletes whose username contains the given query string, ignoring case. -
Uses of Athlete in fr.utc.miage.sporttrack.service.user.communication
Methods in fr.utc.miage.sporttrack.service.user.communication that return types with arguments of type AthleteModifier and TypeMethodDescriptionFriendshipService.getFriendsOfAthlete(Integer athleteId) Returns a list of all accepted friends for a specific athlete.FriendshipService.searchVisibleAthletes(Integer currentUserId, String keyword) Searches for athletes visible to the current user.Methods in fr.utc.miage.sporttrack.service.user.communication with parameters of type AthleteModifier and TypeMethodDescriptionCommentService.addComment(Athlete author, Activity activity, String content, InteractionType type) Creates and persists a new comment on an activity.NotificationService.createNotification(Athlete recipient, Athlete actor, NotificationType type, String title, String content, String targetUrl) Creates and persists a new notification.voidNotificationService.notifyActivityPublished(Athlete actor, Activity activity, List<Athlete> recipients) Sends a notification to multiple recipients that a friend has published a new activity.voidNotificationService.notifyBadgeEarned(Athlete athlete, Badge badge) Sends a notification to the athlete that they have earned a badge.voidNotificationService.notifyObjectiveCompleted(Athlete athlete, Objective objective) Sends a notification to the athlete that an objective has been completed.Method parameters in fr.utc.miage.sporttrack.service.user.communication with type arguments of type AthleteModifier and TypeMethodDescriptionvoidNotificationService.notifyActivityPublished(Athlete actor, Activity activity, List<Athlete> recipients) Sends a notification to multiple recipients that a friend has published a new activity.