Interface IFavoriteDAO

  • All Known Implementing Classes:
    FavoriteDAO

    public interface IFavoriteDAO
    IFavoriteDAO Interface
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int countProviderNameRemoteId​(java.lang.String strProviderName, java.lang.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)
      void delete​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(Favorite favorite, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Favorite load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<Favorite> selectActivatedFavoritesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the activated favorite objects and returns them as a list
      java.util.List<Favorite> selectCategoryCodeActivatedFavoritesList​(java.lang.String strCategoryCode, fr.paris.lutece.portal.service.plugin.Plugin _plugin)  
      java.util.List<Favorite> selectCategoryCodeFavoritesList​(java.lang.String strCategoryCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the favorite provided by the category code
      java.util.List<Favorite> selectDefaultFavoritesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Return the default favorites list
      java.util.List<Favorite> selectFavoritesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the favorite objects and returns them as a list
      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
      java.util.List<java.lang.Integer> selectIdFavoritesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the favorite objects and returns them as a list
      java.util.List<Favorite> selectProviderNameFavoritesList​(java.lang.String strProviderName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the favorite provided by the ProviderName
      void store​(Favorite favorite, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
    • Method Detail

      • insert

        void insert​(Favorite favorite,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Parameters:
        favorite - instance of the Favorite object to insert
        plugin - the Plugin
      • store

        void store​(Favorite favorite,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Parameters:
        favorite - the reference of the Favorite
        plugin - 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 delete
        plugin - the Plugin
      • load

        Favorite load​(int nKey,
                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nKey - The identifier of the favorite
        plugin - the Plugin
        Returns:
        The instance of the favorite
      • selectFavoritesList

        java.util.List<Favorite> selectFavoritesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        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

        java.util.List<java.lang.Integer> selectIdFavoritesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        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

        java.util.List<Favorite> selectActivatedFavoritesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        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

        java.util.List<Favorite> selectProviderNameFavoritesList​(java.lang.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 name
        plugin - the Plugin
        Returns:
        The List which contains the data of all the activated favorite objects
      • countProviderNameRemoteId

        int countProviderNameRemoteId​(java.lang.String strProviderName,
                                      java.lang.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 name
        strRemoteId - the favorite remote id
        plugin - the Plugin
        Returns:
        The count of favorites corresponding to provider name and remote id given
      • selectDefaultFavoritesList

        java.util.List<Favorite> selectDefaultFavoritesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Return the default favorites list
        Parameters:
        plugin -
        Returns:
        the list of default favorites
      • selectCategoryCodeFavoritesList

        java.util.List<Favorite> selectCategoryCodeFavoritesList​(java.lang.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 code
        plugin - the Plugin
        Returns:
        The List which contains the data of all the favorites filtered by the category code
      • selectCategoryCodeActivatedFavoritesList

        java.util.List<Favorite> selectCategoryCodeActivatedFavoritesList​(java.lang.String strCategoryCode,
                                                                          fr.paris.lutece.portal.service.plugin.Plugin _plugin)