Uses of Class
fr.utc.miage.sporttrack.entity.activity.Sport
Packages that use Sport
Package
Description
-
Uses of Sport in fr.utc.miage.sporttrack.entity.activity
Methods in fr.utc.miage.sporttrack.entity.activity that return SportModifier and TypeMethodDescriptionActivity.getSportAndType()Returns the sport (and its type) associated with this activity.Methods in fr.utc.miage.sporttrack.entity.activity with parameters of type SportModifier and TypeMethodDescriptionvoidActivity.setSportAndType(Sport sport) Sets the sport associated with this activity and updates the transient sport identifier. -
Uses of Sport in fr.utc.miage.sporttrack.entity.event
Methods in fr.utc.miage.sporttrack.entity.event that return SportModifier and TypeMethodDescriptionBadge.getSport()Returns the sport associated with this badge.Challenge.getSport()Returns the sport associated with this challenge.Objective.getSport()Returns the sport associated with this objective.Methods in fr.utc.miage.sporttrack.entity.event with parameters of type Sport -
Uses of Sport in fr.utc.miage.sporttrack.repository.activity
Methods in fr.utc.miage.sporttrack.repository.activity that return types with arguments of type SportModifier and TypeMethodDescriptionSportRepository.findAllByActive(boolean active) Finds all sports matching the given active status. -
Uses of Sport in fr.utc.miage.sporttrack.service.activity
Methods in fr.utc.miage.sporttrack.service.activity that return SportModifier and TypeMethodDescriptionSportService.createSport(String name, String description, double caloriesPerHour, SportType type) Creates and persists a new sport with the provided attributes.SportService.updateSport(int id, String name, String description, double caloriesPerHour, SportType type) Updates an existing sport with the provided attributes.Methods in fr.utc.miage.sporttrack.service.activity that return types with arguments of type SportModifier and TypeMethodDescriptionSportService.findAll()Returns all sports, both active and inactive.SportService.findAllActive()Returns only active sports.SportService.findById(int id) Finds a sport by its unique identifier.Methods in fr.utc.miage.sporttrack.service.activity with parameters of type SportModifier and TypeMethodDescriptionbooleanActivityService.filterBySport(Activity activity, Sport selectedSport) Filters an activity by matching its associated sport against a selected sport.SportService.safeSportName(Sport sport) Returns a safe display name for the given sport, defaulting to "Autre" if the sport or its name is null or blank. -
Uses of Sport in fr.utc.miage.sporttrack.service.event
Methods in fr.utc.miage.sporttrack.service.event with parameters of type SportModifier and TypeMethodDescriptionvoidSaves a badge entity after associating it with the given sport.voidChallengeService.saveChallenge(Challenge challenge, Athlete athlete, Sport sport) Saves a challenge entity, associating it with the given organiser athlete and sport.voidObjectiveService.saveObjective(Objective objective, Athlete athlete, Sport sport) Saves a new objective associated with the given athlete and sport.