Uses of Class
fr.utc.miage.sporttrack.entity.event.Challenge
Packages that use Challenge
Package
Description
-
Uses of Challenge in fr.utc.miage.sporttrack.entity.event
Methods in fr.utc.miage.sporttrack.entity.event that return ChallengeModifier and TypeMethodDescriptionChallengeRanking.getChallenge()Returns the challenge to which this ranking belongs.Methods in fr.utc.miage.sporttrack.entity.event with parameters of type ChallengeModifier and TypeMethodDescriptionvoidChallengeRanking.setChallenge(Challenge challenge) Sets the challenge to which this ranking belongs. -
Uses of Challenge in fr.utc.miage.sporttrack.repository.event
Methods in fr.utc.miage.sporttrack.repository.event that return types with arguments of type ChallengeModifier and TypeMethodDescriptionChallengeRepository.findAll()Returns all challenges in the database.ChallengeRepository.findByEndDateLessThanEqualAndEndedNotifiedAtIsNull(LocalDate currentDate) Finds all challenges whose end date is on or before the given date and for which no end notification has yet been sent.ChallengeRepository.findById(int id) Finds a challenge by its identifier.ChallengeRepository.findChallengesImpactedByActivity(Integer athleteId, Integer sportId, LocalDate activityDate) Finds all active challenges that are impacted by a newly created activity.ChallengeRepository.findDistinctByOrganizer_IdOrParticipants_Id(int organizerId, int participantId) Finds all distinct challenges in which the given athlete is either the organiser or a participant. -
Uses of Challenge in fr.utc.miage.sporttrack.service.event
Methods in fr.utc.miage.sporttrack.service.event that return ChallengeModifier and TypeMethodDescriptionChallengeService.getChallengeById(int id) Retrieves a challenge by its unique identifier.Methods in fr.utc.miage.sporttrack.service.event with parameters of type ChallengeModifier and TypeMethodDescriptionvoidChallengeRankingService.recomputeRanking(Challenge challenge) Recomputes and persists the full ranking for the given challenge.voidChallengeService.saveChallenge(Challenge challenge, Athlete athlete, Sport sport) Saves a challenge entity, associating it with the given organiser athlete and sport. -
Uses of Challenge in fr.utc.miage.sporttrack.service.user.communication
Methods in fr.utc.miage.sporttrack.service.user.communication with parameters of type ChallengeModifier and TypeMethodDescriptionvoidNotificationService.notifyChallengeEnded(Challenge challenge) Sends notifications to all participants and the organiser that a challenge has ended.