Uses of Class
fr.utc.miage.sporttrack.entity.user.communication.Friendship
Packages that use Friendship
Package
Description
-
Uses of Friendship in fr.utc.miage.sporttrack.repository.user.communication
Methods in fr.utc.miage.sporttrack.repository.user.communication that return types with arguments of type FriendshipModifier and TypeMethodDescriptionFriendshipRepository.findBetweenAthletes(Athlete a, Athlete b) Finds a friendship between two athletes, regardless of direction.FriendshipRepository.findByAthleteAndStatus(Integer athleteId, FriendshipStatus status) Finds all friendships for a given athlete and status, regardless of direction.FriendshipRepository.findByInitiatorAndStatus(Athlete initiator, FriendshipStatus status) Finds all friendships in which the specified athlete is the initiator and the relationship has the given status.FriendshipRepository.findByRecipientAndStatus(Athlete recipient, FriendshipStatus status) Finds all friendships in which the specified athlete is the recipient and the relationship has the given status. -
Uses of Friendship in fr.utc.miage.sporttrack.service.user.communication
Methods in fr.utc.miage.sporttrack.service.user.communication that return types with arguments of type FriendshipModifier and TypeMethodDescriptionFriendshipService.getBlockedUsers(Integer athleteId) Returns all users blocked by the given athlete.FriendshipService.getPendingRequestsForAthlete(Integer athleteId) Returns all pending friend requests waiting for the athlete to accept.FriendshipService.getSentPendingRequests(Integer athleteId) Returns all friend requests sent by the athlete that are still pending.Methods in fr.utc.miage.sporttrack.service.user.communication with parameters of type FriendshipModifier and TypeMethodDescriptionvoidNotificationService.notifyFriendRequest(Friendship friendship) Sends a notification to the friendship recipient that a friend request has been received.voidNotificationService.notifyFriendRequestAccepted(Friendship friendship) Sends a notification to the friendship initiator that their request has been accepted.