Class RatingValidationService
- java.lang.Object
-
- fr.paris.lutece.plugins.extend.modules.rating.service.validator.RatingValidationService
-
- All Implemented Interfaces:
IRatingValidationService
public class RatingValidationService extends Object implements IRatingValidationService
-
-
Constructor Summary
Constructors Constructor Description RatingValidationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringvalidateRating(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.security.LuteceUser user, String strIdResource, String strResourceTypeKey, float fRatingValue)Check if a user is allowed to validate a resource
-
-
-
Method Detail
-
validateRating
public String validateRating(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.security.LuteceUser user, String strIdResource, String strResourceTypeKey, float fRatingValue)
Description copied from interface:IRatingValidationServiceCheck if a user is allowed to validate a resource- Specified by:
validateRatingin interfaceIRatingValidationService- Parameters:
request- The requestuser- The user that wants to rate a resourcestrIdResource- the id of the resourcestrResourceTypeKey- The resource type keyfRatingValue- The value of the vote- Returns:
- The URL to redirect the user if he is not allowed to rate the resource, or null if he is allowed
-
-