Class DefaultRatingTypeImpl
- java.lang.Object
-
- fr.paris.lutece.plugins.extend.modules.rating.service.facade.DefaultRatingTypeImpl
-
- All Implemented Interfaces:
RatingType
public final class DefaultRatingTypeImpl 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
-
-
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
-
-
-
Method Detail
-
doRating
public void doRating(Rating rating)
Description copied from interface:RatingTypeConsumer to rate- Specified by:
doRatingin interfaceRatingType
-
cancelRating
public void cancelRating(Rating rating)
Description copied from interface:RatingTypeDo 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)
Description copied from interface:RatingTypeGetPageAddOn- Specified by:
getPageAddOnin interfaceRatingType
-
getType
public java.lang.Class<? extends Rating> getType()
Description copied from interface:RatingTypeGet type of this- Specified by:
getTypein interfaceRatingType- Returns:
- type rating
-
getTypeName
public java.lang.String getTypeName()
Description copied from interface:RatingTypeGet the name type of the rating type- Specified by:
getTypeNamein interfaceRatingType- Returns:
- type name
-
getTitle
public java.lang.String getTitle()
Description copied from interface:RatingTypeGet 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)Description copied from interface:RatingTypeBinaryOperator 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)Description copied from interface:RatingTypeBinaryOperator 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)
Description copied from interface:RatingTypeBiFunction 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)
Description copied from interface:RatingTypeBiFunction to get the list of extender type information object- Specified by:
getInfoExtenderByListin interfaceRatingType
-
-