Class RatingTypeImpl
- java.lang.Object
-
- fr.paris.lutece.plugins.extend.modules.rating.service.facade.RatingTypeImpl
-
- All Implemented Interfaces:
RatingType
public class RatingTypeImpl 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
-
-
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 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
-
-
-
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 String getPageAddOn(RatingExtenderConfig ratingExtenderConfig, String strIdExtendableResource, String strExtendableResourceType, String strParameters, javax.servlet.http.HttpServletRequest request)
GetPageAddOn- Specified by:
getPageAddOnin interfaceRatingType
-
getType
public Class<? extends Rating> getType()
Get type of this- Specified by:
getTypein interfaceRatingType- Returns:
- type rating
-
getTypeName
public String getTypeName()
Get the name type of the rating type- Specified by:
getTypeNamein interfaceRatingType- Returns:
- type name
-
getTitle
public String getTitle()
Get title of rating type- Specified by:
getTitlein interfaceRatingType- Returns:
- the title of rating
-
getInfoForExport
public String getInfoForExport(String strIdExtendableResource, 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 String getInfoForRecap(String strIdExtendableResource, String strExtendableResourceType)
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
-
-