public class FavoriteService extends Object
| Modifier and Type | Method and Description |
|---|---|
List<Favorite> |
findAllActivatedFavorites()
Load all the activated favorites
|
List<Favorite> |
findAllFavorites()
Load all the favorites
|
Favorite |
findByPrimaryKey(int idFavorite)
Load the favorite for the given id
|
static FavoriteService |
getInstance()
Get the instance of this service singleton
|
void |
removeFavorite(int nIdFavorite)
Remove favorite with specific id, and delete all the users subscription to that favorite
|
public static FavoriteService getInstance()
public Favorite findByPrimaryKey(int idFavorite)
idFavorite - the id of the favorite to getpublic List<Favorite> findAllFavorites()
public List<Favorite> findAllActivatedFavorites()
public void removeFavorite(int nIdFavorite)
nIdFavorite - the id of the favorite to deleteCopyright © 2017 City of Paris. All rights reserved.