Class RatingTypeBuilderImpl
- java.lang.Object
-
- fr.paris.lutece.plugins.extend.modules.rating.service.facade.RatingTypeBuilderImpl
-
- All Implemented Interfaces:
RatingType.Builder
public class RatingTypeBuilderImpl extends Object implements RatingType.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RatingTypebuild()Returns a new RatingType built from the current state of this builder.RatingTypeBuilderImplcancelRating(Consumer<Rating> cancelRating)Do cancel ratingRatingTypeBuilderImpldoRating(Consumer<Rating> doRating)Consumer to rateRatingTypeBuilderImplgetInfoExtender(BiFunction<String,String,List<Rating>> getInfoExtender)BiFunction to get the list of extender type information objectRatingTypeBuilderImplgetInfoExtenderByList(BiFunction<List<String>,String,List<Rating>> getInfoExtenderByList)BiFunction to get the list of extender type information objectRatingTypeBuilderImplgetInfoForExport(BinaryOperator<String> getInfoForExport)BinaryOperator to get the information value associate to the rating Type to export in the file exportRatingTypeBuilderImplgetInfoForRecap(BinaryOperator<String> getInfoForRecap)BinaryOperator to get the information value associate to the ExtenderType to write in the recapRatingTypeBuilderImplgetPageAddOn(QuinquaFunction<RatingExtenderConfig,String,String,String,javax.servlet.http.HttpServletRequest,String> getPageAddOn)GetPageAddOn
-
-
-
Method Detail
-
doRating
public RatingTypeBuilderImpl doRating(Consumer<Rating> doRating)
Description copied from interface:RatingType.BuilderConsumer to rate- Specified by:
doRatingin interfaceRatingType.Builder- Parameters:
doRating- the Consumer interface- Returns:
- builder
-
cancelRating
public RatingTypeBuilderImpl cancelRating(Consumer<Rating> 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,javax.servlet.http.HttpServletRequest,String> getPageAddOn)
Description copied from interface:RatingType.BuilderGetPageAddOn- Specified by:
getPageAddOnin interfaceRatingType.Builder- Parameters:
getPageAddOn- the QuinquaFunction interface- Returns:
- builder
-
getInfoForExport
public RatingTypeBuilderImpl getInfoForExport(BinaryOperator<String> 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
public RatingTypeBuilderImpl getInfoForRecap(BinaryOperator<String> 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
public RatingType build()
Returns a new RatingType built from the current state of this builder.- Specified by:
buildin interfaceRatingType.Builder- Returns:
- a new RatingType
-
-