public final class FavoriteHome extends Object
Modifier and Type | Method and Description |
---|---|
static Favorite |
create(Favorite favorite)
Create an instance of the favorite class
|
static Favorite |
findByPrimaryKey(int nKey)
Returns an instance of a favorite whose identifier is specified in parameter
|
static List<Favorite> |
getActivatedFavoritesList()
Load the data of all the activated favorite objects and returns them as a list
|
static List<Favorite> |
getFavoritesList()
Load the data of all the favorite objects and returns them as a list
|
static List<Favorite> |
getFavoritesListDefault()
Get the default favorites list
|
static fr.paris.lutece.util.ReferenceList |
getFavoritesReferenceList()
Load the data of all the favorite objects and returns them as a referenceList
|
static List<Integer> |
getIdFavoritesList()
Load the id of all the favorite objects and returns them as a list
|
static int |
getNumberFavoriteProviderRemoteId(String strProviderName,
String strRemoteId)
Return the number of favorite for one id remote and one provider name
|
static void |
remove(int nKey)
Remove the favorite whose identifier is specified in parameter
|
static Favorite |
update(Favorite favorite)
Update of the favorite which is specified in parameter
|
public static Favorite create(Favorite favorite)
favorite
- The instance of the Favorite which contains the informations to storepublic static Favorite update(Favorite favorite)
favorite
- The instance of the Favorite which contains the data to storepublic static void remove(int nKey)
nKey
- The favorite Idpublic static Favorite findByPrimaryKey(int nKey)
nKey
- The favorite primary keypublic static List<Favorite> getFavoritesList()
public static List<Favorite> getActivatedFavoritesList()
public static List<Integer> getIdFavoritesList()
public static fr.paris.lutece.util.ReferenceList getFavoritesReferenceList()
public static int getNumberFavoriteProviderRemoteId(String strProviderName, String strRemoteId)
strProviderName
- the favorite provider namestrRemoteId
- the favorite remote idplugin
- the PluginCopyright © 2019 City of Paris. All rights reserved.