Uses of Class
fr.utc.miage.sporttrack.entity.activity.Activity
Packages that use Activity
Package
Description
-
Uses of Activity in fr.utc.miage.sporttrack.entity.activity
Methods in fr.utc.miage.sporttrack.entity.activity that return ActivityModifier and TypeMethodDescriptionWeatherReport.getActivity()Returns the activity to which this weather report is linked.Methods in fr.utc.miage.sporttrack.entity.activity with parameters of type ActivityModifier and TypeMethodDescriptionvoidWeatherReport.setActivity(Activity activity) Sets the activity to which this weather report is linked. -
Uses of Activity in fr.utc.miage.sporttrack.entity.user.communication
Methods in fr.utc.miage.sporttrack.entity.user.communication that return ActivityModifier and TypeMethodDescriptionComment.getActivity()Returns the activity to which this comment is attached.Methods in fr.utc.miage.sporttrack.entity.user.communication with parameters of type ActivityModifier and TypeMethodDescriptionvoidComment.setActivity(Activity activity) Sets the activity to which this comment is attached. -
Uses of Activity in fr.utc.miage.sporttrack.repository.activity
Methods in fr.utc.miage.sporttrack.repository.activity that return types with arguments of type ActivityModifier and TypeMethodDescriptionActivityRepository.findActivitiesForChallengeRanking(List<Integer> athleteIds, Integer sportId, LocalDate startDate, LocalDate endDate) Finds activities matching the criteria for challenge ranking computation.ActivityRepository.findByCreatedBy_IdInOrderByDateADescStartTimeDesc(List<Integer> athleteIds) Finds all activities created by any of the specified athletes, ordered by date and start time descending.ActivityRepository.findByCreatedBy_IdOrderByDateADescStartTimeDesc(Integer athleteId) Finds all activities created by a specific athlete, ordered by date and start time descending.ActivityRepository.findByIdAndCreatedBy_Id(Integer id, Integer athleteId) Finds a single activity by its identifier and the identifier of the athlete who created it. -
Uses of Activity in fr.utc.miage.sporttrack.service.activity
Methods in fr.utc.miage.sporttrack.service.activity that return ActivityModifier and TypeMethodDescriptionActivityService.createActivityForAthlete(Athlete athlete, double duration, String title, String description, int repetition, double distance, LocalDate dateA, LocalTime startTime, String locationCity, int sportId) Creates and persists a new activity for the specified athlete with full validation.ActivityService.updateActivity(int id, double duration, String title, String description, int repetition, double distance, LocalDate dateA, LocalTime startTime, String locationCity, int sportId) Updates an existing activity by its identifier with full validation.ActivityService.updateActivityForAthlete(Athlete athlete, int id, double duration, String title, String description, int repetition, double distance, LocalDate dateA, LocalTime startTime, String locationCity, int sportId) Updates an activity owned by the specified athlete with full validation.Methods in fr.utc.miage.sporttrack.service.activity that return types with arguments of type ActivityModifier and TypeMethodDescriptionActivityService.findAll()Returns all activities in the database.ActivityService.findAllByAthlete(Athlete athlete) Returns all activities created by the specified athlete, ordered newest first.ActivityService.findAllByAthleteIds(List<Integer> athleteIds) Returns all activities created by any of the specified athlete identifiers.ActivityService.findById(int id) Finds an activity by its unique identifier.ActivityService.findByIdForAthlete(int id, Athlete athlete) Finds an activity by identifier, restricted to those owned by the specified athlete.Methods in fr.utc.miage.sporttrack.service.activity with parameters of type ActivityModifier and TypeMethodDescriptionbooleanActivityService.filterByDate(Activity activity, LocalDate startDate, LocalDate endDate) Filters an activity by checking whether its date falls within the specified range.booleanActivityService.filterBySport(Activity activity, Sport selectedSport) Filters an activity by matching its associated sport against a selected sport.WeatherReportService.refreshWeatherReport(Activity activity) Refreshes (or creates) the weather report for the given activity by fetching live data from the external API and persisting the result. -
Uses of Activity in fr.utc.miage.sporttrack.service.event
Methods in fr.utc.miage.sporttrack.service.event with parameters of type ActivityModifier and TypeMethodDescriptionvoidBadgeService.checkAndAwardBadges(Activity activity) Checks and awards badges after an activity is created.Method parameters in fr.utc.miage.sporttrack.service.event with type arguments of type ActivityModifier and TypeMethodDescriptionbooleanObjectiveService.isObjectiveCompleted(Objective objective, List<Activity> activities) Determines whether an objective is considered completed based on the provided list of activities. -
Uses of Activity in fr.utc.miage.sporttrack.service.user.communication
Methods in fr.utc.miage.sporttrack.service.user.communication with parameters of type ActivityModifier and TypeMethodDescriptionCommentService.addComment(Athlete author, Activity activity, String content, InteractionType type) Creates and persists a new comment on an activity.voidNotificationService.notifyActivityPublished(Athlete actor, Activity activity, List<Athlete> recipients) Sends a notification to multiple recipients that a friend has published a new activity.