Class RatingTypeBuilderImpl
java.lang.Object
fr.paris.lutece.plugins.extend.modules.rating.service.facade.RatingTypeBuilderImpl
- All Implemented Interfaces:
RatingType.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns a new RatingType built from the current state of this builder.cancelRating(Consumer<Rating> cancelRating) Do cancel ratingConsumer to rategetInfoExtender(BiFunction<String, String, List<Rating>> getInfoExtender) BiFunction to get the list of extender type information objectgetInfoExtenderByList(BiFunction<List<String>, String, List<Rating>> getInfoExtenderByList) BiFunction to get the list of extender type information objectgetInfoForExport(BinaryOperator<String> getInfoForExport) BinaryOperator to get the information value associate to the rating Type to export in the file exportgetInfoForRecap(BinaryOperator<String> getInfoForRecap) BinaryOperator to get the information value associate to the ExtenderType to write in the recapgetPageAddOn(QuinquaFunction<RatingExtenderConfig, String, String, String, jakarta.servlet.http.HttpServletRequest, String> getPageAddOn) GetPageAddOn
-
Method Details
-
doRating
Description copied from interface:RatingType.BuilderConsumer to rate- Specified by:
doRatingin interfaceRatingType.Builder- Parameters:
doRating- the Consumer interface- Returns:
- builder
-
cancelRating
Description copied from interface:RatingType.BuilderDo cancel rating- Specified by:
cancelRatingin interfaceRatingType.Builder- Parameters:
cancelRating- the Consumer interface- Returns:
- builder
-
getPageAddOn
public RatingTypeBuilderImpl getPageAddOn(QuinquaFunction<RatingExtenderConfig, String, String, String, jakarta.servlet.http.HttpServletRequest, String> getPageAddOn) Description copied from interface:RatingType.BuilderGetPageAddOn- Specified by:
getPageAddOnin interfaceRatingType.Builder- Parameters:
getPageAddOn- the QuinquaFunction interface- Returns:
- builder
-
getInfoForExport
Description copied from interface:RatingType.BuilderBinaryOperator to get the information value associate to the rating Type to export in the file export- Specified by:
getInfoForExportin interfaceRatingType.Builder- Parameters:
getInfoForExport- the BinaryOperator- Returns:
- builder
-
getInfoForRecap
Description copied from interface:RatingType.BuilderBinaryOperator to get the information value associate to the ExtenderType to write in the recap- Specified by:
getInfoForRecapin interfaceRatingType.Builder- Parameters:
getInfoForRecap- the BinaryOperator- Returns:
- builder
-
getInfoExtender
public RatingTypeBuilderImpl getInfoExtender(BiFunction<String, String, List<Rating>> getInfoExtender) Description copied from interface:RatingType.BuilderBiFunction to get the list of extender type information object- Specified by:
getInfoExtenderin interfaceRatingType.Builder- Parameters:
getInfoExtender- the BiFunction- Returns:
- builder
-
getInfoExtenderByList
public RatingTypeBuilderImpl getInfoExtenderByList(BiFunction<List<String>, String, List<Rating>> getInfoExtenderByList) Description copied from interface:RatingType.BuilderBiFunction to get the list of extender type information object- Specified by:
getInfoExtenderByListin interfaceRatingType.Builder- Parameters:
getInfoExtenderByList- the BiFunction- Returns:
- builder
-
build
Returns a new RatingType built from the current state of this builder.- Specified by:
buildin interfaceRatingType.Builder- Returns:
- a new RatingType
-