Interface RatingType
- All Known Implementing Classes:
DefaultRatingTypeImpl,RatingTypeImpl
public interface RatingType
Rating type
This interface is exposed for the creation of the type of vote
Example of building an rating type
RatingType.newBuilder( SimpleRating.class,
I18nService.getLocalizedString(SimpleRating.RATING_TITLE, LocaleService.getDefault( )))
.build();
-
Nested Class Summary
Nested Classes -
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 typestatic RatingType.BuildernewBuilder(Class<? extends Rating> type, String strTitle) Get builder to building an rating typestatic RatingTypenewRatingType(Class<? extends Rating> type, String strTitle) Build a new rating type
-
Method Details
-
newRatingType
Build a new rating type- Parameters:
type- the type of ratingstrTitle- the title of rating type- Returns:
- an instance of rating type
-
newBuilder
Get builder to building an rating type- Parameters:
type- the type of ratingstrTitle- the title of the rating type- Returns:
- builder
-
doRating
Consumer to rate- Parameters:
doRating- the Consumer interface
-
cancelRating
Do cancel rating- Parameters:
doCancelRating- the Consumer interface
-
getPageAddOn
String getPageAddOn(RatingExtenderConfig ratingExtenderConfig, String strIdExtendableResource, String strExtendableResourceType, String strParameters, jakarta.servlet.http.HttpServletRequest request) GetPageAddOn- Parameters:
getPageAddOn- the QuinquaFunction interface
-
getType
Get type of this- Returns:
- type rating
-
getTypeName
String getTypeName()Get the name type of the rating type- Returns:
- type name
-
getTitle
String getTitle()Get title of rating type- Returns:
- the title of rating
-
getInfoForExport
BinaryOperator to get the information value associate to the rating Type to export in the file export- Parameters:
getInfoForExport- the BinaryOperator
-
getInfoForRecap
BinaryOperator to get the information value associate to the ExtenderType to write in the recap- Parameters:
getInfoForRecap- the BinaryOperator
-
getInfoExtender
BiFunction to get the list of extender type information object- Parameters:
getInfoExtender- the BiFunction
-
getInfoExtenderByList
List<Rating> getInfoExtenderByList(List<String> listIdExtendableResource, String strExtendableResourceType) BiFunction to get the list of extender type information object- Parameters:
getInfoExtenderByList- the BiFunction
-