Interface RatingType
-
- All Known Implementing Classes:
DefaultRatingTypeImpl,RatingTypeImpl
public interface RatingTypeRating 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 Modifier and Type Interface Description static interfaceRatingType.BuilderBuilder Interface
-
Method Summary
All Methods Static Methods Instance Methods Abstract 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 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 Detail
-
newRatingType
static RatingType newRatingType(Class<? extends Rating> type, String strTitle)
Build a new rating type- Parameters:
type- the type of ratingstrTitle- the title of rating type- Returns:
- an instance of rating type
-
newBuilder
static RatingType.Builder newBuilder(Class<? extends Rating> type, String strTitle)
Get builder to building an rating type- Parameters:
type- the type of ratingstrTitle- the title of the rating type- Returns:
- builder
-
doRating
void doRating(Rating rating)
Consumer to rate- Parameters:
doRating- the Consumer interface
-
cancelRating
void cancelRating(Rating rating)
Do cancel rating- Parameters:
doCancelRating- the Consumer interface
-
getPageAddOn
String getPageAddOn(RatingExtenderConfig ratingExtenderConfig, String strIdExtendableResource, String strExtendableResourceType, String strParameters, javax.servlet.http.HttpServletRequest request)
GetPageAddOn- Parameters:
getPageAddOn- the QuinquaFunction interface
-
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
String getInfoForExport(String strIdExtendableResource, String strExtendableResourceType)
BinaryOperator to get the information value associate to the rating Type to export in the file export- Parameters:
getInfoForExport- the BinaryOperator
-
getInfoForRecap
String getInfoForRecap(String strIdExtendableResource, String strExtendableResourceType)
BinaryOperator to get the information value associate to the ExtenderType to write in the recap- Parameters:
getInfoForRecap- the BinaryOperator
-
getInfoExtender
List<Rating> getInfoExtender(String strIdExtendableResource, String strExtendableResourceType)
BiFunction to get the list of extender type information object- Parameters:
getInfoExtender- the BiFunction
-
-