Interface IRatingDAO

  • All Known Implementing Classes:
    RatingDAO

    public interface IRatingDAO
    IRatingDAO.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete.
      void deleteByIdExtenderHistory​(long nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete By Id extender History.
      void deleteByListExtenderHistory​(java.util.List<java.lang.Long> listIdExtenderHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete By list Id extender History.
      void deleteByResource​(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete by resource
      Rating findByHistoryExtenderId​(long lIdHistoryExtenderId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find a Rating
      java.util.List<Rating> findByHistoryExtenderIds​(java.util.List<java.lang.Long> lIdHistoryExtenderId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find a list Rating
      java.util.List<Rating> findByResourceAndRatingType​(java.util.List<java.lang.String> listExtendableResource, java.lang.String strExtendableResourceType, java.lang.String ratingType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find a list Rating
      void insert​(Rating rating, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert.
      java.util.Optional<Rating> load​(int nIdRating, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      load by primary key
      java.util.Optional<Rating> load​(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String ratingType, double value, java.lang.String userGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      load by primary key
      java.util.List<Rating> loadByResource​(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Select by resource.
      java.util.List<Rating> selectRatingByFilter​(RatingExtenderFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)  
      float[] selectRatingValue​(java.util.List<java.lang.String> listIdResource, java.lang.String strExtendableResourceType, java.lang.String strRatingType, fr.paris.lutece.portal.service.plugin.Plugin plugin)  
    • Method Detail

      • delete

        void delete​(int nId,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete.
        Parameters:
        nId - the n id rating
        plugin - the plugin
      • deleteByIdExtenderHistory

        void deleteByIdExtenderHistory​(long nIdHistory,
                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete By Id extender History.
        Parameters:
        nId - the Id extender History
        plugin - the plugin
      • deleteByListExtenderHistory

        void deleteByListExtenderHistory​(java.util.List<java.lang.Long> listIdExtenderHistory,
                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete By list Id extender History.
        Parameters:
        listIdExtenderHistory - the list Id extender History
        plugin - the plugin
      • deleteByResource

        void deleteByResource​(java.lang.String strIdExtendableResource,
                              java.lang.String strExtendableResourceType,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete by resource
        Parameters:
        strIdExtendableResource - the Extendable resource id
        strExtendableResourceType - the Extendable Resourcer type
        plugin - the plugin
      • insert

        void insert​(Rating rating,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert.
        Parameters:
        rating - the rating
        plugin - the plugin
      • load

        java.util.Optional<Rating> load​(int nIdRating,
                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
        load by primary key
        Parameters:
        nIdRating - the rating id
        plugin - the plugin
        Returns:
        the corresponding Rating
      • load

        java.util.Optional<Rating> load​(java.lang.String strIdExtendableResource,
                                        java.lang.String strExtendableResourceType,
                                        java.lang.String ratingType,
                                        double value,
                                        java.lang.String userGuid,
                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
        load by primary key
        Parameters:
        strIdExtendableResource - the str id extendable resource
        strExtendableResourceType - the str extendable resource type
        ratingType - the rating type
        value - the rating value
        plugin - the plugin
        Returns:
        the rating
      • loadByResource

        java.util.List<Rating> loadByResource​(java.lang.String strIdExtendableResource,
                                              java.lang.String strExtendableResourceType,
                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Select by resource.
        Parameters:
        strIdExtendableResource - the str id extendable resource
        strExtendableResourceType - the str extendable resource type
        plugin - the plugin
        Returns:
        the rating list
      • findByHistoryExtenderId

        Rating findByHistoryExtenderId​(long lIdHistoryExtenderId,
                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Find a Rating
        Parameters:
        lIdHistoryExtenderId - the extender id
        plugin - the plugin
        Returns:
        the corresponding Rating
      • findByResourceAndRatingType

        java.util.List<Rating> findByResourceAndRatingType​(java.util.List<java.lang.String> listExtendableResource,
                                                           java.lang.String strExtendableResourceType,
                                                           java.lang.String ratingType,
                                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Find a list Rating
        Parameters:
        listExtendableResource - the list of extender resource id
        strExtendableResourceType - the str extendable resource type
        ratingType - the rating type
        plugin - the plugin
        Returns:
        the corresponding list Rating
      • findByHistoryExtenderIds

        java.util.List<Rating> findByHistoryExtenderIds​(java.util.List<java.lang.Long> lIdHistoryExtenderId,
                                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Find a list Rating
        Parameters:
        lIdHistoryExtenderId - the list of extender id
        plugin - the plugin
        Returns:
        the corresponding list Rating
      • selectRatingValue

        float[] selectRatingValue​(java.util.List<java.lang.String> listIdResource,
                                  java.lang.String strExtendableResourceType,
                                  java.lang.String strRatingType,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
      • selectRatingByFilter

        java.util.List<Rating> selectRatingByFilter​(RatingExtenderFilter filter,
                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)