All Known Implementing Classes:
RatingDAO

public interface IRatingDAO
IRatingDAO.
  • Method Details

    • 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(List<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(String strIdExtendableResource, 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

      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

      Optional<Rating> load(String strIdExtendableResource, String strExtendableResourceType, String ratingType, double value, 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

      List<Rating> loadByResource(String strIdExtendableResource, 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

      List<Rating> findByResourceAndRatingType(List<String> listExtendableResource, String strExtendableResourceType, 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

      List<Rating> findByHistoryExtenderIds(List<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(List<String> listIdResource, String strExtendableResourceType, String strRatingType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    • selectRatingByFilter

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