Enum Class RatingService

java.lang.Object
java.lang.Enum<RatingService>
fr.paris.lutece.plugins.extend.modules.rating.service.RatingService
All Implemented Interfaces:
Serializable, Comparable<RatingService>, Constable

public enum RatingService extends Enum<RatingService>
RatingService
  • Enum Constant Details

  • Method Details

    • values

      public static RatingService[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RatingService valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • removeByResource

      public void removeByResource(String strIdExtendableResource, String strExtendableResourceType)
      Remove rating by resource
      Parameters:
      strIdExtendableResource - the Extendable resource id
      strExtendableResourceType - the Extendable Resourcer type
    • findByPrimaryKey

      public Optional<Rating> findByPrimaryKey(int nIdRating)
      Find by primary key
      Parameters:
      nIdRating - the n id rating
      Returns:
      the rating
    • findRating

      public Optional<Rating> findRating(String strIdExtendableResource, String strExtendableResourceType, String ratingType, double value, String userGuid)
      find by primary key
      Parameters:
      strIdExtendableResource - the str id extendable resource
      strExtendableResourceType - the str extendable resource type
      ratingType - the rating type
      value - the rating value
      Returns:
      the rating
    • findByResource

      public List<Rating> findByResource(String strIdExtendableResource, String strExtendableResourceType)
      Select by resource.
      Parameters:
      strIdExtendableResource - the str id extendable resource
      strExtendableResourceType - the str extendable resource type
      Returns:
      the rating list
    • findAndbuildRatingResult

      public List<Rating> findAndbuildRatingResult(List<String> listIdExtendableResource, String strExtendableResourceType, String ratingType)
      load and build Rating Result
      Parameters:
      listIdExtendableResource - the list of id resource
      strExtendableResourceType - the resource type
      ratingType - the rating type
      Returns:
      rating result
    • findAndbuildRatingResult

      public Optional<Rating> findAndbuildRatingResult(String strIdExtendableResource, String strExtendableResourceType, String ratingType)
      load and build Rating Result
      Parameters:
      listIdExtendableResource - the of id resource
      strExtendableResourceType - the resource type
      ratingType - the rating type
      Returns:
      rating result
    • findAndbuildRatingResult

      public List<Rating> findAndbuildRatingResult(String strIdExtendableResource, String strExtendableResourceType, String strRatingType, String strUserGuid)
      load and build Rating Result
      Parameters:
      listIdExtendableResource - the list of id resource
      strExtendableResourceType - the resource type
      ratingType - the rating type
      strGuid - the guid
      Returns:
      rating result