Package org.localify.user
Interface UserService
- All Known Implementing Classes:
UserServiceImpl
public interface UserService
Service interface for handling user-related operations.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a seed artist for a user.voidblacklistSeed(UUID userId, UUID seedId) Blacklists a seed artist for a user.voidcanRecommend(UUID userId) Creates an anonymous user.voiddeleteById(UUID userId) Deletes a user by their ID.voiddeleteFestivalUser(UUID userId, UUID festivalId) Deletes a user's festival.voiddeleteSearchHistory(UUID userId) voiddeleteUserCity(UUID userId, UUID cityId) Deletes a user's city.voiddeleteUserViewHistory(UUID userId) Deletes the user's view history.doCreateAccountLink(UUID userId, AccountLinkToken.ExpectedService expectedService) voidemailUnsubscribe(UUID userId, String token) voidfavoriteArtist(UUID userId, UUID artistId) Favorites an artist for a user.voidfavoriteEvent(UUID userId, UUID eventId) Favorites an event for a user.voidfavoriteVenue(UUID userId, UUID venueId) Favorites a venue for a user.getCitiesResponse(UUID userId) Gets the user's cities.Gets a user's city.org.springframework.data.domain.Page<BasicArtistResponse>getFavoriteArtists(UUID userId, UserFavoriteQuery query) org.springframework.data.domain.Page<UserFavoriteEventResponse>getFavoriteEvents(UUID userId, UserFavoriteQuery query) org.springframework.data.domain.Page<UserFavoriteEventResponse>getFavoriteEventsPrevious(UUID userId, UserFavoriteQuery query) org.springframework.data.domain.Page<UserFavoriteEventResponse>getFavoriteEventsUpcoming(UUID userId, UserFavoriteQuery query) org.springframework.data.domain.Page<VenueResponse>getFavoriteVenues(UUID userId, UserFavoriteQuery query) getOrCreateFestivalPlaylist(UUID userId, UUID festivalId) getOrCreatePlaylist(UUID userId, UUID cityId) getPlaylist(UUID userId, UUID cityId) getSearchHistory(UUID userId) Gets the user's seed artists.getSeedsAll(UUID userId) Gets all of the user's seed artists, including blacklisted ones.getUserCitiesAndFestivals(UUID userId) Gets the user's cities and festivals.getUserResponse(UUID userId) Gets the user details response for a user.getUserViewHistory(UUID userId, PageOptions pageOptions) Gets the user's view history.patchById(UUID userId, UserPatchRequest request) Patches a user's information.patchCity(UUID userId, UUID cityId, UserCityPatchRequest request) Patches a user's city.putCity(UUID userId, UUID cityId, UserCityPutRequest request) Adds or updates a user's city.putCityOnboarding(UUID userId, UUID cityId, UserCityPutRequest request) Adds or updates a user's city during onboarding.putFestival(UUID userId, UUID festivalId) Adds or updates a user's festival.Sets the user's seed artists.voidrateEvent(UUID userId, UUID eventId, UserFavoriteEventRating rating) Rates an event for a user.voidsaveSearchQuery(String query, UUID actingUserId) Saves a search query.voidsubmitFeedback(UUID userId, String entry, String email) voidunblacklistSeed(UUID userId, UUID seedId) Un-blacklists a seed artist for a user.voidunfavoriteArtist(UUID userId, UUID artistId) Unfavorites an artist for a user.voidunfavoriteEvent(UUID userId, UUID eventId) Unfavorites an event for a user.voidunfavoriteVenue(UUID userId, UUID venueId) Unfavorites a venue for a user.
-
Method Details
-
getUserResponse
Gets the user details response for a user.- Parameters:
userId- The ID of the user.- Returns:
- The user details response.
-
getUserViewHistory
Gets the user's view history.- Parameters:
userId- The ID of the user.pageOptions- The pagination options.- Returns:
- The user's view history.
-
deleteUserViewHistory
Deletes the user's view history.- Parameters:
userId- The ID of the user.
-
deleteById
Deletes a user by their ID.- Parameters:
userId- The ID of the user.
-
patchById
Patches a user's information.- Parameters:
userId- The ID of the user.request- The patch request.- Returns:
- The updated user details response.
-
patchCity
Patches a user's city.- Parameters:
userId- The ID of the user.cityId- The ID of the city.request- The patch request.- Returns:
- The updated user city container.
-
putCity
Adds or updates a user's city.- Parameters:
userId- The ID of the user.cityId- The ID of the city.request- The put request.- Returns:
- The updated user city container.
-
putCityOnboarding
Adds or updates a user's city during onboarding.- Parameters:
userId- The ID of the user.cityId- The ID of the city.request- The put request.- Returns:
- The updated user city container.
-
putFestival
Adds or updates a user's festival.- Parameters:
userId- The ID of the user.festivalId- The ID of the festival.- Returns:
- The festival response.
-
getSeeds
Gets the user's seed artists.- Parameters:
userId- The ID of the user.- Returns:
- A list of seed artist responses.
-
getSeedsAll
Gets all of the user's seed artists, including blacklisted ones.- Parameters:
userId- The ID of the user.- Returns:
- A list of seed artist responses.
-
getCitiesResponse
Gets the user's cities.- Parameters:
userId- The ID of the user.- Returns:
- A response containing the user's cities.
-
getUserCitiesAndFestivals
Gets the user's cities and festivals.- Parameters:
userId- The ID of the user.- Returns:
- A response containing the user's cities and festivals.
-
getCity
Gets a user's city.- Parameters:
userId- The ID of the user.cityId- The ID of the city.- Returns:
- The user city container.
-
blacklistSeed
Blacklists a seed artist for a user.- Parameters:
userId- The ID of the user.seedId- The ID of the seed artist.
-
unblacklistSeed
Un-blacklists a seed artist for a user.- Parameters:
userId- The ID of the user.seedId- The ID of the seed artist.
-
putSeeds
Sets the user's seed artists.- Parameters:
userId- The ID of the user.seeds- A list of seed artist IDs.- Returns:
- A list of the updated seed artist responses.
-
addSeed
Adds a seed artist for a user.- Parameters:
userId- The ID of the user.seeds- The ID of the seed artist to add.
-
createAnonymousUser
User createAnonymousUser()Creates an anonymous user.- Returns:
- The created user.
-
deleteUserCity
Deletes a user's city.- Parameters:
userId- The ID of the user.cityId- The ID of the city.
-
deleteFestivalUser
Deletes a user's festival.- Parameters:
userId- The ID of the user.festivalId- The ID of the festival.
-
favoriteArtist
Favorites an artist for a user.- Parameters:
userId- The ID of the user.artistId- The ID of the artist.
-
unfavoriteArtist
Unfavorites an artist for a user.- Parameters:
userId- The ID of the user.artistId- The ID of the artist.
-
favoriteEvent
Favorites an event for a user.- Parameters:
userId- The ID of the user.eventId- The ID of the event.
-
unfavoriteEvent
Unfavorites an event for a user.- Parameters:
userId- The ID of the user.eventId- The ID of the event.
-
rateEvent
Rates an event for a user.- Parameters:
userId- The ID of the user.eventId- The ID of the event.rating- The rating.
-
favoriteVenue
Favorites a venue for a user.- Parameters:
userId- The ID of the user.venueId- The ID of the venue.
-
unfavoriteVenue
Unfavorites a venue for a user.- Parameters:
userId- The ID of the user.venueId- The ID of the venue.
-
saveSearchQuery
Saves a search query.- Parameters:
query- the user's query
-
getSearchHistory
-
deleteSearchHistory
-
getFavoriteArtists
org.springframework.data.domain.Page<BasicArtistResponse> getFavoriteArtists(UUID userId, UserFavoriteQuery query) -
getFavoriteEvents
org.springframework.data.domain.Page<UserFavoriteEventResponse> getFavoriteEvents(UUID userId, UserFavoriteQuery query) -
getFavoriteEventsUpcoming
org.springframework.data.domain.Page<UserFavoriteEventResponse> getFavoriteEventsUpcoming(UUID userId, UserFavoriteQuery query) -
getFavoriteEventsPrevious
org.springframework.data.domain.Page<UserFavoriteEventResponse> getFavoriteEventsPrevious(UUID userId, UserFavoriteQuery query) -
getFavoriteVenues
org.springframework.data.domain.Page<VenueResponse> getFavoriteVenues(UUID userId, UserFavoriteQuery query) -
doCreateAccountLink
-
getOrCreatePlaylist
-
getOrCreateFestivalPlaylist
-
getPlaylist
-
submitFeedback
-
canRecommend
-
emailUnsubscribe
-