Class FavoriteHome
java.lang.Object
fr.paris.lutece.plugins.mydashboard.modules.favorites.business.FavoriteHome
This class provides instances management methods (create, find, ...) for Favorite objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic FavoriteCreate an instance of the favorite classstatic FavoritefindByPrimaryKey(int nKey) Returns an instance of a favorite whose identifier is specified in parameterLoad the data of all the activated favorite objects and returns them as a listgetActivatedFavoritesListByCode(String strCategoryCode) Load the data of all the favorite objects and returns them as a listgetFavoritesListByCategoryCode(String strCategoryCode) Return the number of favorite for one id remote and one provider nameGet the default favorites liststatic fr.paris.lutece.util.ReferenceListLoad the data of all the favorite objects and returns them as a referenceListLoad the id of all the favorite objects and returns them as a liststatic intgetNumberFavoriteProviderRemoteId(String strProviderName, String strRemoteId) Return the number of favorite for one id remote and one provider namestatic voidremove(int nKey) Remove the favorite whose identifier is specified in parameterstatic FavoriteUpdate of the favorite which is specified in parameter
-
Method Details
-
create
Create an instance of the favorite class- Parameters:
favorite- The instance of the Favorite which contains the informations to store- Returns:
- The instance of favorite which has been created with its primary key.
-
update
Update of the favorite which is specified in parameter- Parameters:
favorite- The instance of the Favorite which contains the data to store- Returns:
- The instance of the favorite which has been updated
-
remove
public static void remove(int nKey) Remove the favorite whose identifier is specified in parameter- Parameters:
nKey- The favorite Id
-
findByPrimaryKey
Returns an instance of a favorite whose identifier is specified in parameter- Parameters:
nKey- The favorite primary key- Returns:
- an instance of Favorite
-
getFavoritesList
Load the data of all the favorite objects and returns them as a list- Returns:
- the list which contains the data of all the favorite objects
-
getActivatedFavoritesList
Load the data of all the activated favorite objects and returns them as a list- Returns:
- the list which contains the data of all the favorite objects
-
getIdFavoritesList
Load the id of all the favorite objects and returns them as a list- Returns:
- the list which contains the id of all the favorite objects
-
getFavoritesReferenceList
public static fr.paris.lutece.util.ReferenceList getFavoritesReferenceList()Load the data of all the favorite objects and returns them as a referenceList- Returns:
- the referenceList which contains the data of all the favorite objects
-
getNumberFavoriteProviderRemoteId
Return the number of favorite for one id remote and one provider name- Parameters:
strProviderName- the favorite provider namestrRemoteId- the favorite remote idplugin- the Plugin- Returns:
- the number of favorite for one id remote and one provider name
-
getFavoritesListDefault
Get the default favorites list- Returns:
- the default favorites list
-
getFavoritesListByCategoryCode
Return the number of favorite for one id remote and one provider name- Parameters:
strCategoryCode- the category code- Returns:
- the List which contains the data of all the favorites filtered by the category code
-
getActivatedFavoritesListByCode
-