Class RatingTypeImpl

  • All Implemented Interfaces:
    RatingType

    public class RatingTypeImpl
    extends java.lang.Object
    implements RatingType
    • Nested Class Summary

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cancelRating​(Rating rating)
      Do cancel rating
      void doRating​(Rating rating)
      Consumer to rate
      java.util.List<Rating> getInfoExtender​(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)
      BiFunction to get the list of extender type information object
      java.util.List<Rating> getInfoExtenderByList​(java.util.List<java.lang.String> listIdExtendableResource, java.lang.String strExtendableResourceType)
      BiFunction to get the list of extender type information object
      java.lang.String getInfoForExport​(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)
      BinaryOperator to get the information value associate to the rating Type to export in the file export
      java.lang.String getInfoForRecap​(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)
      BinaryOperator to get the information value associate to the ExtenderType to write in the recap
      java.lang.String getPageAddOn​(RatingExtenderConfig ratingExtenderConfig, java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String strParameters, javax.servlet.http.HttpServletRequest request)
      GetPageAddOn
      java.lang.String getTitle()
      Get title of rating type
      java.lang.Class<? extends Rating> getType()
      Get type of this
      java.lang.String getTypeName()
      Get the name type of the rating type
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RatingTypeImpl

        public RatingTypeImpl​(RatingTypeBuilderImpl builder,
                              DefaultRatingTypeImpl defaultTypeRating)
        Constructor
        Parameters:
        builder - the builder
        defaultTypeRating - the default rating implementation
    • Method Detail

      • getPageAddOn

        public java.lang.String getPageAddOn​(RatingExtenderConfig ratingExtenderConfig,
                                             java.lang.String strIdExtendableResource,
                                             java.lang.String strExtendableResourceType,
                                             java.lang.String strParameters,
                                             javax.servlet.http.HttpServletRequest request)
        GetPageAddOn
        Specified by:
        getPageAddOn in interface RatingType
      • getType

        public java.lang.Class<? extends Rating> getType()
        Get type of this
        Specified by:
        getType in interface RatingType
        Returns:
        type rating
      • getTypeName

        public java.lang.String getTypeName()
        Get the name type of the rating type
        Specified by:
        getTypeName in interface RatingType
        Returns:
        type name
      • getTitle

        public java.lang.String getTitle()
        Get title of rating type
        Specified by:
        getTitle in interface RatingType
        Returns:
        the title of rating
      • getInfoForExport

        public java.lang.String getInfoForExport​(java.lang.String strIdExtendableResource,
                                                 java.lang.String strExtendableResourceType)
        BinaryOperator to get the information value associate to the rating Type to export in the file export
        Specified by:
        getInfoForExport in interface RatingType
      • getInfoForRecap

        public java.lang.String getInfoForRecap​(java.lang.String strIdExtendableResource,
                                                java.lang.String strExtendableResourceType)
        BinaryOperator to get the information value associate to the ExtenderType to write in the recap
        Specified by:
        getInfoForRecap in interface RatingType
      • getInfoExtender

        public java.util.List<Rating> getInfoExtender​(java.lang.String strIdExtendableResource,
                                                      java.lang.String strExtendableResourceType)
        BiFunction to get the list of extender type information object
        Specified by:
        getInfoExtender in interface RatingType
      • getInfoExtenderByList

        public java.util.List<Rating> getInfoExtenderByList​(java.util.List<java.lang.String> listIdExtendableResource,
                                                            java.lang.String strExtendableResourceType)
        BiFunction to get the list of extender type information object
        Specified by:
        getInfoExtenderByList in interface RatingType