Class RatingTypeImpl
- java.lang.Object
-
- fr.paris.lutece.plugins.extend.modules.rating.service.facade.RatingTypeImpl
-
- All Implemented Interfaces:
RatingType
public class RatingTypeImpl extends java.lang.Object implements RatingType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface fr.paris.lutece.plugins.extend.modules.rating.service.facade.RatingType
RatingType.Builder
-
-
Constructor Summary
Constructors Constructor Description RatingTypeImpl(RatingTypeBuilderImpl builder, DefaultRatingTypeImpl defaultTypeRating)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelRating(Rating rating)Do cancel ratingvoiddoRating(Rating rating)Consumer to ratejava.util.List<Rating>getInfoExtender(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)BiFunction to get the list of extender type information objectjava.util.List<Rating>getInfoExtenderByList(java.util.List<java.lang.String> listIdExtendableResource, java.lang.String strExtendableResourceType)BiFunction to get the list of extender type information objectjava.lang.StringgetInfoForExport(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)BinaryOperator to get the information value associate to the rating Type to export in the file exportjava.lang.StringgetInfoForRecap(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)BinaryOperator to get the information value associate to the ExtenderType to write in the recapjava.lang.StringgetPageAddOn(RatingExtenderConfig ratingExtenderConfig, java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String strParameters, javax.servlet.http.HttpServletRequest request)GetPageAddOnjava.lang.StringgetTitle()Get title of rating typejava.lang.Class<? extends Rating>getType()Get type of thisjava.lang.StringgetTypeName()Get the name type of the rating type
-
-
-
Constructor Detail
-
RatingTypeImpl
public RatingTypeImpl(RatingTypeBuilderImpl builder, DefaultRatingTypeImpl defaultTypeRating)
Constructor- Parameters:
builder- the builderdefaultTypeRating- the default rating implementation
-
-
Method Detail
-
doRating
public void doRating(Rating rating)
Consumer to rate- Specified by:
doRatingin interfaceRatingType
-
cancelRating
public void cancelRating(Rating rating)
Do cancel rating- Specified by:
cancelRatingin interfaceRatingType
-
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:
getPageAddOnin interfaceRatingType
-
getType
public java.lang.Class<? extends Rating> getType()
Get type of this- Specified by:
getTypein interfaceRatingType- Returns:
- type rating
-
getTypeName
public java.lang.String getTypeName()
Get the name type of the rating type- Specified by:
getTypeNamein interfaceRatingType- Returns:
- type name
-
getTitle
public java.lang.String getTitle()
Get title of rating type- Specified by:
getTitlein interfaceRatingType- 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:
getInfoForExportin interfaceRatingType
-
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:
getInfoForRecapin interfaceRatingType
-
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:
getInfoExtenderin interfaceRatingType
-
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:
getInfoExtenderByListin interfaceRatingType
-
-