Class RatingTypeImpl
java.lang.Object
fr.paris.lutece.plugins.extend.modules.rating.service.facade.RatingTypeImpl
- All Implemented Interfaces:
RatingType
-
Nested Class Summary
Nested classes/interfaces inherited from interface fr.paris.lutece.plugins.extend.modules.rating.service.facade.RatingType
RatingType.Builder -
Constructor Summary
ConstructorsConstructorDescriptionRatingTypeImpl(RatingTypeBuilderImpl builder, DefaultRatingTypeImpl defaultTypeRating) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelRating(Rating rating) Do cancel ratingvoidConsumer to rategetInfoExtender(String strIdExtendableResource, String strExtendableResourceType) BiFunction to get the list of extender type information objectgetInfoExtenderByList(List<String> listIdExtendableResource, String strExtendableResourceType) BiFunction to get the list of extender type information objectgetInfoForExport(String strIdExtendableResource, String strExtendableResourceType) BinaryOperator to get the information value associate to the rating Type to export in the file exportgetInfoForRecap(String strIdExtendableResource, String strExtendableResourceType) BinaryOperator to get the information value associate to the ExtenderType to write in the recapgetPageAddOn(RatingExtenderConfig ratingExtenderConfig, String strIdExtendableResource, String strExtendableResourceType, String strParameters, jakarta.servlet.http.HttpServletRequest request) GetPageAddOngetTitle()Get title of rating typegetType()Get type of thisGet the name type of the rating type
-
Constructor Details
-
RatingTypeImpl
Constructor- Parameters:
builder- the builderdefaultTypeRating- the default rating implementation
-
-
Method Details
-
doRating
Consumer to rate- Specified by:
doRatingin interfaceRatingType
-
cancelRating
Do cancel rating- Specified by:
cancelRatingin interfaceRatingType
-
getPageAddOn
public String getPageAddOn(RatingExtenderConfig ratingExtenderConfig, String strIdExtendableResource, String strExtendableResourceType, String strParameters, jakarta.servlet.http.HttpServletRequest request) GetPageAddOn- Specified by:
getPageAddOnin interfaceRatingType
-
getType
Get type of this- Specified by:
getTypein interfaceRatingType- Returns:
- type rating
-
getTypeName
Get the name type of the rating type- Specified by:
getTypeNamein interfaceRatingType- Returns:
- type name
-
getTitle
Get title of rating type- Specified by:
getTitlein interfaceRatingType- Returns:
- the title of rating
-
getInfoForExport
BinaryOperator to get the information value associate to the rating Type to export in the file export- Specified by:
getInfoForExportin interfaceRatingType
-
getInfoForRecap
BinaryOperator to get the information value associate to the ExtenderType to write in the recap- Specified by:
getInfoForRecapin interfaceRatingType
-
getInfoExtender
public List<Rating> getInfoExtender(String strIdExtendableResource, String strExtendableResourceType) BiFunction to get the list of extender type information object- Specified by:
getInfoExtenderin interfaceRatingType
-
getInfoExtenderByList
public List<Rating> getInfoExtenderByList(List<String> listIdExtendableResource, String strExtendableResourceType) BiFunction to get the list of extender type information object- Specified by:
getInfoExtenderByListin interfaceRatingType
-