Index

A B C D E F G H I L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

AbstractIdFormDTO - Class in fr.utc.miage.sporttrack.dto
Base DTO for forms that carry an optional identifier.
AbstractIdFormDTO() - Constructor for class fr.utc.miage.sporttrack.dto.AbstractIdFormDTO
 
ACCEPTED - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.FriendshipStatus
The friendship request has been accepted; both athletes are now connected as friends.
acceptFriendRequest(Integer, HttpSession, RedirectAttributes) - Method in class fr.utc.miage.sporttrack.controller.FriendshipController
Accepts a pending friend request.
acceptFriendRequest(Integer, Integer) - Method in class fr.utc.miage.sporttrack.service.user.communication.FriendshipService
Accept a pending friend request.
Activity - Class in fr.utc.miage.sporttrack.entity.activity
JPA entity representing a sport activity recorded by an athlete within the SportTrack application.
Activity() - Constructor for class fr.utc.miage.sporttrack.entity.activity.Activity
No-argument constructor required by JPA.
ACTIVITY_COUNT - Static variable in class fr.utc.miage.sporttrack.controller.DashboardController
Attribute key for activity count in weekly aggregates.
ACTIVITY_CREATION_RESERVED - Static variable in class fr.utc.miage.sporttrack.util.Messages
Error message when activity creation is reserved for athletes.
ACTIVITY_NOT_FOUND - Static variable in class fr.utc.miage.sporttrack.util.Messages
Error message when activity is not found.
ActivityFormDTO - Class in fr.utc.miage.sporttrack.dto
Data Transfer Object (DTO) used for activity creation and update form binding within the SportTrack application.
ActivityFormDTO() - Constructor for class fr.utc.miage.sporttrack.dto.ActivityFormDTO
 
ActivityRepository - Interface in fr.utc.miage.sporttrack.repository.activity
Spring Data JPA repository for Activity entities.
ActivityService - Class in fr.utc.miage.sporttrack.service.activity
Service layer component responsible for managing Activity entities within the SportTrack application.
ActivityService(ActivityRepository, SportRepository, WeatherReportRepository, ChallengeRankingService) - Constructor for class fr.utc.miage.sporttrack.service.activity.ActivityService
Constructs an ActivityService without friendship/notification support.
ActivityService(ActivityRepository, SportRepository, WeatherReportRepository, ChallengeRankingService, FriendshipService, NotificationService) - Constructor for class fr.utc.miage.sporttrack.service.activity.ActivityService
Constructs an ActivityService with full friendship and notification support.
addComment(int, String, String, String) - Method in class fr.utc.miage.sporttrack.controller.CommentController
Adds a comment or interaction to the specified activity.
addComment(Athlete, Activity, String, InteractionType) - Method in class fr.utc.miage.sporttrack.service.user.communication.CommentService
Creates and persists a new comment on an activity.
addRanking(ChallengeRanking) - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Adds a single ranking entry to this challenge and establishes the bidirectional relationship.
Admin - Class in fr.utc.miage.sporttrack.entity.user
JPA entity representing an administrator user within the SportTrack application.
Admin() - Constructor for class fr.utc.miage.sporttrack.entity.user.Admin
 
ADMIN_HOME_VIEW - Static variable in class fr.utc.miage.sporttrack.controller.ControllerConstants
View name for the admin home.
AdminActivityController - Class in fr.utc.miage.sporttrack.controller
Spring MVC controller for administrator activity management.
AdminActivityController(ActivityService, SportService, WeatherReportService, AdminService) - Constructor for class fr.utc.miage.sporttrack.controller.AdminActivityController
Constructs an AdminActivityController with the required services.
AdminBadgeController - Class in fr.utc.miage.sporttrack.controller
Spring MVC controller for administrator badge management.
AdminBadgeController(BadgeService, SportService, AdminService, SportRepository) - Constructor for class fr.utc.miage.sporttrack.controller.AdminBadgeController
Constructs an AdminBadgeController with the required dependencies.
AdminController - Class in fr.utc.miage.sporttrack.controller
Spring MVC controller for the administrator home page.
AdminController(AdminService) - Constructor for class fr.utc.miage.sporttrack.controller.AdminController
Constructs an AdminController with the required service.
AdminRepository - Interface in fr.utc.miage.sporttrack.repository.user
Spring Data JPA repository for Admin entities.
AdminService - Class in fr.utc.miage.sporttrack.service.user
Service layer component responsible for managing Admin entities within the SportTrack application.
AdminService(AdminRepository, PasswordEncoder, String) - Constructor for class fr.utc.miage.sporttrack.service.user.AdminService
Constructs a new AdminService, seeding a default admin account if the database contains no administrators.
ADVANCED - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.PracticeLevel
Represents an athlete with a high level of experience and proficiency in the sport.
athlete(HttpSession) - Method in class fr.utc.miage.sporttrack.controller.HeaderModelAdvice
Makes the currently authenticated athlete available to all views as a model attribute named "athlete".
Athlete - Class in fr.utc.miage.sporttrack.entity.user
JPA entity representing an athlete user within the SportTrack application.
Athlete() - Constructor for class fr.utc.miage.sporttrack.entity.user.Athlete
 
ATHLETE_ATTR - Static variable in class fr.utc.miage.sporttrack.controller.ControllerConstants
Model attribute name for athlete.
ATHLETE_ATTR - Static variable in class fr.utc.miage.sporttrack.controller.DashboardController
 
ATHLETE_BADGE_LIST_VIEW - Static variable in class fr.utc.miage.sporttrack.controller.ControllerConstants
View name for athlete badges.
ATHLETE_LIST_VIEW - Static variable in class fr.utc.miage.sporttrack.controller.ControllerConstants
View name for the athlete list.
ATHLETE_NOT_FOUND - Static variable in class fr.utc.miage.sporttrack.util.Messages
Error message when user/athlete is not found.
ATHLETE_PROFILE_VIEW - Static variable in class fr.utc.miage.sporttrack.controller.ControllerConstants
View name for the athlete profile.
AthleteActivityController - Class in fr.utc.miage.sporttrack.controller
Spring MVC controller for athlete activity management.
AthleteActivityController(ActivityService, SportService, WeatherReportService, AthleteService, BadgeService, CommentService) - Constructor for class fr.utc.miage.sporttrack.controller.AthleteActivityController
Constructs an AthleteActivityController with the required services.
AthleteController - Class in fr.utc.miage.sporttrack.controller
Spring MVC controller for athlete-related pages.
AthleteController(AthleteService, BadgeService) - Constructor for class fr.utc.miage.sporttrack.controller.AthleteController
Constructs an AthleteController with the required services.
AthleteProfileUpdateDTO - Class in fr.utc.miage.sporttrack.dto
Data Transfer Object (DTO) used for athlete profile update form binding within the SportTrack application.
AthleteProfileUpdateDTO() - Constructor for class fr.utc.miage.sporttrack.dto.AthleteProfileUpdateDTO
 
AthleteRegisterFormDTO - Class in fr.utc.miage.sporttrack.dto
Data Transfer Object (DTO) used for athlete registration form binding within the SportTrack application.
AthleteRegisterFormDTO() - Constructor for class fr.utc.miage.sporttrack.dto.AthleteRegisterFormDTO
 
AthleteRepository - Interface in fr.utc.miage.sporttrack.repository.user
Spring Data JPA repository for Athlete entities.
AthleteService - Class in fr.utc.miage.sporttrack.service.user
Service layer component responsible for managing Athlete entities within the SportTrack application.
AthleteService(AthleteRepository, PasswordEncoder) - Constructor for class fr.utc.miage.sporttrack.service.user.AthleteService
Constructs a new AthleteService with the required dependencies.
AuthController - Class in fr.utc.miage.sporttrack.controller
Spring MVC controller that handles user authentication flows including login and registration.
AuthController(AthleteService) - Constructor for class fr.utc.miage.sporttrack.controller.AuthController
Constructs an AuthController with the required service.
AVERAGE - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.InteractionType
Indicates a neutral or lukewarm response to an activity.

B

Badge - Class in fr.utc.miage.sporttrack.entity.event
JPA entity representing an achievement badge within the SportTrack application.
Badge() - Constructor for class fr.utc.miage.sporttrack.entity.event.Badge
No-argument constructor required by JPA.
BADGE_EARNED - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.NotificationType
Notification sent when an athlete earns a new badge achievement.
BADGE_NOT_FOUND - Static variable in class fr.utc.miage.sporttrack.util.Messages
Error message when badge is not found.
BadgeController - Class in fr.utc.miage.sporttrack.controller
Spring MVC controller for athlete badge views.
BadgeController(BadgeService, AthleteRepository) - Constructor for class fr.utc.miage.sporttrack.controller.BadgeController
Constructs a BadgeController with the required dependencies.
BadgeFormDTO - Class in fr.utc.miage.sporttrack.dto
Data Transfer Object (DTO) used for badge creation and update form binding within the SportTrack application.
BadgeFormDTO() - Constructor for class fr.utc.miage.sporttrack.dto.BadgeFormDTO
 
BadgeRepository - Interface in fr.utc.miage.sporttrack.repository.event
Spring Data JPA repository for Badge entities.
BADGES_ATTR - Static variable in class fr.utc.miage.sporttrack.controller.ControllerConstants
Model attribute name for badges.
BadgeService - Class in fr.utc.miage.sporttrack.service.event
Service layer component responsible for managing Badge entities within the SportTrack application.
BadgeService(BadgeRepository, ActivityRepository) - Constructor for class fr.utc.miage.sporttrack.service.event.BadgeService
Constructs a BadgeService without notification support.
BadgeService(BadgeRepository, ActivityRepository, NotificationService) - Constructor for class fr.utc.miage.sporttrack.service.event.BadgeService
Constructs a BadgeService with full notification support.
BaseController - Class in fr.utc.miage.sporttrack.controller
Spring MVC controller that handles the application's home page.
BaseController(AthleteService, AdminService, BadgeService, FriendshipService, ActivityService) - Constructor for class fr.utc.miage.sporttrack.controller.BaseController
Constructs a BaseController with the required services.
BEGINNER - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.PracticeLevel
Represents an athlete who is new to the sport with little or no prior experience.
BLOCKED - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.FriendshipStatus
One athlete has blocked the other, preventing any further communication or interaction.
BLOCKED_BY_ME - Enum constant in enum class fr.utc.miage.sporttrack.dto.RelationshipStatusDTO
The current user has blocked the target user.
BLOCKED_ME - Enum constant in enum class fr.utc.miage.sporttrack.dto.RelationshipStatusDTO
The target user has blocked the current user.
blockUser(Integer, HttpSession, RedirectAttributes) - Method in class fr.utc.miage.sporttrack.controller.FriendshipController
Blocks another user.
blockUser(Integer, Integer) - Method in class fr.utc.miage.sporttrack.service.user.communication.FriendshipService
Blocks a user.

C

Challenge - Class in fr.utc.miage.sporttrack.entity.event
JPA entity representing a competitive challenge within the SportTrack application.
Challenge() - Constructor for class fr.utc.miage.sporttrack.entity.event.Challenge
No-argument constructor required by JPA.
Challenge(String, String, LocalDate, LocalDate, Metric) - Constructor for class fr.utc.miage.sporttrack.entity.event.Challenge
Constructs a new challenge with the specified name, description, date range, and metric.
CHALLENGE_ENDED - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.NotificationType
Notification sent when a challenge has concluded and results are available.
CHALLENGE_NOT_FOUND - Static variable in class fr.utc.miage.sporttrack.util.Messages
Error message when challenge is not found.
ChallengeController - Class in fr.utc.miage.sporttrack.controller
Spring MVC controller for challenge management and participation.
ChallengeController(SportRepository, AthleteRepository, ChallengeRepository, SportService, ChallengeRankingService) - Constructor for class fr.utc.miage.sporttrack.controller.ChallengeController
Constructs a ChallengeController with the required dependencies.
ChallengeFormDTO - Class in fr.utc.miage.sporttrack.dto
Data Transfer Object (DTO) used for challenge creation and update form binding within the SportTrack application.
ChallengeFormDTO() - Constructor for class fr.utc.miage.sporttrack.dto.ChallengeFormDTO
 
ChallengeNotificationScheduler - Class in fr.utc.miage.sporttrack.service.event
 
ChallengeNotificationScheduler(ChallengeRepository, NotificationService) - Constructor for class fr.utc.miage.sporttrack.service.event.ChallengeNotificationScheduler
 
ChallengeRanking - Class in fr.utc.miage.sporttrack.entity.event
JPA entity representing a single ranking entry within a Challenge.
ChallengeRanking() - Constructor for class fr.utc.miage.sporttrack.entity.event.ChallengeRanking
 
ChallengeRankingService - Class in fr.utc.miage.sporttrack.service.event
Service layer component responsible for computing and persisting ChallengeRanking entries for Challenge entities.
ChallengeRankingService(ChallengeRepository, ActivityRepository) - Constructor for class fr.utc.miage.sporttrack.service.event.ChallengeRankingService
Constructs a new ChallengeRankingService with the required repositories.
ChallengeRepository - Interface in fr.utc.miage.sporttrack.repository.event
Spring Data JPA repository for Challenge entities.
CHALLENGES_ATTR - Static variable in class fr.utc.miage.sporttrack.controller.ControllerConstants
Model attribute name for challenges.
ChallengeService - Class in fr.utc.miage.sporttrack.service.event
Service layer component responsible for managing Challenge entities within the SportTrack application.
ChallengeService(ChallengeRepository) - Constructor for class fr.utc.miage.sporttrack.service.event.ChallengeService
Constructs a new ChallengeService with the given repository.
checkAdminLoggedIn(Authentication) - Method in class fr.utc.miage.sporttrack.service.user.AdminService
Checks whether the given authentication object represents a logged-in admin.
checkAndAwardBadges(Activity) - Method in class fr.utc.miage.sporttrack.service.event.BadgeService
Checks and awards badges after an activity is created.
CHEER - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.InteractionType
Indicates an encouraging "cheer" reaction to an activity.
Comment - Class in fr.utc.miage.sporttrack.entity.user.communication
JPA entity representing a comment or interaction left by an athlete on an activity within the SportTrack application.
Comment() - Constructor for class fr.utc.miage.sporttrack.entity.user.communication.Comment
No-argument constructor required by JPA.
CommentController - Class in fr.utc.miage.sporttrack.controller
Spring MVC controller for adding comments (social interactions) to activities.
CommentController(CommentService, ActivityService, AthleteService) - Constructor for class fr.utc.miage.sporttrack.controller.CommentController
Constructs a new CommentController with the specified services.
CommentRepository - Interface in fr.utc.miage.sporttrack.repository.user.communication
Spring Data JPA repository for Comment entities.
CommentService - Class in fr.utc.miage.sporttrack.service.user.communication
Service layer component responsible for managing Comment entities within the SportTrack application.
CommentService(CommentRepository) - Constructor for class fr.utc.miage.sporttrack.service.user.communication.CommentService
Constructs a new CommentService with the given repository.
completeObjective(int, HttpSession, RedirectAttributes) - Method in class fr.utc.miage.sporttrack.controller.ObjectiveController
Marks the specified objective as completed for the authenticated athlete.
ControllerConstants - Class in fr.utc.miage.sporttrack.controller
Centralized constants for Spring MVC controllers.
COUNT - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.Metric
Counts the number of different days on which activities were performed.
countByRecipientIdAndSeenFalse(Integer) - Method in interface fr.utc.miage.sporttrack.repository.user.communication.MessageRepository
Counts the number of unseen (unread) messages for the specified recipient.
countByRecipientIdAndSeenFalse(Integer) - Method in interface fr.utc.miage.sporttrack.repository.user.communication.NotificationRepository
Counts the number of unseen notifications for the specified recipient.
countUnreadMessages(Integer) - Method in class fr.utc.miage.sporttrack.service.user.communication.MessageService
Counts the total number of unread messages for the specified athlete.
countUnreadNotifications(Integer) - Method in class fr.utc.miage.sporttrack.service.user.communication.NotificationService
Counts the number of unread notifications for the specified athlete.
createActivityForAthlete(Athlete, double, String, String, int, double, LocalDate, LocalTime, String, int) - Method in class fr.utc.miage.sporttrack.service.activity.ActivityService
Creates and persists a new activity for the specified athlete with full validation.
createChallenge(ChallengeFormDTO, Integer, HttpSession, Model) - Method in class fr.utc.miage.sporttrack.controller.ChallengeController
Creates a new challenge from the submitted form data and initialises its ranking.
CREATED_PARAM - Static variable in class fr.utc.miage.sporttrack.controller.ControllerConstants
Request parameter name for creation.
createNotification(Athlete, Athlete, NotificationType, String, String, String) - Method in class fr.utc.miage.sporttrack.service.user.communication.NotificationService
Creates and persists a new notification.
createObjective(HttpSession, String, String, Integer) - Method in class fr.utc.miage.sporttrack.controller.ObjectiveController
Creates a new objective for the authenticated athlete.
createProfile(AthleteRegisterFormDTO) - Method in class fr.utc.miage.sporttrack.service.user.AthleteService
Creates a new athlete profile from a registration form DTO.
createSport(String, String, double, SportType) - Method in class fr.utc.miage.sporttrack.service.activity.SportService
Creates and persists a new sport with the provided attributes.

D

DashboardController - Class in fr.utc.miage.sporttrack.controller
Spring MVC controller for the athlete dashboard views.
DashboardController(ActivityService, ObjectiveService, SportService, AthleteRepository) - Constructor for class fr.utc.miage.sporttrack.controller.DashboardController
Constructs a DashboardController with the required dependencies.
DEFAULT_PAGE_SIZE - Static variable in class fr.utc.miage.sporttrack.util.ValidationConstants
Default page size for paginated results.
deleteActivity(int, RedirectAttributes, Authentication) - Method in class fr.utc.miage.sporttrack.controller.AdminActivityController
Deletes the activity with the given identifier.
deleteActivity(int, RedirectAttributes, Authentication) - Method in class fr.utc.miage.sporttrack.controller.AthleteActivityController
Deletes an activity owned by the authenticated athlete.
deleteBadge(int, RedirectAttributes, Authentication) - Method in class fr.utc.miage.sporttrack.controller.AdminBadgeController
Deletes the badge with the given identifier.
deleteByActivity_Id(int) - Method in interface fr.utc.miage.sporttrack.repository.activity.WeatherReportRepository
Deletes the weather report associated with the specified activity.
deleteById(int) - Method in class fr.utc.miage.sporttrack.service.activity.ActivityService
Deletes an activity by its identifier, including its associated weather report.
deleteById(int) - Method in class fr.utc.miage.sporttrack.service.event.BadgeService
Deletes the badge with the given identifier.
deleteById(int) - Method in class fr.utc.miage.sporttrack.service.event.ObjectiveService
Deletes the objective with the given identifier.
deleteByIdForAthlete(Athlete, int) - Method in class fr.utc.miage.sporttrack.service.activity.ActivityService
Deletes an activity owned by the specified athlete, including its associated weather report.
deleteComment(int) - Method in class fr.utc.miage.sporttrack.service.user.communication.CommentService
Deletes the comment with the given identifier.
DELETED_PARAM - Static variable in class fr.utc.miage.sporttrack.controller.ControllerConstants
Request parameter name for deletion.
deleteObjective(int) - Method in class fr.utc.miage.sporttrack.controller.ObjectiveController
Deletes the objective with the given identifier.
disable(int, Authentication) - Method in class fr.utc.miage.sporttrack.controller.SportController
Disables the sport with the given identifier, hiding it from athlete selection.
disableSport(int) - Method in class fr.utc.miage.sporttrack.service.activity.SportService
Disables a sport by setting its active flag to false.
DISTANCE - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.Metric
Measures the total distance covered during an activity.
DISTANCE - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.SportType
The sport is measured by the total distance covered during the activity.
DURATION - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.Metric
Measures the total elapsed time of an activity.
DURATION - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.SportType
The sport is measured by the total duration of the activity session.

E

enable(int, Authentication) - Method in class fr.utc.miage.sporttrack.controller.SportController
Enables the sport with the given identifier, making it available for athlete use.
enableSport(int) - Method in class fr.utc.miage.sporttrack.service.activity.SportService
Enables a sport by setting its active flag to true.
equals(Object) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Friendship
Compares this friendship to another object for equality based on the database identifier.
equals(Object) - Method in class fr.utc.miage.sporttrack.entity.user.User
Compares this user to another object for equality based on the database identifier and email address.
ERROR_ATTR - Static variable in class fr.utc.miage.sporttrack.controller.ControllerConstants
Model attribute name for error messages.
existsBlock(Athlete, Athlete) - Method in interface fr.utc.miage.sporttrack.repository.user.communication.FriendshipRepository
Checks whether a specific athlete has blocked another athlete (one-directional).
existsByEmail(String) - Method in interface fr.utc.miage.sporttrack.repository.user.AthleteRepository
Checks whether an athlete with the specified email address already exists.
existsByIdAndCreatedBy_Id(Integer, Integer) - Method in interface fr.utc.miage.sporttrack.repository.activity.ActivityRepository
Checks whether an activity with the given identifier was created by the specified athlete.

F

FEMALE - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.Gender
Represents the female gender.
filterByDate(Activity, LocalDate, LocalDate) - Method in class fr.utc.miage.sporttrack.service.activity.ActivityService
Filters an activity by checking whether its date falls within the specified range.
filterBySport(Activity, Sport) - Method in class fr.utc.miage.sporttrack.service.activity.ActivityService
Filters an activity by matching its associated sport against a selected sport.
findActivitiesForChallengeRanking(List<Integer>, Integer, LocalDate, LocalDate) - Method in interface fr.utc.miage.sporttrack.repository.activity.ActivityRepository
Finds activities matching the criteria for challenge ranking computation.
findAll() - Method in interface fr.utc.miage.sporttrack.repository.event.ChallengeRepository
Returns all challenges in the database.
findAll() - Method in class fr.utc.miage.sporttrack.service.activity.ActivityService
Returns all activities in the database.
findAll() - Method in class fr.utc.miage.sporttrack.service.activity.SportService
Returns all sports, both active and inactive.
findAll() - Method in class fr.utc.miage.sporttrack.service.event.BadgeService
Returns all badges in the database.
findAllActive() - Method in class fr.utc.miage.sporttrack.service.activity.SportService
Returns only active sports.
findAllByActive(boolean) - Method in interface fr.utc.miage.sporttrack.repository.activity.SportRepository
Finds all sports matching the given active status.
findAllByAthlete(Athlete) - Method in class fr.utc.miage.sporttrack.service.activity.ActivityService
Returns all activities created by the specified athlete, ordered newest first.
findAllByAthleteIds(List<Integer>) - Method in class fr.utc.miage.sporttrack.service.activity.ActivityService
Returns all activities created by any of the specified athlete identifiers.
findBetweenAthletes(Athlete, Athlete) - Method in interface fr.utc.miage.sporttrack.repository.user.communication.FriendshipRepository
Finds a friendship between two athletes, regardless of direction.
findBlockedByUserIds(Integer) - Method in interface fr.utc.miage.sporttrack.repository.user.communication.FriendshipRepository
Returns the identifiers of all users who have blocked the specified user.
findBlockedUserIds(Integer) - Method in interface fr.utc.miage.sporttrack.repository.user.communication.FriendshipRepository
Returns the identifiers of all users that the specified user has blocked.
findByActivity_Id(int) - Method in interface fr.utc.miage.sporttrack.repository.activity.WeatherReportRepository
Finds the weather report associated with the specified activity.
findByActivityId(int) - Method in class fr.utc.miage.sporttrack.service.activity.WeatherReportService
Finds the weather report associated with the specified activity.
findByActivityIdOrderByCreatedAtDesc(int) - Method in interface fr.utc.miage.sporttrack.repository.user.communication.CommentRepository
Finds all comments attached to the specified activity, ordered by creation time descending.
findByAthlete(Athlete) - Method in interface fr.utc.miage.sporttrack.repository.event.ObjectiveRepository
Finds all objectives belonging to the specified athlete.
findByAthleteAndStatus(Integer, FriendshipStatus) - Method in interface fr.utc.miage.sporttrack.repository.user.communication.FriendshipRepository
Finds all friendships for a given athlete and status, regardless of direction.
findByCreatedBy_IdInOrderByDateADescStartTimeDesc(List<Integer>) - Method in interface fr.utc.miage.sporttrack.repository.activity.ActivityRepository
Finds all activities created by any of the specified athletes, ordered by date and start time descending.
findByCreatedBy_IdOrderByDateADescStartTimeDesc(Integer) - Method in interface fr.utc.miage.sporttrack.repository.activity.ActivityRepository
Finds all activities created by a specific athlete, ordered by date and start time descending.
findByEarnedBy_Id(Integer) - Method in interface fr.utc.miage.sporttrack.repository.event.BadgeRepository
Finds all badges earned by the specified athlete.
findByEmail(String) - Method in interface fr.utc.miage.sporttrack.repository.user.AdminRepository
Finds an administrator by their email address.
findByEmail(String) - Method in interface fr.utc.miage.sporttrack.repository.user.AthleteRepository
Finds an athlete by their email address.
findByEmail(String) - Method in class fr.utc.miage.sporttrack.service.user.AdminService
Finds an administrator by their email address.
findByEndDateLessThanEqualAndEndedNotifiedAtIsNull(LocalDate) - Method in interface fr.utc.miage.sporttrack.repository.event.ChallengeRepository
Finds all challenges whose end date is on or before the given date and for which no end notification has yet been sent.
findById(int) - Method in interface fr.utc.miage.sporttrack.repository.event.ChallengeRepository
Finds a challenge by its identifier.
findById(int) - Method in class fr.utc.miage.sporttrack.service.activity.ActivityService
Finds an activity by its unique identifier.
findById(int) - Method in class fr.utc.miage.sporttrack.service.activity.SportService
Finds a sport by its unique identifier.
findById(int) - Method in class fr.utc.miage.sporttrack.service.event.BadgeService
Finds a badge by its unique identifier.
findById(Integer) - Method in interface fr.utc.miage.sporttrack.repository.user.AthleteRepository
Finds an athlete by their unique identifier.
findByIdAndAthlete_Id(int, Integer) - Method in interface fr.utc.miage.sporttrack.repository.event.ObjectiveRepository
Finds an objective by its identifier and the identifier of the owning athlete.
findByIdAndCreatedBy_Id(Integer, Integer) - Method in interface fr.utc.miage.sporttrack.repository.activity.ActivityRepository
Finds a single activity by its identifier and the identifier of the athlete who created it.
findByIdAndRecipientId(Integer, Integer) - Method in interface fr.utc.miage.sporttrack.repository.user.communication.NotificationRepository
Finds a notification by its identifier and the identifier of its recipient.
findByIdForAthlete(int, Athlete) - Method in class fr.utc.miage.sporttrack.service.activity.ActivityService
Finds an activity by identifier, restricted to those owned by the specified athlete.
findByIdNotIn(List<Integer>) - Method in interface fr.utc.miage.sporttrack.repository.event.BadgeRepository
Finds all badges whose identifiers are not in the provided list.
findByInitiatorAndStatus(Athlete, FriendshipStatus) - Method in interface fr.utc.miage.sporttrack.repository.user.communication.FriendshipRepository
Finds all friendships in which the specified athlete is the initiator and the relationship has the given status.
findByInitiatorIdOrRecipientIdOrderBySentAtDesc(Integer, Integer) - Method in interface fr.utc.miage.sporttrack.repository.user.communication.MessageRepository
Finds all messages in which the specified athlete is either the sender or the recipient, ordered by send time descending.
findByRecipientAndStatus(Athlete, FriendshipStatus) - Method in interface fr.utc.miage.sporttrack.repository.user.communication.FriendshipRepository
Finds all friendships in which the specified athlete is the recipient and the relationship has the given status.
findByRecipientIdAndSeenFalseOrderByCreatedAtDesc(Integer) - Method in interface fr.utc.miage.sporttrack.repository.user.communication.NotificationRepository
Finds all unseen notifications for the specified recipient, ordered by creation time descending.
findByRecipientIdOrderByCreatedAtDesc(Integer) - Method in interface fr.utc.miage.sporttrack.repository.user.communication.NotificationRepository
Finds all notifications for the specified recipient, ordered by creation time descending.
findBySportId(Integer) - Method in interface fr.utc.miage.sporttrack.repository.event.BadgeRepository
Finds all badges associated with the specified sport.
findBySportIsNull() - Method in interface fr.utc.miage.sporttrack.repository.event.BadgeRepository
Finds all badges with no sport assigned (universal badges that apply to all sports).
findByUsernameContainingIgnoreCase(String) - Method in interface fr.utc.miage.sporttrack.repository.user.AthleteRepository
Finds all athletes whose username contains the given search string, ignoring case.
findChallengesImpactedByActivity(Integer, Integer, LocalDate) - Method in interface fr.utc.miage.sporttrack.repository.event.ChallengeRepository
Finds all active challenges that are impacted by a newly created activity.
findConversation(Integer, Integer) - Method in interface fr.utc.miage.sporttrack.repository.user.communication.MessageRepository
Retrieves the full conversation between two athletes, ordered by send time ascending.
findDistinctByOrganizer_IdOrParticipants_Id(int, int) - Method in interface fr.utc.miage.sporttrack.repository.event.ChallengeRepository
Finds all distinct challenges in which the given athlete is either the organiser or a participant.
findTop10ByRecipientIdOrderByCreatedAtDesc(Integer) - Method in interface fr.utc.miage.sporttrack.repository.user.communication.NotificationRepository
Finds the ten most recent notifications for the specified recipient.
fr.utc.miage.sporttrack - package fr.utc.miage.sporttrack
 
fr.utc.miage.sporttrack.config - package fr.utc.miage.sporttrack.config
 
fr.utc.miage.sporttrack.controller - package fr.utc.miage.sporttrack.controller
 
fr.utc.miage.sporttrack.dto - package fr.utc.miage.sporttrack.dto
 
fr.utc.miage.sporttrack.entity.activity - package fr.utc.miage.sporttrack.entity.activity
 
fr.utc.miage.sporttrack.entity.enumeration - package fr.utc.miage.sporttrack.entity.enumeration
 
fr.utc.miage.sporttrack.entity.event - package fr.utc.miage.sporttrack.entity.event
 
fr.utc.miage.sporttrack.entity.user - package fr.utc.miage.sporttrack.entity.user
 
fr.utc.miage.sporttrack.entity.user.communication - package fr.utc.miage.sporttrack.entity.user.communication
 
fr.utc.miage.sporttrack.repository.activity - package fr.utc.miage.sporttrack.repository.activity
 
fr.utc.miage.sporttrack.repository.event - package fr.utc.miage.sporttrack.repository.event
 
fr.utc.miage.sporttrack.repository.user - package fr.utc.miage.sporttrack.repository.user
 
fr.utc.miage.sporttrack.repository.user.communication - package fr.utc.miage.sporttrack.repository.user.communication
 
fr.utc.miage.sporttrack.service.activity - package fr.utc.miage.sporttrack.service.activity
 
fr.utc.miage.sporttrack.service.event - package fr.utc.miage.sporttrack.service.event
 
fr.utc.miage.sporttrack.service.user - package fr.utc.miage.sporttrack.service.user
 
fr.utc.miage.sporttrack.service.user.communication - package fr.utc.miage.sporttrack.service.user.communication
 
fr.utc.miage.sporttrack.util - package fr.utc.miage.sporttrack.util
 
FRIEND_ACTIVITY - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.NotificationType
Notification sent when a friend logs a new activity.
FRIEND_REMOVED - Static variable in class fr.utc.miage.sporttrack.util.Messages
Success message for friend removed.
FRIEND_REQUEST - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.NotificationType
Notification sent when an athlete receives a new friendship request.
FRIEND_REQUEST_ACCEPTED - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.NotificationType
Notification sent when a previously sent friendship request has been accepted.
FRIEND_REQUEST_ACCEPTED - Static variable in class fr.utc.miage.sporttrack.util.Messages
Success message for friend request accepted.
FRIEND_REQUEST_REJECTED - Static variable in class fr.utc.miage.sporttrack.util.Messages
Success message for friend request rejected.
FRIEND_REQUEST_SENT - Static variable in class fr.utc.miage.sporttrack.util.Messages
Success message for friend request sent.
friendProfile(Integer, HttpSession, Model) - Method in class fr.utc.miage.sporttrack.controller.FriendshipController
Shows a friend's profile page with relationship status.
FRIENDS - Enum constant in enum class fr.utc.miage.sporttrack.dto.RelationshipStatusDTO
Both athletes are already friends (FriendshipStatus.ACCEPTED).
friendsActivities(HttpSession, Model) - Method in class fr.utc.miage.sporttrack.controller.FriendshipController
Shows the aggregated activity feed for all accepted friends.
Friendship - Class in fr.utc.miage.sporttrack.entity.user.communication
JPA entity representing a friendship relationship between two athletes within the SportTrack application.
Friendship() - Constructor for class fr.utc.miage.sporttrack.entity.user.communication.Friendship
No-argument constructor required by JPA.
Friendship(Athlete, Athlete) - Constructor for class fr.utc.miage.sporttrack.entity.user.communication.Friendship
Constructs a new friendship with the specified initiator and recipient.
Friendship(Athlete, Athlete, FriendshipStatus) - Constructor for class fr.utc.miage.sporttrack.entity.user.communication.Friendship
Constructs a new friendship with the specified initiator, recipient, and initial status.
FriendshipController - Class in fr.utc.miage.sporttrack.controller
Spring MVC controller for friendship-related pages and actions.
FriendshipController(FriendshipService, FriendshipRepository, AthleteRepository, AthleteService, ActivityService, WeatherReportService, BadgeService, CommentService) - Constructor for class fr.utc.miage.sporttrack.controller.FriendshipController
Constructs a FriendshipController with the required dependencies.
FriendshipRepository - Interface in fr.utc.miage.sporttrack.repository.user.communication
Spring Data JPA repository for Friendship entities.
FriendshipService - Class in fr.utc.miage.sporttrack.service.user.communication
Service layer component responsible for managing Friendship relationships between athletes within the SportTrack application.
FriendshipService(FriendshipRepository, AthleteRepository) - Constructor for class fr.utc.miage.sporttrack.service.user.communication.FriendshipService
Constructs a FriendshipService without notification support.
FriendshipService(FriendshipRepository, AthleteRepository, NotificationService) - Constructor for class fr.utc.miage.sporttrack.service.user.communication.FriendshipService
Constructs a FriendshipService with full notification support.
FriendshipStatus - Enum Class in fr.utc.miage.sporttrack.entity.enumeration
Enumeration representing the possible statuses of a friendship relationship between two athletes within the SportTrack application.
friendsPage(HttpSession, String, String, Model) - Method in class fr.utc.miage.sporttrack.controller.FriendshipController
Shows the main friendship management page with 5 tabs.

G

Gender - Enum Class in fr.utc.miage.sporttrack.entity.enumeration
Enumeration representing the gender options available for a user within the SportTrack application.
getActivity() - Method in class fr.utc.miage.sporttrack.entity.activity.WeatherReport
Returns the activity to which this weather report is linked.
getActivity() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Comment
Returns the activity to which this comment is attached.
getActor() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Notification
Returns the athlete who triggered this notification.
getAge() - Method in class fr.utc.miage.sporttrack.dto.AthleteProfileUpdateDTO
Returns the age of the athlete.
getAge() - Method in class fr.utc.miage.sporttrack.entity.user.Athlete
Returns the age of this athlete.
getAllAthletes() - Method in class fr.utc.miage.sporttrack.service.user.AthleteService
Returns all registered athletes.
getAthlete() - Method in class fr.utc.miage.sporttrack.entity.event.ChallengeRanking
Returns the athlete associated with this ranking.
getAuthor() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Comment
Returns the athlete who authored this comment.
getBio() - Method in class fr.utc.miage.sporttrack.dto.AthleteProfileUpdateDTO
Returns the personal biography of the athlete.
getBio() - Method in class fr.utc.miage.sporttrack.entity.user.Athlete
Returns the personal biography of this athlete.
getBlockedUsers(Integer) - Method in class fr.utc.miage.sporttrack.service.user.communication.FriendshipService
Returns all users blocked by the given athlete.
getCaloriesBurned() - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Calculates the estimated calories burned during this activity, based on the duration and the sport's calories-per-hour rate.
getCaloriesPerHour() - Method in class fr.utc.miage.sporttrack.dto.SportFormDTO
Returns the average calorie burn rate per hour for this sport.
getCaloriesPerHour() - Method in class fr.utc.miage.sporttrack.entity.activity.Sport
Returns the average calorie burn rate per hour for this sport.
getChallenge() - Method in class fr.utc.miage.sporttrack.entity.event.ChallengeRanking
Returns the challenge to which this ranking belongs.
getChallengeById(int) - Method in class fr.utc.miage.sporttrack.service.event.ChallengeService
Retrieves a challenge by its unique identifier.
getCity() - Method in class fr.utc.miage.sporttrack.dto.MeteoDTO
Returns the city name for the weather data.
getCity() - Method in class fr.utc.miage.sporttrack.entity.activity.WeatherReport
Returns the city name associated with this weather report.
getComments() - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
 
getCommentsForActivity(int) - Method in class fr.utc.miage.sporttrack.service.user.communication.CommentService
Returns all comments for the specified activity, ordered by creation time descending.
getCompletedAt() - Method in class fr.utc.miage.sporttrack.entity.event.Objective
Returns the timestamp at which this objective was completed.
getContent() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Comment
Returns the textual content of this comment.
getContent() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Message
Returns the textual content of this message.
getContent() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Notification
Returns the content of this notification.
getConversation(Integer, Integer) - Method in class fr.utc.miage.sporttrack.service.user.communication.MessageService
Retrieves the full conversation between two friends and marks all messages as seen.
getCountry() - Method in class fr.utc.miage.sporttrack.dto.MeteoDTO
Returns the country for the weather data.
getCountry() - Method in class fr.utc.miage.sporttrack.entity.activity.WeatherReport
Returns the country associated with this weather report.
getCreatedAt() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Comment
Returns the creation timestamp of this comment.
getCreatedAt() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Friendship
Returns the creation timestamp of this friendship record.
getCreatedAt() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Notification
Returns the creation timestamp of this notification.
getCreatedBy() - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Returns the athlete who created this activity.
getCreatedByDisplayName() - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Returns the display name of the athlete who created this activity.
getCurrentAthlete(String) - Method in class fr.utc.miage.sporttrack.service.user.AthleteService
Retrieves the current athlete's profile by their email address.
getDateA() - Method in class fr.utc.miage.sporttrack.dto.ActivityFormDTO
Returns the date of the activity.
getDateA() - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Returns the date on which this activity took place.
getDescription() - Method in class fr.utc.miage.sporttrack.dto.ActivityFormDTO
Returns the description of the activity.
getDescription() - Method in class fr.utc.miage.sporttrack.dto.BadgeFormDTO
Returns the description of the badge's earning criteria.
getDescription() - Method in class fr.utc.miage.sporttrack.dto.ChallengeFormDTO
Returns the textual description of the challenge.
getDescription() - Method in class fr.utc.miage.sporttrack.dto.SportFormDTO
Returns the textual description of the sport.
getDescription() - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Returns the description of this activity.
getDescription() - Method in class fr.utc.miage.sporttrack.entity.activity.Sport
Returns the textual description of this sport.
getDescription() - Method in class fr.utc.miage.sporttrack.entity.event.Badge
Returns the description of this badge's earning criteria.
getDescription() - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Returns the textual description of this challenge.
getDescription() - Method in class fr.utc.miage.sporttrack.entity.event.Objective
Returns the textual description of this objective.
getDisplayName() - Method in class fr.utc.miage.sporttrack.entity.event.ChallengeRanking
Returns the display name of the ranked athlete.
getDisplayValue() - Method in enum class fr.utc.miage.sporttrack.entity.enumeration.Gender
Returns the localized display label associated with this gender constant.
getDisplayValue() - Method in enum class fr.utc.miage.sporttrack.entity.enumeration.InteractionType
Returns the localized display label associated with this interaction type.
getDisplayValue() - Method in enum class fr.utc.miage.sporttrack.entity.enumeration.Metric
Returns the localized display label associated with this metric.
getDisplayValue() - Method in enum class fr.utc.miage.sporttrack.entity.enumeration.PracticeLevel
Returns the localized display label associated with this practice level.
getDisplayValue() - Method in enum class fr.utc.miage.sporttrack.entity.enumeration.SportType
Returns the localized display label associated with this sport type.
getDistance() - Method in class fr.utc.miage.sporttrack.dto.ActivityFormDTO
Returns the distance covered during the activity.
getDistance() - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Returns the distance covered during this activity.
getDuration() - Method in class fr.utc.miage.sporttrack.dto.ActivityFormDTO
Returns the total duration of the activity.
getDuration() - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Returns the total duration of the activity.
getEarnedBadges(Integer) - Method in class fr.utc.miage.sporttrack.service.event.BadgeService
Returns all badges earned by the specified athlete.
getEarnedBy() - Method in class fr.utc.miage.sporttrack.entity.event.Badge
Returns the list of athletes who have earned this badge.
getEmail() - Method in class fr.utc.miage.sporttrack.dto.AthleteRegisterFormDTO
Returns the email address provided during registration.
getEmail() - Method in class fr.utc.miage.sporttrack.entity.user.User
Returns the email address of this user.
getEndDate() - Method in class fr.utc.miage.sporttrack.dto.ChallengeFormDTO
Returns the end date of the challenge.
getEndDate() - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Returns the end date of this challenge.
getEndedNotifiedAt() - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Returns the timestamp at which the end-of-challenge notification was sent.
getFirstName() - Method in class fr.utc.miage.sporttrack.dto.AthleteProfileUpdateDTO
Returns the first name of the athlete.
getFirstName() - Method in class fr.utc.miage.sporttrack.entity.user.User
Returns the first name (given name) of this user.
getFormattedScore() - Method in class fr.utc.miage.sporttrack.entity.event.ChallengeRanking
Returns the score formatted for display in the French locale.
getFriendsOfAthlete(Integer) - Method in class fr.utc.miage.sporttrack.service.user.communication.FriendshipService
Returns a list of all accepted friends for a specific athlete.
getGender() - Method in class fr.utc.miage.sporttrack.dto.AthleteProfileUpdateDTO
Returns the gender of the athlete.
getGender() - Method in class fr.utc.miage.sporttrack.entity.user.Athlete
Returns the gender of this athlete.
getHeight() - Method in class fr.utc.miage.sporttrack.dto.AthleteProfileUpdateDTO
Returns the height of the athlete.
getHeight() - Method in class fr.utc.miage.sporttrack.entity.user.Athlete
Returns the height of this athlete.
getIcon() - Method in class fr.utc.miage.sporttrack.dto.BadgeFormDTO
Returns the CSS icon class name for this badge.
getIcon() - Method in class fr.utc.miage.sporttrack.entity.event.Badge
Returns the CSS icon class name for this badge.
getId() - Method in class fr.utc.miage.sporttrack.dto.AbstractIdFormDTO
 
getId() - Method in class fr.utc.miage.sporttrack.dto.ActivityFormDTO
Returns the unique identifier of the activity.
getId() - Method in class fr.utc.miage.sporttrack.dto.BadgeFormDTO
Returns the unique identifier of the badge.
getId() - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Returns the unique identifier of this activity.
getId() - Method in class fr.utc.miage.sporttrack.entity.activity.Sport
Returns the unique identifier of this sport.
getId() - Method in class fr.utc.miage.sporttrack.entity.activity.WeatherReport
Returns the unique identifier of this weather report.
getId() - Method in class fr.utc.miage.sporttrack.entity.event.Badge
Returns the unique identifier of this badge.
getId() - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Returns the unique identifier of this challenge.
getId() - Method in class fr.utc.miage.sporttrack.entity.event.ChallengeRanking
Returns the unique identifier of this ranking entry.
getId() - Method in class fr.utc.miage.sporttrack.entity.event.Objective
Returns the unique identifier of this objective.
getId() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Comment
Returns the unique identifier of this comment.
getId() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Friendship
Returns the unique identifier of this friendship.
getId() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Message
Returns the unique identifier of this message.
getId() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Notification
Returns the unique identifier of this notification.
getId() - Method in class fr.utc.miage.sporttrack.entity.user.User
Returns the unique identifier of this user.
getInitiator() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Friendship
Returns the athlete who initiated the friendship request.
getInitiator() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Message
Returns the athlete who sent this message.
getInteractionType() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Comment
Returns the interaction type of this comment.
getLabel() - Method in class fr.utc.miage.sporttrack.dto.BadgeFormDTO
Returns the display label of the badge.
getLabel() - Method in class fr.utc.miage.sporttrack.entity.event.Badge
Returns the display label of this badge.
getLastName() - Method in class fr.utc.miage.sporttrack.dto.AthleteProfileUpdateDTO
Returns the last name of the athlete.
getLastName() - Method in class fr.utc.miage.sporttrack.entity.user.User
Returns the last name (family name) of this user.
getLatestMessageByFriend(Integer) - Method in class fr.utc.miage.sporttrack.service.user.communication.MessageService
Returns a map of friend identifiers to their most recent message with the given athlete.
getLocationCity() - Method in class fr.utc.miage.sporttrack.dto.ActivityFormDTO
Returns the city or location name where the activity was performed.
getLocationCity() - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Returns the city or location name where this activity was performed.
getMessage() - Method in class fr.utc.miage.sporttrack.dto.MeteoDTO
Returns the informational message about the weather data retrieval.
getMetric() - Method in class fr.utc.miage.sporttrack.dto.BadgeFormDTO
Returns the performance metric for this badge.
getMetric() - Method in class fr.utc.miage.sporttrack.dto.ChallengeFormDTO
Returns the performance metric for ranking in this challenge.
getMetric() - Method in class fr.utc.miage.sporttrack.entity.event.Badge
Returns the performance metric used for this badge.
getMetric() - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Returns the performance metric used for ranking in this challenge.
getName() - Method in class fr.utc.miage.sporttrack.dto.ChallengeFormDTO
Returns the display name of the challenge.
getName() - Method in class fr.utc.miage.sporttrack.dto.SportFormDTO
Returns the display name of the sport.
getName() - Method in class fr.utc.miage.sporttrack.entity.activity.Sport
Returns the display name of this sport.
getName() - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Returns the display name of this challenge.
getName() - Method in class fr.utc.miage.sporttrack.entity.event.Objective
Returns the display name of this objective.
getNotificationForRecipient(Integer, Integer) - Method in class fr.utc.miage.sporttrack.service.user.communication.NotificationService
Returns a specific notification if it belongs to the specified recipient.
getNotificationsForAthlete(Integer) - Method in class fr.utc.miage.sporttrack.service.user.communication.NotificationService
Returns all notifications for the specified athlete, ordered newest first.
getObjectives(HttpSession, Model) - Method in class fr.utc.miage.sporttrack.controller.ObjectiveController
Shows the list of objectives for the authenticated athlete.
getObjectivesByUser(Athlete) - Method in class fr.utc.miage.sporttrack.service.event.ObjectiveService
Returns all objectives belonging to the specified athlete.
getOrganizer() - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Returns the athlete who organised this challenge.
getParticipants() - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Returns the list of athletes participating in this challenge.
getPassword() - Method in class fr.utc.miage.sporttrack.dto.AthleteRegisterFormDTO
Returns the plaintext password provided during registration.
getPassword() - Method in class fr.utc.miage.sporttrack.entity.user.User
Returns the hashed password of this user.
getPendingRequestsForAthlete(Integer) - Method in class fr.utc.miage.sporttrack.service.user.communication.FriendshipService
Returns all pending friend requests waiting for the athlete to accept.
getPracticeLevel() - Method in class fr.utc.miage.sporttrack.dto.AthleteProfileUpdateDTO
Returns the practice level of the athlete.
getPracticeLevel() - Method in class fr.utc.miage.sporttrack.entity.user.Athlete
Returns the practice level of this athlete.
getPrecipitationSum() - Method in class fr.utc.miage.sporttrack.dto.MeteoDTO
Returns the total precipitation sum.
getPrecipitationSum() - Method in class fr.utc.miage.sporttrack.entity.activity.WeatherReport
Returns the total precipitation sum.
getProfilePhotoUrl() - Method in class fr.utc.miage.sporttrack.entity.user.User
Generates and returns the URL of the user's profile photo.
getRankings() - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Returns the ordered list of rankings for this challenge.
getRankPosition() - Method in class fr.utc.miage.sporttrack.entity.event.ChallengeRanking
Returns the rank position of the athlete in the challenge.
getRecentBadges(Integer, int) - Method in class fr.utc.miage.sporttrack.service.event.BadgeService
Returns the N most recently earned badges for the specified athlete.
getRecentNotifications(Integer) - Method in class fr.utc.miage.sporttrack.service.user.communication.NotificationService
Returns the ten most recent notifications for the specified athlete.
getRecipient() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Friendship
Returns the athlete who received the friendship request.
getRecipient() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Message
Returns the athlete who received this message.
getRecipient() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Notification
Returns the athlete to whom this notification is addressed.
getRelationshipStatus(Integer, Integer) - Method in class fr.utc.miage.sporttrack.service.user.communication.FriendshipService
Computes the relationship status from the perspective of viewerId looking at targetId.
getRepetition() - Method in class fr.utc.miage.sporttrack.dto.ActivityFormDTO
Returns the repetition count for the activity.
getRepetition() - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Returns the number of repetitions performed during this activity.
getScore() - Method in class fr.utc.miage.sporttrack.entity.event.ChallengeRanking
Returns the cumulative score achieved by the athlete.
getSentAt() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Message
Returns the timestamp at which this message was sent.
getSentPendingRequests(Integer) - Method in class fr.utc.miage.sporttrack.service.user.communication.FriendshipService
Returns all friend requests sent by the athlete that are still pending.
getSport() - Method in class fr.utc.miage.sporttrack.entity.event.Badge
Returns the sport associated with this badge.
getSport() - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Returns the sport associated with this challenge.
getSport() - Method in class fr.utc.miage.sporttrack.entity.event.Objective
Returns the sport associated with this objective.
getSportAndType() - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Returns the sport (and its type) associated with this activity.
getSportId() - Method in class fr.utc.miage.sporttrack.dto.ActivityFormDTO
Returns the identifier of the associated sport.
getSportId() - Method in class fr.utc.miage.sporttrack.dto.BadgeFormDTO
Returns the identifier of the associated sport.
getSportId() - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Returns the sport identifier, sourcing it from the transient field if available, or from the associated Sport entity otherwise.
getStartDate() - Method in class fr.utc.miage.sporttrack.dto.ChallengeFormDTO
Returns the start date of the challenge.
getStartDate() - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Returns the start date of this challenge.
getStartTime() - Method in class fr.utc.miage.sporttrack.dto.ActivityFormDTO
Returns the start time of the activity.
getStartTime() - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Returns the local start time of this activity.
getStatus() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Friendship
Returns the current status of this friendship.
getTargetUrl() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Notification
Returns the target URL associated with this notification.
getThreshold() - Method in class fr.utc.miage.sporttrack.dto.BadgeFormDTO
Returns the threshold value required to earn this badge.
getThreshold() - Method in class fr.utc.miage.sporttrack.entity.event.Badge
Returns the numeric threshold required to earn this badge.
getTitle() - Method in class fr.utc.miage.sporttrack.dto.ActivityFormDTO
Returns the title of the activity.
getTitle() - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Returns the title of this activity.
getTitle() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Notification
Returns the title of this notification.
getType() - Method in class fr.utc.miage.sporttrack.dto.SportFormDTO
Returns the measurement type of this sport.
getType() - Method in class fr.utc.miage.sporttrack.entity.activity.Sport
Returns the measurement type of this sport.
getType() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Notification
Returns the type of this notification.
getUnearnedBadges(Integer) - Method in class fr.utc.miage.sporttrack.service.event.BadgeService
Returns all badges not yet earned by the specified athlete.
getUnreadCountByFriend(Integer) - Method in class fr.utc.miage.sporttrack.service.user.communication.MessageService
Returns a map of friend identifiers to the count of unread messages from that friend.
getUser() - Method in class fr.utc.miage.sporttrack.entity.event.Objective
Returns the athlete who owns this objective.
getUsername() - Method in class fr.utc.miage.sporttrack.dto.AthleteProfileUpdateDTO
Returns the username.
getUsername() - Method in class fr.utc.miage.sporttrack.dto.AthleteRegisterFormDTO
Returns the desired username for the new account.
getUsername() - Method in class fr.utc.miage.sporttrack.entity.user.User
Returns the username of this user.
getWeatherCode() - Method in class fr.utc.miage.sporttrack.dto.MeteoDTO
Returns the WMO weather code.
getWeatherCode() - Method in class fr.utc.miage.sporttrack.entity.activity.WeatherReport
Returns the WMO weather code for this report.
getWeatherForActivity(String, LocalDate) - Method in class fr.utc.miage.sporttrack.service.activity.WeatherReportService
Retrieves historical weather data for a given city and activity date by calling the Open-Meteo Geocoding and Archive APIs.
getWeatherIconClass() - Method in class fr.utc.miage.sporttrack.entity.activity.WeatherReport
Returns a Bootstrap Icons CSS class name suitable for rendering a weather icon in the user interface.
getWeatherLabel() - Method in class fr.utc.miage.sporttrack.entity.activity.WeatherReport
Returns a French-language label describing the current weather conditions.
getWeatherReport() - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Returns the weather report associated with this activity.
getWeight() - Method in class fr.utc.miage.sporttrack.dto.AthleteProfileUpdateDTO
Returns the weight of the athlete.
getWeight() - Method in class fr.utc.miage.sporttrack.entity.user.Athlete
Returns the weight of this athlete.

H

hasDistance() - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Determines whether this activity's sport type is measured by distance.
hashCode() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Friendship
Returns the hash code for this friendship, computed from the identifier.
hashCode() - Method in class fr.utc.miage.sporttrack.entity.user.User
Returns the hash code for this user, computed from the identifier and email.
hasRepetitions() - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Determines whether this activity's sport type is measured by repetitions.
HeaderModelAdvice - Class in fr.utc.miage.sporttrack.controller
Controller advice that populates the Spring MVC model with common header attributes for all views in the SportTrack application.
HeaderModelAdvice(AthleteRepository, NotificationService) - Constructor for class fr.utc.miage.sporttrack.controller.HeaderModelAdvice
Constructs a HeaderModelAdvice with the required dependencies.
home(Model, Authentication) - Method in class fr.utc.miage.sporttrack.controller.AdminController
Renders the admin home page if the current user is an authenticated admin.
home(Model, Authentication) - Method in class fr.utc.miage.sporttrack.controller.BaseController
Renders the home page.

I

inbox(Integer, HttpSession, Model, RedirectAttributes) - Method in class fr.utc.miage.sporttrack.controller.MessageController
Displays the messaging inbox with a conversation view for the selected friend.
InteractionType - Enum Class in fr.utc.miage.sporttrack.entity.enumeration
Enumeration representing the types of social interactions that an athlete can perform on another athlete's activity within the SportTrack application.
INTERMEDIATE - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.PracticeLevel
Represents an athlete with a moderate level of experience in the sport.
INVALID_ACTIVITY - Static variable in class fr.utc.miage.sporttrack.util.Messages
Error message for invalid activity.
INVALID_CHALLENGE_DATES - Static variable in class fr.utc.miage.sporttrack.util.Messages
Error message for invalid challenge dates.
INVALID_ID - Static variable in class fr.utc.miage.sporttrack.util.ValidationConstants
Default/invalid identifier value (zero).
INVALID_REGISTRATION - Static variable in class fr.utc.miage.sporttrack.util.Messages
Error message for invalid registration.
INVALID_SPORT_SELECTION - Static variable in class fr.utc.miage.sporttrack.util.Messages
Error message for invalid sport selection.
isActive() - Method in class fr.utc.miage.sporttrack.entity.activity.Sport
Returns whether this sport is currently active and available for selection.
isBlank(String) - Method in class fr.utc.miage.sporttrack.entity.user.User
Checks whether the given string value is blank (i.e., null, empty, or consisting solely of whitespace characters).
isCloudyWeather() - Method in class fr.utc.miage.sporttrack.entity.activity.WeatherReport
Determines whether the weather conditions are cloudy or foggy.
isCompleted() - Method in class fr.utc.miage.sporttrack.entity.event.Objective
Returns whether this objective has been completed.
isObjectiveCompleted(Objective, List<Activity>) - Method in class fr.utc.miage.sporttrack.service.event.ObjectiveService
Determines whether an objective is considered completed based on the provided list of activities.
isRainy() - Method in class fr.utc.miage.sporttrack.entity.activity.WeatherReport
Determines whether the weather conditions are rainy or snowy.
isSeen() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Message
Returns whether this message has been seen by the recipient.
isSeen() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Notification
Returns whether this notification has been viewed by the recipient.
isSunny() - Method in class fr.utc.miage.sporttrack.entity.activity.WeatherReport
Determines whether the weather conditions are sunny.
isValid() - Method in class fr.utc.miage.sporttrack.dto.MeteoDTO
Returns whether the weather data is valid.

L

LIKE - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.InteractionType
Indicates a positive "like" reaction to an activity.
listActivities(Model, Authentication) - Method in class fr.utc.miage.sporttrack.controller.AdminActivityController
Lists all activities in the system for the admin dashboard.
listAllChallenges(HttpSession, Model) - Method in class fr.utc.miage.sporttrack.controller.ChallengeController
Lists all challenges in the system, available for browsing and participation.
listAthleteBadges(int, HttpSession, Model) - Method in class fr.utc.miage.sporttrack.controller.BadgeController
Displays the earned badges of a specific athlete.
listAthletes(String, Model, Authentication) - Method in class fr.utc.miage.sporttrack.controller.AthleteController
Displays the list of all athletes, optionally filtered by a search query.
listBadges(Model, Authentication) - Method in class fr.utc.miage.sporttrack.controller.AdminBadgeController
Lists all badges for the admin dashboard.
listChallenges(HttpSession, Model) - Method in class fr.utc.miage.sporttrack.controller.ChallengeController
Lists all challenges organised by or participated in by the authenticated athlete.
listMyActivities(Model, Authentication) - Method in class fr.utc.miage.sporttrack.controller.AthleteActivityController
Lists all activities of the authenticated athlete with weather and comment data.
listMyBadges(HttpSession, Model) - Method in class fr.utc.miage.sporttrack.controller.BadgeController
Displays all badges for the authenticated athlete, split into earned and unearned.
listNotifications(HttpSession, Model) - Method in class fr.utc.miage.sporttrack.controller.NotificationController
Lists all notifications for the authenticated athlete with an unread count.
listSports(Model, Authentication) - Method in class fr.utc.miage.sporttrack.controller.SportController
Lists all sports for the admin dashboard.
loadUserByUsername(String) - Method in class fr.utc.miage.sporttrack.service.user.UserService
Loads a user by their email address, searching athletes first then admins.
login() - Method in class fr.utc.miage.sporttrack.controller.AuthController
Displays the login form.

M

main(String[]) - Static method in class fr.utc.miage.sporttrack.SporttrackApplication
Launches the SportTrack application.
MALE - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.Gender
Represents the male gender.
markAllAsRead(HttpSession, RedirectAttributes) - Method in class fr.utc.miage.sporttrack.controller.NotificationController
Marks all notifications as read for the authenticated athlete.
markAllAsRead(Integer) - Method in class fr.utc.miage.sporttrack.service.user.communication.NotificationService
Marks all notifications as read for the specified recipient.
markAllAsSeen(Integer) - Method in interface fr.utc.miage.sporttrack.repository.user.communication.NotificationRepository
Marks all notifications for the specified recipient as seen.
markAsCompleted(int, Athlete) - Method in class fr.utc.miage.sporttrack.service.event.ObjectiveService
Marks the specified objective as completed for the given athlete.
markAsRead(Integer, HttpSession) - Method in class fr.utc.miage.sporttrack.controller.NotificationController
Marks a single notification as read.
markAsRead(Integer, Integer) - Method in class fr.utc.miage.sporttrack.service.user.communication.NotificationService
Marks a single notification as read for the specified recipient.
markConversationAsSeen(Integer, Integer) - Method in interface fr.utc.miage.sporttrack.repository.user.communication.MessageRepository
Marks all unseen messages sent by the specified friend to the specified recipient as seen.
MAX_COMMENT_LENGTH - Static variable in class fr.utc.miage.sporttrack.util.ValidationConstants
Maximum comment length.
MAX_EMAIL_LENGTH - Static variable in class fr.utc.miage.sporttrack.util.ValidationConstants
Maximum email length.
MAX_TEXT_LENGTH - Static variable in class fr.utc.miage.sporttrack.util.ValidationConstants
Maximum body text length.
MAX_USERNAME_LENGTH - Static variable in class fr.utc.miage.sporttrack.util.ValidationConstants
Maximum username length.
MEAN_VELOCITY - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.Metric
Represents the average velocity maintained throughout an activity.
Message - Class in fr.utc.miage.sporttrack.entity.user.communication
JPA entity representing a private message exchanged between two athletes within the SportTrack application.
Message() - Constructor for class fr.utc.miage.sporttrack.entity.user.communication.Message
No-argument constructor required by JPA.
MESSAGE_RECEIVED - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.NotificationType
Notification sent when an athlete receives a new message from another user.
MessageController - Class in fr.utc.miage.sporttrack.controller
Spring MVC controller for private messaging between friends.
MessageController(MessageService, FriendshipService, AthleteRepository) - Constructor for class fr.utc.miage.sporttrack.controller.MessageController
Constructs a MessageController with the required dependencies.
MessageRepository - Interface in fr.utc.miage.sporttrack.repository.user.communication
Spring Data JPA repository for Message entities.
Messages - Class in fr.utc.miage.sporttrack.util
Centralized error and information messages for the SportTrack application.
MessageService - Class in fr.utc.miage.sporttrack.service.user.communication
Service layer component responsible for managing Message entities within the SportTrack application.
MessageService(MessageRepository, AthleteRepository, FriendshipRepository) - Constructor for class fr.utc.miage.sporttrack.service.user.communication.MessageService
Constructs a MessageService without notification support.
MessageService(MessageRepository, AthleteRepository, FriendshipRepository, NotificationService) - Constructor for class fr.utc.miage.sporttrack.service.user.communication.MessageService
Constructs a MessageService with full notification support.
MeteoDTO - Class in fr.utc.miage.sporttrack.dto
Data Transfer Object (DTO) representing weather (meteorological) data retrieved from an external weather API within the SportTrack application.
MeteoDTO() - Constructor for class fr.utc.miage.sporttrack.dto.MeteoDTO
 
Metric - Enum Class in fr.utc.miage.sporttrack.entity.enumeration
Enumeration representing the various performance metrics that can be used to measure and track an athlete's activity within the SportTrack application.
MIN_ID - Static variable in class fr.utc.miage.sporttrack.util.ValidationConstants
Minimum valid identifier value.
MIN_PASSWORD_LENGTH - Static variable in class fr.utc.miage.sporttrack.util.ValidationConstants
Minimum password length.
MUTUALLY_BLOCKED - Enum constant in enum class fr.utc.miage.sporttrack.dto.RelationshipStatusDTO
Both users have blocked each other.

N

NO_PRECIPITATION - Static variable in class fr.utc.miage.sporttrack.util.ValidationConstants
No precipitation threshold in millimeters.
NONE - Enum constant in enum class fr.utc.miage.sporttrack.dto.RelationshipStatusDTO
No relationship exists between the two athletes; a friend request can be sent.
NONE - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.InteractionType
Indicates no interaction has been made on the activity.
Notification - Class in fr.utc.miage.sporttrack.entity.user.communication
JPA entity representing an in-app notification delivered to an athlete within the SportTrack application.
Notification() - Constructor for class fr.utc.miage.sporttrack.entity.user.communication.Notification
No-argument constructor required by JPA.
NotificationController - Class in fr.utc.miage.sporttrack.controller
Spring MVC controller for notification management.
NotificationController(NotificationService, AthleteRepository) - Constructor for class fr.utc.miage.sporttrack.controller.NotificationController
Constructs a NotificationController with the required dependencies.
NotificationRepository - Interface in fr.utc.miage.sporttrack.repository.user.communication
Spring Data JPA repository for Notification entities.
NotificationService - Class in fr.utc.miage.sporttrack.service.user.communication
Service layer component responsible for managing Notification entities within the SportTrack application.
NotificationService(NotificationRepository) - Constructor for class fr.utc.miage.sporttrack.service.user.communication.NotificationService
Constructs a new NotificationService with the given repository.
NotificationType - Enum Class in fr.utc.miage.sporttrack.entity.enumeration
Enumeration representing the different types of notifications that can be generated within the SportTrack application.
notificationUnreadCount(HttpSession) - Method in class fr.utc.miage.sporttrack.controller.HeaderModelAdvice
Computes the number of unread notifications for the current athlete and makes it available to all views as "notificationUnreadCount".
notifyActivityPublished(Athlete, Activity, List<Athlete>) - Method in class fr.utc.miage.sporttrack.service.user.communication.NotificationService
Sends a notification to multiple recipients that a friend has published a new activity.
notifyBadgeEarned(Athlete, Badge) - Method in class fr.utc.miage.sporttrack.service.user.communication.NotificationService
Sends a notification to the athlete that they have earned a badge.
notifyChallengeEnded(Challenge) - Method in class fr.utc.miage.sporttrack.service.user.communication.NotificationService
Sends notifications to all participants and the organiser that a challenge has ended.
notifyFinishedChallenges() - Method in class fr.utc.miage.sporttrack.service.event.ChallengeNotificationScheduler
 
notifyFriendRequest(Friendship) - Method in class fr.utc.miage.sporttrack.service.user.communication.NotificationService
Sends a notification to the friendship recipient that a friend request has been received.
notifyFriendRequestAccepted(Friendship) - Method in class fr.utc.miage.sporttrack.service.user.communication.NotificationService
Sends a notification to the friendship initiator that their request has been accepted.
notifyMessageReceived(Message) - Method in class fr.utc.miage.sporttrack.service.user.communication.NotificationService
Sends a notification to the message recipient that a new message has been received.
notifyObjectiveCompleted(Athlete, Objective) - Method in class fr.utc.miage.sporttrack.service.user.communication.NotificationService
Sends a notification to the athlete that an objective has been completed.

O

Objective - Class in fr.utc.miage.sporttrack.entity.event
JPA entity representing a personal objective set by an athlete within the SportTrack application.
Objective() - Constructor for class fr.utc.miage.sporttrack.entity.event.Objective
No-argument constructor required by JPA.
Objective(String, String) - Constructor for class fr.utc.miage.sporttrack.entity.event.Objective
Constructs a new objective with the specified name and description.
OBJECTIVE_COMPLETED - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.NotificationType
Notification sent when an athlete completes a defined objective.
ObjectiveController - Class in fr.utc.miage.sporttrack.controller
Spring MVC controller for objective management.
ObjectiveController(ObjectiveService, SportRepository, AthleteRepository, SportService) - Constructor for class fr.utc.miage.sporttrack.controller.ObjectiveController
Constructs an ObjectiveController with the required dependencies.
ObjectiveRepository - Interface in fr.utc.miage.sporttrack.repository.event
Spring Data JPA repository for Objective entities.
ObjectiveService - Class in fr.utc.miage.sporttrack.service.event
Service layer component responsible for managing Objective entities within the SportTrack application.
ObjectiveService(ObjectiveRepository) - Constructor for class fr.utc.miage.sporttrack.service.event.ObjectiveService
Constructs an ObjectiveService without notification support.
ObjectiveService(ObjectiveRepository, NotificationService) - Constructor for class fr.utc.miage.sporttrack.service.event.ObjectiveService
Constructs an ObjectiveService with full notification support.
onCreate() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Comment
Lifecycle callback that automatically sets the creation timestamp before the entity is first persisted.
onCreate() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Message
Lifecycle callback that sets the send timestamp to the current time if it has not already been provided, before the entity is first persisted.
onCreate() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Notification
Lifecycle callback that sets the creation timestamp to the current time if not already provided, before the entity is first persisted.
openNotification(Integer, HttpSession) - Method in class fr.utc.miage.sporttrack.controller.NotificationController
Opens a notification, marking it as read and redirecting to its target URL.
OTHER - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.Gender
Represents a gender identity that does not fall into the male or female categories.

P

participateInChallenge(int, HttpSession) - Method in class fr.utc.miage.sporttrack.controller.ChallengeController
Adds the authenticated athlete as a participant to the specified challenge.
PASSWORD_MISMATCH - Static variable in class fr.utc.miage.sporttrack.util.Messages
Error message when password confirmation does not match.
passwordEncoder() - Method in class fr.utc.miage.sporttrack.config.SecurityConfig
Provides a BCrypt-based password encoder bean for hashing and verifying passwords throughout the application.
PENDING - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.FriendshipStatus
The friendship request has been sent but not yet responded to by the recipient.
PERCENTAGE_FACTOR - Static variable in class fr.utc.miage.sporttrack.util.ValidationConstants
Percentage factor for calculations.
PracticeLevel - Enum Class in fr.utc.miage.sporttrack.entity.enumeration
Enumeration representing the sport practice levels available for an athlete within the SportTrack application.

R

RECENT_BADGES_LIMIT - Static variable in class fr.utc.miage.sporttrack.util.ValidationConstants
Limit for recent badges.
RECENT_ITEMS_LIMIT - Static variable in class fr.utc.miage.sporttrack.util.ValidationConstants
Maximum recent items to display.
recentNotifications(HttpSession) - Method in class fr.utc.miage.sporttrack.controller.HeaderModelAdvice
Retrieves the ten most recent notifications for the current athlete and makes them available to all views as "recentNotifications".
recomputeRanking(Challenge) - Method in class fr.utc.miage.sporttrack.service.event.ChallengeRankingService
Recomputes and persists the full ranking for the given challenge.
recomputeRankingsForActivity(Integer, Integer, LocalDate) - Method in class fr.utc.miage.sporttrack.service.event.ChallengeRankingService
Recomputes rankings for all challenges impacted by a new or modified activity.
REDIRECT_ADMIN - Static variable in class fr.utc.miage.sporttrack.controller.ControllerConstants
Redirect constant for the admin home page.
REDIRECT_ATHLETE_LIST - Static variable in class fr.utc.miage.sporttrack.controller.ControllerConstants
Redirect constant for the athlete list page.
REDIRECT_ATHLETE_PROFILE - Static variable in class fr.utc.miage.sporttrack.controller.ControllerConstants
Redirect constant for the athlete profile page.
REDIRECT_BADGES - Static variable in class fr.utc.miage.sporttrack.controller.ControllerConstants
Redirect constant for the badges page.
REDIRECT_CHALLENGES - Static variable in class fr.utc.miage.sporttrack.controller.ControllerConstants
Redirect constant for the challenges page.
REDIRECT_FRIENDS - Static variable in class fr.utc.miage.sporttrack.controller.ControllerConstants
Redirect constant for the friend list page.
REDIRECT_LOGIN - Static variable in class fr.utc.miage.sporttrack.controller.ControllerConstants
Redirect constant for the login page.
refreshWeatherReport(Activity) - Method in class fr.utc.miage.sporttrack.service.activity.WeatherReportService
Refreshes (or creates) the weather report for the given activity by fetching live data from the external API and persisting the result.
REGISTERED_PARAM - Static variable in class fr.utc.miage.sporttrack.controller.ControllerConstants
Request parameter name for registration.
registerUser(AthleteRegisterFormDTO, String, String, String, String, Model) - Method in class fr.utc.miage.sporttrack.controller.AuthController
Processes the registration form submission.
REJECTED - Enum constant in enum class fr.utc.miage.sporttrack.dto.RelationshipStatusDTO
A friend request was previously rejected.
REJECTED - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.FriendshipStatus
The friendship request has been explicitly declined by the recipient.
rejectFriendRequest(Integer, HttpSession, RedirectAttributes) - Method in class fr.utc.miage.sporttrack.controller.FriendshipController
Rejects a pending friend request.
rejectFriendRequest(Integer, Integer) - Method in class fr.utc.miage.sporttrack.service.user.communication.FriendshipService
Rejects a pending friend request.
RelationshipStatusDTO - Enum Class in fr.utc.miage.sporttrack.dto
Enumeration serving as a view-layer Data Transfer Object (DTO) that represents the relationship status between two athletes within the SportTrack application.
removeFriend(Integer, HttpSession, RedirectAttributes) - Method in class fr.utc.miage.sporttrack.controller.FriendshipController
Removes an established friendship.
removeFriend(Integer, Integer) - Method in class fr.utc.miage.sporttrack.service.user.communication.FriendshipService
Removes an established friendship between two users.
REPETITION - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.Metric
Counts the number of repetitions performed during an activity.
REPETITION - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.SportType
The sport is measured by the number of repetitions performed.
REPS_PER_MINUTE - Enum constant in enum class fr.utc.miage.sporttrack.entity.enumeration.Metric
Represents the number of repetitions performed per minute, indicating pace.
REQUEST_RECEIVED - Enum constant in enum class fr.utc.miage.sporttrack.dto.RelationshipStatusDTO
The current user has received a pending friend request (is the recipient).
REQUEST_SENT - Enum constant in enum class fr.utc.miage.sporttrack.dto.RelationshipStatusDTO
The current user has sent a pending friend request (is the initiator).

S

safeSportName(Sport) - Method in class fr.utc.miage.sporttrack.service.activity.SportService
Returns a safe display name for the given sport, defaulting to "Autre" if the sport or its name is null or blank.
saveActivity(ActivityFormDTO, RedirectAttributes, Authentication) - Method in class fr.utc.miage.sporttrack.controller.AdminActivityController
Updates an existing activity from the submitted form data.
saveActivity(ActivityFormDTO, RedirectAttributes, Authentication) - Method in class fr.utc.miage.sporttrack.controller.AthleteActivityController
Creates or updates an activity from the submitted form data.
saveBadge(BadgeFormDTO, RedirectAttributes, Authentication) - Method in class fr.utc.miage.sporttrack.controller.AdminBadgeController
Creates or updates a badge from the submitted form data.
saveBadge(Badge, Sport) - Method in class fr.utc.miage.sporttrack.service.event.BadgeService
Saves a badge entity after associating it with the given sport.
saveChallenge(Challenge, Athlete, Sport) - Method in class fr.utc.miage.sporttrack.service.event.ChallengeService
Saves a challenge entity, associating it with the given organiser athlete and sport.
saveObjective(Objective, Athlete, Sport) - Method in class fr.utc.miage.sporttrack.service.event.ObjectiveService
Saves a new objective associated with the given athlete and sport.
saveSport(SportFormDTO, RedirectAttributes, Authentication) - Method in class fr.utc.miage.sporttrack.controller.SportController
Creates or updates a sport from the submitted form data.
searchAthletesByName(String) - Method in class fr.utc.miage.sporttrack.service.user.AthleteService
Searches for athletes whose username contains the given query string, ignoring case.
searchVisibleAthletes(Integer, String) - Method in class fr.utc.miage.sporttrack.service.user.communication.FriendshipService
Searches for athletes visible to the current user.
SecurityConfig - Class in fr.utc.miage.sporttrack.config
Spring Security configuration class for the SportTrack application.
SecurityConfig() - Constructor for class fr.utc.miage.sporttrack.config.SecurityConfig
 
securityFilterChain(HttpSecurity) - Method in class fr.utc.miage.sporttrack.config.SecurityConfig
Configures the HTTP security filter chain including URL-based authorisation, form login, and logout behaviour.
SELECTED_SPORT_NOT_FOUND - Static variable in class fr.utc.miage.sporttrack.util.Messages
Error message when selected sport is not found.
SELF - Enum constant in enum class fr.utc.miage.sporttrack.dto.RelationshipStatusDTO
The current user is viewing their own profile.
sendFriendRequest(HttpSession, Integer, RedirectAttributes) - Method in class fr.utc.miage.sporttrack.controller.FriendshipController
Sends a friend request to another athlete.
sendFriendRequest(Integer, Integer) - Method in class fr.utc.miage.sporttrack.service.user.communication.FriendshipService
Sends a friend request from one user to another.
sendMessage(Integer, Integer, String) - Method in class fr.utc.miage.sporttrack.service.user.communication.MessageService
Sends a message from one athlete to another.
sendMessage(Integer, String, HttpSession, RedirectAttributes) - Method in class fr.utc.miage.sporttrack.controller.MessageController
Sends a message to a friend.
setActive(boolean) - Method in class fr.utc.miage.sporttrack.entity.activity.Sport
Sets whether this sport is active and available for selection.
setActivity(Activity) - Method in class fr.utc.miage.sporttrack.entity.activity.WeatherReport
Sets the activity to which this weather report is linked.
setActivity(Activity) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Comment
Sets the activity to which this comment is attached.
setActor(Athlete) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Notification
Sets the athlete who triggered this notification.
setAge(Integer) - Method in class fr.utc.miage.sporttrack.dto.AthleteProfileUpdateDTO
Sets the age of the athlete.
setAge(Integer) - Method in class fr.utc.miage.sporttrack.entity.user.Athlete
Sets the age of this athlete.
setAthlete(Athlete) - Method in class fr.utc.miage.sporttrack.entity.event.ChallengeRanking
Sets the athlete associated with this ranking.
setAthlete(Athlete) - Method in class fr.utc.miage.sporttrack.entity.event.Objective
Sets the athlete who owns this objective.
setAuthor(Athlete) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Comment
Sets the athlete who authored this comment.
setBio(String) - Method in class fr.utc.miage.sporttrack.dto.AthleteProfileUpdateDTO
Sets the personal biography of the athlete.
setBio(String) - Method in class fr.utc.miage.sporttrack.entity.user.Athlete
Sets the personal biography of this athlete.
setCaloriesPerHour(double) - Method in class fr.utc.miage.sporttrack.dto.SportFormDTO
Sets the average calorie burn rate per hour for this sport.
setCaloriesPerHour(double) - Method in class fr.utc.miage.sporttrack.entity.activity.Sport
Sets the average calorie burn rate per hour for this sport.
setChallenge(Challenge) - Method in class fr.utc.miage.sporttrack.entity.event.ChallengeRanking
Sets the challenge to which this ranking belongs.
setCity(String) - Method in class fr.utc.miage.sporttrack.dto.MeteoDTO
Sets the city name for the weather data.
setCity(String) - Method in class fr.utc.miage.sporttrack.entity.activity.WeatherReport
Sets the city name associated with this weather report.
setComments(List<Comment>) - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
 
setCompleted(boolean) - Method in class fr.utc.miage.sporttrack.entity.event.Objective
Sets whether this objective has been completed.
setCompletedAt(LocalDateTime) - Method in class fr.utc.miage.sporttrack.entity.event.Objective
Sets the timestamp at which this objective was completed.
setContent(String) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Comment
Sets the textual content of this comment.
setContent(String) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Message
Sets the textual content of this message.
setContent(String) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Notification
Sets the content of this notification.
setCountry(String) - Method in class fr.utc.miage.sporttrack.dto.MeteoDTO
Sets the country for the weather data.
setCountry(String) - Method in class fr.utc.miage.sporttrack.entity.activity.WeatherReport
Sets the country associated with this weather report.
setCreatedAt(LocalDateTime) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Comment
Sets the creation timestamp of this comment.
setCreatedAt(LocalDateTime) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Friendship
Sets the creation timestamp of this friendship record.
setCreatedAt(LocalDateTime) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Notification
Sets the creation timestamp of this notification.
setCreatedBy(Athlete) - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Sets the athlete who created this activity.
setDateA(LocalDate) - Method in class fr.utc.miage.sporttrack.dto.ActivityFormDTO
Sets the date of the activity.
setDateA(LocalDate) - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Sets the date on which this activity took place.
setDescription(String) - Method in class fr.utc.miage.sporttrack.dto.ActivityFormDTO
Sets the description of the activity.
setDescription(String) - Method in class fr.utc.miage.sporttrack.dto.BadgeFormDTO
Sets the description of the badge's earning criteria.
setDescription(String) - Method in class fr.utc.miage.sporttrack.dto.ChallengeFormDTO
Sets the textual description of the challenge.
setDescription(String) - Method in class fr.utc.miage.sporttrack.dto.SportFormDTO
Sets the textual description of the sport.
setDescription(String) - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Sets the description of this activity.
setDescription(String) - Method in class fr.utc.miage.sporttrack.entity.activity.Sport
Sets the textual description of this sport.
setDescription(String) - Method in class fr.utc.miage.sporttrack.entity.event.Badge
Sets the description of this badge.
setDescription(String) - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Sets the textual description of this challenge.
setDescription(String) - Method in class fr.utc.miage.sporttrack.entity.event.Objective
Sets the textual description of this objective.
setDistance(Double) - Method in class fr.utc.miage.sporttrack.dto.ActivityFormDTO
Sets the distance covered during the activity.
setDistance(Double) - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Sets the distance covered during this activity.
setDuration(double) - Method in class fr.utc.miage.sporttrack.dto.ActivityFormDTO
Sets the total duration of the activity.
setDuration(double) - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Sets the total duration of the activity.
setEarnedBy(List<Athlete>) - Method in class fr.utc.miage.sporttrack.entity.event.Badge
Sets the list of athletes who have earned this badge.
setEmail(String) - Method in class fr.utc.miage.sporttrack.dto.AthleteRegisterFormDTO
Sets the email address for registration.
setEmail(String) - Method in class fr.utc.miage.sporttrack.entity.user.User
Sets the email address of this user.
setEndDate(LocalDate) - Method in class fr.utc.miage.sporttrack.dto.ChallengeFormDTO
Sets the end date of the challenge.
setEndDate(LocalDate) - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Sets the end date of this challenge.
setEndedNotifiedAt(LocalDateTime) - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Sets the timestamp at which the end-of-challenge notification was sent.
setFirstName(String) - Method in class fr.utc.miage.sporttrack.dto.AthleteProfileUpdateDTO
Sets the first name of the athlete.
setFirstName(String) - Method in class fr.utc.miage.sporttrack.entity.user.User
Sets the first name (given name) of this user.
setGender(Gender) - Method in class fr.utc.miage.sporttrack.dto.AthleteProfileUpdateDTO
Sets the gender of the athlete.
setGender(Gender) - Method in class fr.utc.miage.sporttrack.entity.user.Athlete
Sets the gender of this athlete.
setHeight(Double) - Method in class fr.utc.miage.sporttrack.dto.AthleteProfileUpdateDTO
Sets the height of the athlete.
setHeight(Double) - Method in class fr.utc.miage.sporttrack.entity.user.Athlete
Sets the height of this athlete.
setIcon(String) - Method in class fr.utc.miage.sporttrack.dto.BadgeFormDTO
Sets the CSS icon class name for this badge.
setIcon(String) - Method in class fr.utc.miage.sporttrack.entity.event.Badge
Sets the CSS icon class name for this badge.
setId(int) - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Sets the unique identifier of this activity.
setId(int) - Method in class fr.utc.miage.sporttrack.entity.activity.Sport
Sets the unique identifier of this sport.
setId(int) - Method in class fr.utc.miage.sporttrack.entity.activity.WeatherReport
Sets the unique identifier of this weather report.
setId(int) - Method in class fr.utc.miage.sporttrack.entity.event.Badge
Sets the unique identifier of this badge.
setId(int) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Comment
Sets the unique identifier of this comment.
setId(Integer) - Method in class fr.utc.miage.sporttrack.dto.AbstractIdFormDTO
 
setId(Integer) - Method in class fr.utc.miage.sporttrack.dto.ActivityFormDTO
Sets the unique identifier of the activity.
setId(Integer) - Method in class fr.utc.miage.sporttrack.dto.BadgeFormDTO
Sets the unique identifier of the badge.
setId(Integer) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Message
Sets the unique identifier of this message.
setId(Integer) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Notification
Sets the unique identifier of this notification.
setInitiator(Athlete) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Friendship
Sets the athlete who initiated the friendship request.
setInitiator(Athlete) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Message
Sets the athlete who sent this message.
setInteractionType(InteractionType) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Comment
Sets the interaction type of this comment.
setLabel(String) - Method in class fr.utc.miage.sporttrack.dto.BadgeFormDTO
Sets the display label of the badge.
setLabel(String) - Method in class fr.utc.miage.sporttrack.entity.event.Badge
Sets the display label of this badge.
setLastName(String) - Method in class fr.utc.miage.sporttrack.dto.AthleteProfileUpdateDTO
Sets the last name of the athlete.
setLastName(String) - Method in class fr.utc.miage.sporttrack.entity.user.User
Sets the last name (family name) of this user.
setLocationCity(String) - Method in class fr.utc.miage.sporttrack.dto.ActivityFormDTO
Sets the city or location name where the activity was performed.
setLocationCity(String) - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Sets the city or location name where this activity was performed.
setMessage(String) - Method in class fr.utc.miage.sporttrack.dto.MeteoDTO
Sets the informational message about the weather data retrieval.
setMetric(Metric) - Method in class fr.utc.miage.sporttrack.dto.BadgeFormDTO
Sets the performance metric for this badge.
setMetric(Metric) - Method in class fr.utc.miage.sporttrack.dto.ChallengeFormDTO
Sets the performance metric for ranking in this challenge.
setMetric(Metric) - Method in class fr.utc.miage.sporttrack.entity.event.Badge
Sets the performance metric used for this badge.
setMetric(Metric) - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Sets the performance metric used for ranking in this challenge.
setName(String) - Method in class fr.utc.miage.sporttrack.dto.ChallengeFormDTO
Sets the display name of the challenge.
setName(String) - Method in class fr.utc.miage.sporttrack.dto.SportFormDTO
Sets the display name of the sport.
setName(String) - Method in class fr.utc.miage.sporttrack.entity.activity.Sport
Sets the display name of this sport.
setName(String) - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Sets the display name of this challenge.
setName(String) - Method in class fr.utc.miage.sporttrack.entity.event.Objective
Sets the display name of this objective.
setOrganizer(Athlete) - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Sets the athlete who organised this challenge.
setParticipants(List<Athlete>) - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Sets the list of athletes participating in this challenge.
setPassword(String) - Method in class fr.utc.miage.sporttrack.dto.AthleteRegisterFormDTO
Sets the password for registration.
setPassword(String) - Method in class fr.utc.miage.sporttrack.entity.user.User
Sets the password of this user.
setPracticeLevel(PracticeLevel) - Method in class fr.utc.miage.sporttrack.dto.AthleteProfileUpdateDTO
Sets the practice level of the athlete.
setPracticeLevel(PracticeLevel) - Method in class fr.utc.miage.sporttrack.entity.user.Athlete
Sets the practice level of this athlete.
setPrecipitationSum(double) - Method in class fr.utc.miage.sporttrack.entity.activity.WeatherReport
Sets the total precipitation sum.
setPrecipitationSum(Double) - Method in class fr.utc.miage.sporttrack.dto.MeteoDTO
Sets the total precipitation sum.
setRankings(List<ChallengeRanking>) - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Replaces the entire ranking list with the provided entries, maintaining the parent-child relationship on each ranking.
setRankPosition(int) - Method in class fr.utc.miage.sporttrack.entity.event.ChallengeRanking
Sets the rank position of the athlete.
setRecipient(Athlete) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Friendship
Sets the athlete who received the friendship request.
setRecipient(Athlete) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Message
Sets the athlete who received this message.
setRecipient(Athlete) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Notification
Sets the athlete to whom this notification is addressed.
setRepetition(Integer) - Method in class fr.utc.miage.sporttrack.dto.ActivityFormDTO
Sets the repetition count for the activity.
setRepetition(Integer) - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Sets the number of repetitions performed during this activity.
setScore(double) - Method in class fr.utc.miage.sporttrack.entity.event.ChallengeRanking
Sets the cumulative score achieved by the athlete.
setSeen(boolean) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Message
Sets whether this message has been seen by the recipient.
setSeen(boolean) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Notification
Sets whether this notification has been viewed by the recipient.
setSentAt(LocalDateTime) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Message
Sets the timestamp at which this message was sent.
setSport(Sport) - Method in class fr.utc.miage.sporttrack.entity.event.Badge
Sets the sport associated with this badge.
setSport(Sport) - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Sets the sport associated with this challenge.
setSport(Sport) - Method in class fr.utc.miage.sporttrack.entity.event.Objective
Sets the sport associated with this objective.
setSportAndType(Sport) - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Sets the sport associated with this activity and updates the transient sport identifier.
setSportId(Integer) - Method in class fr.utc.miage.sporttrack.dto.ActivityFormDTO
Sets the identifier of the associated sport.
setSportId(Integer) - Method in class fr.utc.miage.sporttrack.dto.BadgeFormDTO
Sets the identifier of the associated sport.
setSportId(Integer) - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Sets the sport identifier and resolves the associated Sport proxy.
setStartDate(LocalDate) - Method in class fr.utc.miage.sporttrack.dto.ChallengeFormDTO
Sets the start date of the challenge.
setStartDate(LocalDate) - Method in class fr.utc.miage.sporttrack.entity.event.Challenge
Sets the start date of this challenge.
setStartTime(LocalTime) - Method in class fr.utc.miage.sporttrack.dto.ActivityFormDTO
Sets the start time of the activity.
setStartTime(LocalTime) - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Sets the local start time of this activity.
setStatus(FriendshipStatus) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Friendship
Sets the status of this friendship.
setTargetUrl(String) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Notification
Sets the target URL associated with this notification.
setThreshold(double) - Method in class fr.utc.miage.sporttrack.dto.BadgeFormDTO
Sets the threshold value required to earn this badge.
setThreshold(double) - Method in class fr.utc.miage.sporttrack.entity.event.Badge
Sets the numeric threshold required to earn this badge.
setTitle(String) - Method in class fr.utc.miage.sporttrack.dto.ActivityFormDTO
Sets the title of the activity.
setTitle(String) - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Sets the title of this activity.
setTitle(String) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Notification
Sets the title of this notification.
setType(NotificationType) - Method in class fr.utc.miage.sporttrack.entity.user.communication.Notification
Sets the type of this notification.
setType(SportType) - Method in class fr.utc.miage.sporttrack.dto.SportFormDTO
Sets the measurement type for this sport.
setType(SportType) - Method in class fr.utc.miage.sporttrack.entity.activity.Sport
Sets the measurement type for this sport.
setUsername(String) - Method in class fr.utc.miage.sporttrack.dto.AthleteProfileUpdateDTO
Sets the username.
setUsername(String) - Method in class fr.utc.miage.sporttrack.dto.AthleteRegisterFormDTO
Sets the desired username for the new account.
setUsername(String) - Method in class fr.utc.miage.sporttrack.entity.user.User
Sets the username of this user.
setValid(boolean) - Method in class fr.utc.miage.sporttrack.dto.MeteoDTO
Sets whether the weather data is valid.
setWeatherCode(Integer) - Method in class fr.utc.miage.sporttrack.dto.MeteoDTO
Sets the WMO weather code.
setWeatherCode(Integer) - Method in class fr.utc.miage.sporttrack.entity.activity.WeatherReport
Sets the WMO weather code for this report.
setWeatherReport(WeatherReport) - Method in class fr.utc.miage.sporttrack.entity.activity.Activity
Sets the weather report associated with this activity.
setWeight(Double) - Method in class fr.utc.miage.sporttrack.dto.AthleteProfileUpdateDTO
Sets the weight of the athlete.
setWeight(Double) - Method in class fr.utc.miage.sporttrack.entity.user.Athlete
Sets the weight of this athlete.
showCreateChallengeForm(HttpSession, Model) - Method in class fr.utc.miage.sporttrack.controller.ChallengeController
Displays the form for creating a new challenge.
showCreateForm(Model, Authentication) - Method in class fr.utc.miage.sporttrack.controller.AdminBadgeController
Displays the form for creating a new badge.
showCreateForm(Model, Authentication) - Method in class fr.utc.miage.sporttrack.controller.AthleteActivityController
Displays the form for creating a new activity.
showCreateForm(Model, Authentication) - Method in class fr.utc.miage.sporttrack.controller.SportController
Displays the form for creating a new sport.
showDashboard(HttpSession, Model, Integer, LocalDate, LocalDate) - Method in class fr.utc.miage.sporttrack.controller.DashboardController
Renders the comparison dashboard with activity and objective statistics, optionally filtered by sport and date range.
showEditForm(int, Model, RedirectAttributes, Authentication) - Method in class fr.utc.miage.sporttrack.controller.AdminActivityController
Displays the form for editing an existing activity.
showEditForm(int, Model, RedirectAttributes, Authentication) - Method in class fr.utc.miage.sporttrack.controller.AdminBadgeController
Displays the form for editing an existing badge.
showEditForm(int, Model, RedirectAttributes, Authentication) - Method in class fr.utc.miage.sporttrack.controller.AthleteActivityController
Displays the form for editing an existing activity owned by the current athlete.
showEditForm(int, Model, RedirectAttributes, Authentication) - Method in class fr.utc.miage.sporttrack.controller.SportController
Displays the form for editing an existing sport.
showGrowth(HttpSession, Model, Integer) - Method in class fr.utc.miage.sporttrack.controller.DashboardController
Renders the growth dashboard showing weekly activity trends, consecutive active weeks, and monthly hour KPIs.
showObjectivesForm(HttpSession, Model) - Method in class fr.utc.miage.sporttrack.controller.ObjectiveController
Displays the form for creating a new objective.
showProfile(Authentication, Model) - Method in class fr.utc.miage.sporttrack.controller.UserController
Displays the profile page of the currently authenticated athlete.
showRegistrationForm(Model) - Method in class fr.utc.miage.sporttrack.controller.AuthController
Displays the athlete registration form.
Sport - Class in fr.utc.miage.sporttrack.entity.activity
JPA entity representing a sport discipline within the SportTrack application.
Sport() - Constructor for class fr.utc.miage.sporttrack.entity.activity.Sport
No-argument constructor required by JPA.
SPORT_NOT_FOUND - Static variable in class fr.utc.miage.sporttrack.util.Messages
Error message when sport is not found.
SportController - Class in fr.utc.miage.sporttrack.controller
Spring MVC controller for administrator sport management.
SportController(SportService, AdminService) - Constructor for class fr.utc.miage.sporttrack.controller.SportController
Constructs a SportController with the required services.
SportFormDTO - Class in fr.utc.miage.sporttrack.dto
Data Transfer Object (DTO) used for sport creation and update form binding within the SportTrack application.
SportFormDTO() - Constructor for class fr.utc.miage.sporttrack.dto.SportFormDTO
 
SportRepository - Interface in fr.utc.miage.sporttrack.repository.activity
Spring Data JPA repository for Sport entities.
SPORTS_ATTR - Static variable in class fr.utc.miage.sporttrack.controller.ControllerConstants
Model attribute name for sports.
SportService - Class in fr.utc.miage.sporttrack.service.activity
Service layer component responsible for managing Sport entities within the SportTrack application.
SportService(SportRepository) - Constructor for class fr.utc.miage.sporttrack.service.activity.SportService
Constructs a new SportService with the given repository.
SporttrackApplication - Class in fr.utc.miage.sporttrack
Entry point for the SportTrack Spring Boot application.
SporttrackApplication() - Constructor for class fr.utc.miage.sporttrack.SporttrackApplication
 
SportType - Enum Class in fr.utc.miage.sporttrack.entity.enumeration
Enumeration representing the categorization types for sports within the SportTrack application.
SUCCESS_ATTR - Static variable in class fr.utc.miage.sporttrack.controller.ControllerConstants
Model attribute name for success messages.

T

TextNormalizer - Class in fr.utc.miage.sporttrack.util
Shared text normalization helpers to keep setters consistent across DTOs/entities.
toString() - Method in class fr.utc.miage.sporttrack.entity.user.communication.Friendship
Returns a string representation of this friendship, including the identifier, initiator, recipient, status, and creation timestamp.
TOTAL_DISTANCE - Static variable in class fr.utc.miage.sporttrack.controller.DashboardController
Attribute key for total distance in weekly aggregates.
TOTAL_DURATION - Static variable in class fr.utc.miage.sporttrack.controller.DashboardController
Attribute key for total duration in weekly aggregates.
TOTAL_REPETITION - Static variable in class fr.utc.miage.sporttrack.controller.DashboardController
Attribute key for total repetitions in weekly aggregates.
trimNullable(String) - Static method in class fr.utc.miage.sporttrack.util.TextNormalizer
 

U

unblockUser(Integer, HttpSession, RedirectAttributes) - Method in class fr.utc.miage.sporttrack.controller.FriendshipController
Unblocks a previously blocked user.
unblockUser(Integer, Integer) - Method in class fr.utc.miage.sporttrack.service.user.communication.FriendshipService
Unblocks a previously blocked user.
updateActivity(int, double, String, String, int, double, LocalDate, LocalTime, String, int) - Method in class fr.utc.miage.sporttrack.service.activity.ActivityService
Updates an existing activity by its identifier with full validation.
updateActivityForAthlete(Athlete, int, double, String, String, int, double, LocalDate, LocalTime, String, int) - Method in class fr.utc.miage.sporttrack.service.activity.ActivityService
Updates an activity owned by the specified athlete with full validation.
UPDATED_PARAM - Static variable in class fr.utc.miage.sporttrack.controller.ControllerConstants
Request parameter name for update.
updateProfile(AthleteProfileUpdateDTO, Authentication) - Method in class fr.utc.miage.sporttrack.controller.UserController
Processes the profile update form submission.
updateProfile(String, AthleteProfileUpdateDTO) - Method in class fr.utc.miage.sporttrack.service.user.AthleteService
Updates an athlete's profile with the data provided in the DTO.
updateSport(int, String, String, double, SportType) - Method in class fr.utc.miage.sporttrack.service.activity.SportService
Updates an existing sport with the provided attributes.
User - Class in fr.utc.miage.sporttrack.entity.user
Abstract base class for all user types within the SportTrack application.
User() - Constructor for class fr.utc.miage.sporttrack.entity.user.User
 
USER_BLOCKED - Static variable in class fr.utc.miage.sporttrack.util.Messages
Success message for user blocked.
USER_UNBLOCKED - Static variable in class fr.utc.miage.sporttrack.util.Messages
Success message for user unblocked.
UserController - Class in fr.utc.miage.sporttrack.controller
Spring MVC controller for the current athlete's profile management.
UserController(AthleteService) - Constructor for class fr.utc.miage.sporttrack.controller.UserController
Constructs a UserController with the required service.
UserRepository - Interface in fr.utc.miage.sporttrack.repository.user
Marker interface for user-related repository operations.
UserService - Class in fr.utc.miage.sporttrack.service.user
Service layer component implementing Spring Security's UserDetailsService for the SportTrack application.
UserService(AthleteRepository, AdminRepository) - Constructor for class fr.utc.miage.sporttrack.service.user.UserService
Constructs a new UserService with the required repositories.

V

ValidationConstants - Class in fr.utc.miage.sporttrack.util
Utility class for common validation constants and thresholds.
valueOf(String) - Static method in enum class fr.utc.miage.sporttrack.dto.RelationshipStatusDTO
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class fr.utc.miage.sporttrack.entity.enumeration.FriendshipStatus
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class fr.utc.miage.sporttrack.entity.enumeration.Gender
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class fr.utc.miage.sporttrack.entity.enumeration.InteractionType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class fr.utc.miage.sporttrack.entity.enumeration.Metric
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class fr.utc.miage.sporttrack.entity.enumeration.NotificationType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class fr.utc.miage.sporttrack.entity.enumeration.PracticeLevel
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class fr.utc.miage.sporttrack.entity.enumeration.SportType
Returns the enum constant of this class with the specified name.
values() - Static method in enum class fr.utc.miage.sporttrack.dto.RelationshipStatusDTO
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class fr.utc.miage.sporttrack.entity.enumeration.FriendshipStatus
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class fr.utc.miage.sporttrack.entity.enumeration.Gender
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class fr.utc.miage.sporttrack.entity.enumeration.InteractionType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class fr.utc.miage.sporttrack.entity.enumeration.Metric
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class fr.utc.miage.sporttrack.entity.enumeration.NotificationType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class fr.utc.miage.sporttrack.entity.enumeration.PracticeLevel
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class fr.utc.miage.sporttrack.entity.enumeration.SportType
Returns an array containing the constants of this enum class, in the order they are declared.
valuesForChallenges() - Static method in enum class fr.utc.miage.sporttrack.entity.enumeration.Metric
Returns all metrics except COUNT, suitable for challenge creation.

W

WeatherReport - Class in fr.utc.miage.sporttrack.entity.activity
JPA entity representing the weather conditions associated with a given Activity within the SportTrack application.
WeatherReport() - Constructor for class fr.utc.miage.sporttrack.entity.activity.WeatherReport
No-argument constructor required by JPA.
WeatherReportRepository - Interface in fr.utc.miage.sporttrack.repository.activity
Spring Data JPA repository for WeatherReport entities.
WeatherReportService - Class in fr.utc.miage.sporttrack.service.activity
Service layer component responsible for managing WeatherReport entities within the SportTrack application.
WeatherReportService(WeatherReportRepository) - Constructor for class fr.utc.miage.sporttrack.service.activity.WeatherReportService
Constructs a new WeatherReportService with the given repository.
WEEK_NUMBER - Static variable in class fr.utc.miage.sporttrack.controller.DashboardController
Attribute key for the ISO week number in weekly aggregates.
A B C D E F G H I L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form