Interface IFavoriteDAO
- All Known Implementing Classes:
FavoriteDAO
public interface IFavoriteDAO
IFavoriteDAO Interface
-
Method Summary
Modifier and TypeMethodDescriptionintcountProviderNameRemoteId(String strProviderName, String strRemoteId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Count the number of favorite for one provider name AND one remote id (should be 1 or 0)voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoidInsert a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectActivatedFavoritesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the activated favorite objects and returns them as a listselectCategoryCodeActivatedFavoritesList(String strCategoryCode, fr.paris.lutece.portal.service.plugin.Plugin _plugin) selectCategoryCodeFavoritesList(String strCategoryCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the favorite provided by the category codeselectDefaultFavoritesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Return the default favorites listselectFavoritesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the favorite objects and returns them as a listfr.paris.lutece.util.ReferenceListselectFavoritesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the favorite objects and returns them as a referenceListselectIdFavoritesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the favorite objects and returns them as a listselectProviderNameFavoritesList(String strProviderName, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the favorite provided by the ProviderNamevoidUpdate the record in the table
-
Method Details
-
insert
Insert a new record in the table.- Parameters:
favorite- instance of the Favorite object to insertplugin- the Plugin
-
store
Update the record in the table- Parameters:
favorite- the reference of the Favoriteplugin- the Plugin
-
delete
void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Parameters:
nKey- The identifier of the Favorite to deleteplugin- the Plugin
-
load
Load the data from the table- Parameters:
nKey- The identifier of the favoriteplugin- the Plugin- Returns:
- The instance of the favorite
-
selectFavoritesList
Load the data of all the favorite objects and returns them as a list- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the favorite objects
-
selectIdFavoritesList
Load the id of all the favorite objects and returns them as a list- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the favorite objects
-
selectFavoritesReferenceList
fr.paris.lutece.util.ReferenceList selectFavoritesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the favorite objects and returns them as a referenceList- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the favorite objects
-
selectActivatedFavoritesList
Load the data of all the activated favorite objects and returns them as a list- Parameters:
plugin- the Plugin- Returns:
- The List which contains the data of all the activated favorite objects
-
selectProviderNameFavoritesList
List<Favorite> selectProviderNameFavoritesList(String strProviderName, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the favorite provided by the ProviderName- Parameters:
strProviderName- the favorite provider nameplugin- the Plugin- Returns:
- The List which contains the data of all the activated favorite objects
-
countProviderNameRemoteId
int countProviderNameRemoteId(String strProviderName, String strRemoteId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Count the number of favorite for one provider name AND one remote id (should be 1 or 0)- Parameters:
strProviderName- the favorite provider namestrRemoteId- the favorite remote idplugin- the Plugin- Returns:
- The count of favorites corresponding to provider name and remote id given
-
selectDefaultFavoritesList
Return the default favorites list- Parameters:
plugin-- Returns:
- the list of default favorites
-
selectCategoryCodeFavoritesList
List<Favorite> selectCategoryCodeFavoritesList(String strCategoryCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the favorite provided by the category code- Parameters:
strCategoryCode- the category codeplugin- the Plugin- Returns:
- The List which contains the data of all the favorites filtered by the category code
-
selectCategoryCodeActivatedFavoritesList
-