Interface PlaylistService

All Known Implementing Classes:
PlaylistServiceImpl

public interface PlaylistService
Service interface for handling playlist-related operations.
  • Method Details

    • createOrUpdateUserCityPlaylist

      Playlist createOrUpdateUserCityPlaylist(UUID userId, UUID cityId, List<RecommendedArtistDto> recs, int localPerSeed, boolean useSeedSong)
      Creates or updates a user's city playlist.
      Parameters:
      userId - The ID of the user.
      cityId - The ID of the city.
      recs - A list of recommended artists.
      localPerSeed - The number of local artists to include per seed artist.
      useSeedSong - Whether to include a song from the seed artist.
      Returns:
      The created or updated playlist.
    • createOrUpdateUserFestivalPlaylist

      Playlist createOrUpdateUserFestivalPlaylist(UUID userId, UUID festivalId, List<RecommendedFestivalArtistDto> recs, int localPerSeed, boolean useSeedSong)
      Creates or updates a user's festival playlist.
      Parameters:
      userId - The ID of the user.
      festivalId - The ID of the festival.
      recs - A list of recommended festival artists.
      localPerSeed - The number of local artists to include per seed artist.
      useSeedSong - Whether to include a song from the seed artist.
      Returns:
      The created or updated playlist.
    • savePlaylistToSpotify

      void savePlaylistToSpotify(Playlist playlist, UUID userId)
      Saves a playlist to Spotify for a user.
      Parameters:
      playlist - The playlist to save.
      userId - The ID of the user.
    • createOrUpdateCityPlaylist

      Playlist createOrUpdateCityPlaylist(UUID cityId)
      Creates or updates a city playlist.
      Parameters:
      cityId - The ID of the city.
      Returns:
      The created or updated playlist.
    • createOrUpdateVenuePlaylist

      Playlist createOrUpdateVenuePlaylist(UUID venueId)
      Creates or updates a venue playlist.
      Parameters:
      venueId - The ID of the venue.
      Returns:
      The created or updated playlist.
    • saveNonUserPlaylistToSpotify

      void saveNonUserPlaylistToSpotify(Playlist playlist)
      Saves a non-user playlist to Spotify.
      Parameters:
      playlist - The playlist to save.