public class RatingFacadeFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
addRatingType(RatingType ratingType)
Appends the specified element to the end of this list (optional
operation).
|
static void |
cancelRating(Rating rating)
Do cancel rating
|
static void |
cancelRating(RatingExtenderConfig config,
Rating rating)
Do cancel rating
|
static void |
doRating(Rating rating)
Do Rating
|
static void |
doRating(RatingExtenderConfig config,
Rating rating)
Do Rating
|
static String |
getInfoForExport(String strIdExtendableResource,
String strExtendableResourceType)
Get the information value associate to the extenderType to export in the file export
|
static String |
getInfoForRecap(String strIdExtendableResource,
String strExtendableResourceType)
Get the information value associate to the extenderType to write in the recap
|
static List<Rating> |
getInfoRating(String strIdExtendableResource,
String strExtendableResourceType)
Get rating list information object
|
static List<Rating> |
getInfoRatingByList(List<String> listIdExtendableResource,
String strExtendableResourceType)
Get the rating list by id resources
|
static List<RatingType> |
getListRatingType()
Get all rating type
|
static String |
getPageAddOn(RatingExtenderConfig config,
String strIdExtendableResource,
String strExtendableResourceType,
String strParameters,
javax.servlet.http.HttpServletRequest request)
Get PageAddOn
|
static Rating |
getRatingInstance(String typeName)
Get an instance of rating
|
static Optional<RatingType> |
getRatingType(Class<? extends Rating> clazz)
Get the rating type
|
static Optional<RatingType> |
getRatingType(String strType)
Get rating type
|
public static void doRating(Rating rating) throws fr.paris.lutece.portal.service.security.UserNotSignedException, RatingException
rating - the rating objectfr.paris.lutece.portal.service.security.UserNotSignedException - the UserNotSignedExceptionRatingException - the RatingExceptionpublic static void doRating(RatingExtenderConfig config, Rating rating) throws fr.paris.lutece.portal.service.security.UserNotSignedException, RatingException
config - the configuration of the rating extenderrating - the rating objectfr.paris.lutece.portal.service.security.UserNotSignedException - the UserNotSignedExceptionRatingException - the RatingExceptionpublic static void cancelRating(Rating rating) throws RatingException
rating - the rating objectRatingException - the RatingExceptionpublic static void cancelRating(RatingExtenderConfig config, Rating rating) throws RatingException
config - the configuration of the rating extenderrating - the rating objectRatingException - the RatingExceptionpublic static String getPageAddOn(RatingExtenderConfig config, String strIdExtendableResource, String strExtendableResourceType, String strParameters, javax.servlet.http.HttpServletRequest request)
config - the configuration of the rating extenderstrIdExtendableResource - the idExtendableResourcestrExtendableResourceType - the extendableResourceTypestrParameters - the parametersrequest - the requestpublic static List<Rating> getInfoRatingByList(List<String> listIdExtendableResource, String strExtendableResourceType)
strIdExtendableResource - the idExtendableResourcestrExtendableResourceType - the extendableResourceTypepublic static List<Rating> getInfoRating(String strIdExtendableResource, String strExtendableResourceType)
strIdExtendableResource - the idExtendableResourcestrExtendableResourceType - the extendableResourceTypepublic static String getInfoForExport(String strIdExtendableResource, String strExtendableResourceType)
strIdExtendableResource - the idExtendableResourcestrExtendableResourceType - the extendableResourceTypepublic static String getInfoForRecap(String strIdExtendableResource, String strExtendableResourceType)
strIdExtendableResource - the idExtendableResourcestrExtendableResourceType - the extendableResourceTypepublic static Rating getRatingInstance(String typeName)
typeName - the type namepublic static boolean addRatingType(RatingType ratingType)
ratingType - the rating typepublic static Optional<RatingType> getRatingType(Class<? extends Rating> clazz)
clazz - the class of rating typepublic static Optional<RatingType> getRatingType(String strType)
strType - the typepublic static List<RatingType> getListRatingType()
Copyright © 2022 City of Paris. All rights reserved.