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 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 typestatic RatingType.BuildernewBuilder(java.lang.Class<? extends Rating> type, java.lang.String strTitle)Get builder to building an rating typestatic RatingTypenewRatingType(java.lang.Class<? extends Rating> type, java.lang.String strTitle)Build a new rating type
-
-
-
Method Detail
-
newRatingType
static RatingType newRatingType(java.lang.Class<? extends Rating> type, java.lang.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(java.lang.Class<? extends Rating> type, java.lang.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
java.lang.String getPageAddOn(RatingExtenderConfig ratingExtenderConfig, java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String strParameters, javax.servlet.http.HttpServletRequest request)
GetPageAddOn- Parameters:
getPageAddOn- the QuinquaFunction interface
-
getType
java.lang.Class<? extends Rating> getType()
Get type of this- Returns:
- type rating
-
getTypeName
java.lang.String getTypeName()
Get the name type of the rating type- Returns:
- type name
-
getTitle
java.lang.String getTitle()
Get title of rating type- Returns:
- the title of rating
-
getInfoForExport
java.lang.String getInfoForExport(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)BinaryOperator to get the information value associate to the rating Type to export in the file export- Parameters:
getInfoForExport- the BinaryOperator
-
getInfoForRecap
java.lang.String getInfoForRecap(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)BinaryOperator to get the information value associate to the ExtenderType to write in the recap- Parameters:
getInfoForRecap- the BinaryOperator
-
getInfoExtender
java.util.List<Rating> getInfoExtender(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)
BiFunction to get the list of extender type information object- Parameters:
getInfoExtender- the BiFunction
-
getInfoExtenderByList
java.util.List<Rating> getInfoExtenderByList(java.util.List<java.lang.String> listIdExtendableResource, java.lang.String strExtendableResourceType)
BiFunction to get the list of extender type information object- Parameters:
getInfoExtenderByList- the BiFunction
-
-