Class RatingFacadeFactory
java.lang.Object
fr.paris.lutece.plugins.extend.modules.rating.service.facade.RatingFacadeFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddRatingType(RatingType ratingType) Appends the specified element to the end of this list (optional operation).static voidcancelRating(RatingExtenderConfig config, Rating rating) Do cancel ratingstatic voidcancelRating(Rating rating) Do cancel ratingstatic voiddoRating(RatingExtenderConfig config, Rating rating) Do Ratingstatic voidDo Ratingstatic StringgetInfoForExport(String strIdExtendableResource, String strExtendableResourceType) Get the information value associate to the extenderType to export in the file exportstatic StringgetInfoForRecap(String strIdExtendableResource, String strExtendableResourceType) Get the information value associate to the extenderType to write in the recapgetInfoRating(String strIdExtendableResource, String strExtendableResourceType) Get rating list information objectgetInfoRatingByList(List<String> listIdExtendableResource, String strExtendableResourceType) Get the rating list by id resourcesstatic List<RatingType>Get all rating typestatic StringgetPageAddOn(RatingExtenderConfig config, String strIdExtendableResource, String strExtendableResourceType, String strParameters, javax.servlet.http.HttpServletRequest request) Get PageAddOnstatic RatinggetRatingInstance(String typeName) Get an instance of ratingstatic Optional<RatingType>getRatingType(Class<? extends Rating> clazz) Get the rating typestatic Optional<RatingType>getRatingType(String strType) Get rating type
-
Method Details
-
doRating
public static void doRating(Rating rating) throws fr.paris.lutece.portal.service.security.UserNotSignedException, RatingException Do Rating- Parameters:
rating- the rating object- Throws:
fr.paris.lutece.portal.service.security.UserNotSignedException- the UserNotSignedExceptionRatingException- the RatingException
-
doRating
public static void doRating(RatingExtenderConfig config, Rating rating) throws fr.paris.lutece.portal.service.security.UserNotSignedException, RatingException Do Rating- Parameters:
config- the configuration of the rating extenderrating- the rating object- Throws:
fr.paris.lutece.portal.service.security.UserNotSignedException- the UserNotSignedExceptionRatingException- the RatingException
-
cancelRating
Do cancel rating- Parameters:
rating- the rating object- Throws:
RatingException- the RatingException
-
cancelRating
Do cancel rating- Parameters:
config- the configuration of the rating extenderrating- the rating object- Throws:
RatingException- the RatingException
-
getPageAddOn
public static String getPageAddOn(RatingExtenderConfig config, String strIdExtendableResource, String strExtendableResourceType, String strParameters, javax.servlet.http.HttpServletRequest request) Get PageAddOn- Parameters:
config- the configuration of the rating extenderstrIdExtendableResource- the idExtendableResourcestrExtendableResourceType- the extendableResourceTypestrParameters- the parametersrequest- the request- Returns:
- Page builded
-
getInfoRatingByList
public static List<Rating> getInfoRatingByList(List<String> listIdExtendableResource, String strExtendableResourceType) Get the rating list by id resources- Parameters:
strIdExtendableResource- the idExtendableResourcestrExtendableResourceType- the extendableResourceType- Returns:
- the list of rating
-
getInfoRating
public static List<Rating> getInfoRating(String strIdExtendableResource, String strExtendableResourceType) Get rating list information object- Parameters:
strIdExtendableResource- the idExtendableResourcestrExtendableResourceType- the extendableResourceType- Returns:
- the list of rating
-
getInfoForExport
public static String getInfoForExport(String strIdExtendableResource, String strExtendableResourceType) Get the information value associate to the extenderType to export in the file export- Parameters:
strIdExtendableResource- the idExtendableResourcestrExtendableResourceType- the extendableResourceType- Returns:
- the information value associate to the extender rating to export in the file export
-
getInfoForRecap
public static String getInfoForRecap(String strIdExtendableResource, String strExtendableResourceType) Get the information value associate to the extenderType to write in the recap- Parameters:
strIdExtendableResource- the idExtendableResourcestrExtendableResourceType- the extendableResourceType- Returns:
- the information value associate to the extenderType to write in the recap
-
getRatingInstance
Get an instance of rating- Parameters:
typeName- the type name- Returns:
- rating instance
-
addRatingType
Appends the specified element to the end of this list (optional operation).- Parameters:
ratingType- the rating type- Returns:
- true if the element is added
-
getRatingType
Get the rating type- Parameters:
clazz- the class of rating type- Returns:
-
getRatingType
Get rating type- Parameters:
strType- the type- Returns:
- RatingType
-
getListRatingType
Get all rating type- Returns:
- the list of all rating type
-