Class DefaultRatingTypeImpl
- java.lang.Object
-
- fr.paris.lutece.plugins.extend.modules.rating.service.facade.DefaultRatingTypeImpl
-
- All Implemented Interfaces:
RatingType
public final class DefaultRatingTypeImpl extends 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 rateList<Rating>getInfoExtender(String strIdExtendableResource, String strExtendableResourceType)BiFunction to get the list of extender type information objectList<Rating>getInfoExtenderByList(List<String> listIdExtendableResource, String strExtendableResourceType)BiFunction to get the list of extender type information objectStringgetInfoForExport(String strIdExtendableResource, String strExtendableResourceType)BinaryOperator to get the information value associate to the rating Type to export in the file exportStringgetInfoForRecap(String strIdExtendableResource, String strExtendableResourceType)BinaryOperator to get the information value associate to the ExtenderType to write in the recapStringgetPageAddOn(RatingExtenderConfig ratingExtenderConfig, String strIdExtendableResource, String strExtendableResourceType, String strParameters, javax.servlet.http.HttpServletRequest request)GetPageAddOnStringgetTitle()Get title of rating typeClass<? extends Rating>getType()Get type of thisStringgetTypeName()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 String getPageAddOn(RatingExtenderConfig ratingExtenderConfig, String strIdExtendableResource, String strExtendableResourceType, String strParameters, javax.servlet.http.HttpServletRequest request)
Description copied from interface:RatingTypeGetPageAddOn- Specified by:
getPageAddOnin interfaceRatingType
-
getType
public Class<? extends Rating> getType()
Description copied from interface:RatingTypeGet type of this- Specified by:
getTypein interfaceRatingType- Returns:
- type rating
-
getTypeName
public String getTypeName()
Description copied from interface:RatingTypeGet the name type of the rating type- Specified by:
getTypeNamein interfaceRatingType- Returns:
- type name
-
getTitle
public String getTitle()
Description copied from interface:RatingTypeGet title of rating type- Specified by:
getTitlein interfaceRatingType- Returns:
- the title of rating
-
getInfoForExport
public String getInfoForExport(String strIdExtendableResource, 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 String getInfoForRecap(String strIdExtendableResource, 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 List<Rating> getInfoExtender(String strIdExtendableResource, String strExtendableResourceType)
Description copied from interface:RatingTypeBiFunction to get the list of extender type information object- Specified by:
getInfoExtenderin interfaceRatingType
-
getInfoExtenderByList
public List<Rating> getInfoExtenderByList(List<String> listIdExtendableResource, String strExtendableResourceType)
Description copied from interface:RatingTypeBiFunction to get the list of extender type information object- Specified by:
getInfoExtenderByListin interfaceRatingType
-
-