Package org.localify.music.genre
Class GenreServiceImpl
java.lang.Object
org.localify.music.genre.GenreServiceImpl
- All Implemented Interfaces:
GenreService
Implementation of the GenreService interface.
-
Constructor Summary
ConstructorsConstructorDescriptionGenreServiceImpl(GenreRepository genreRepository, ArtistRepository artistRepository, LocalifyProperties localifyProperties) Constructs a new GenreServiceImpl. -
Method Summary
Modifier and TypeMethodDescriptionGets a genre by its name.Gets a list of curated genres.Gets a list of popular genres with their top artists.
-
Constructor Details
-
GenreServiceImpl
public GenreServiceImpl(GenreRepository genreRepository, ArtistRepository artistRepository, LocalifyProperties localifyProperties) Constructs a new GenreServiceImpl.- Parameters:
genreRepository- The genre repository.artistRepository- The artist repository.localifyProperties- The application properties.
-
-
Method Details
-
getByName
Description copied from interface:GenreServiceGets a genre by its name.- Specified by:
getByNamein interfaceGenreService- Parameters:
name- The name of the genre.- Returns:
- The genre.
-
getPopularGenresWithArtists
Description copied from interface:GenreServiceGets a list of popular genres with their top artists.- Specified by:
getPopularGenresWithArtistsin interfaceGenreService- Returns:
- A list of popular genres with top artists.
-
getCuratedGenres
Description copied from interface:GenreServiceGets a list of curated genres.- Specified by:
getCuratedGenresin interfaceGenreService- Returns:
- A list of curated genres.
-