All Known Implementing Classes:
DefaultRatingTypeImpl, RatingTypeImpl

public interface RatingType
Rating type This interface is exposed for the creation of the type of vote Example of building an rating type RatingType.newBuilder( SimpleRating.class, I18nService.getLocalizedString(SimpleRating.RATING_TITLE, LocaleService.getDefault( ))) .build();
  • Method Details

    • newRatingType

      static RatingType newRatingType(Class<? extends Rating> type, String strTitle)
      Build a new rating type
      Parameters:
      type - the type of rating
      strTitle - the title of rating type
      Returns:
      an instance of rating type
    • newBuilder

      static RatingType.Builder newBuilder(Class<? extends Rating> type, String strTitle)
      Get builder to building an rating type
      Parameters:
      type - the type of rating
      strTitle - the title of the rating type
      Returns:
      builder
    • doRating

      void doRating(Rating rating)
      Consumer to rate
      Parameters:
      doRating - the Consumer interface
    • cancelRating

      void cancelRating(Rating rating)
      Do cancel rating
      Parameters:
      doCancelRating - the Consumer interface
    • getPageAddOn

      String getPageAddOn(RatingExtenderConfig ratingExtenderConfig, String strIdExtendableResource, String strExtendableResourceType, String strParameters, jakarta.servlet.http.HttpServletRequest request)
      GetPageAddOn
      Parameters:
      getPageAddOn - the QuinquaFunction interface
    • getType

      Class<? extends Rating> getType()
      Get type of this
      Returns:
      type rating
    • getTypeName

      String getTypeName()
      Get the name type of the rating type
      Returns:
      type name
    • getTitle

      String getTitle()
      Get title of rating type
      Returns:
      the title of rating
    • getInfoForExport

      String getInfoForExport(String strIdExtendableResource, String strExtendableResourceType)
      BinaryOperator to get the information value associate to the rating Type to export in the file export
      Parameters:
      getInfoForExport - the BinaryOperator
    • getInfoForRecap

      String getInfoForRecap(String strIdExtendableResource, String strExtendableResourceType)
      BinaryOperator to get the information value associate to the ExtenderType to write in the recap
      Parameters:
      getInfoForRecap - the BinaryOperator
    • getInfoExtender

      List<Rating> getInfoExtender(String strIdExtendableResource, String strExtendableResourceType)
      BiFunction to get the list of extender type information object
      Parameters:
      getInfoExtender - the BiFunction
    • getInfoExtenderByList

      List<Rating> getInfoExtenderByList(List<String> listIdExtendableResource, String strExtendableResourceType)
      BiFunction to get the list of extender type information object
      Parameters:
      getInfoExtenderByList - the BiFunction