Class RatingValidationService

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String validateRating​(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.security.LuteceUser user, java.lang.String strIdResource, java.lang.String strResourceTypeKey, float fRatingValue)
      Check if a user is allowed to validate a resource
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RatingValidationService

        public RatingValidationService()
    • Method Detail

      • validateRating

        public java.lang.String validateRating​(javax.servlet.http.HttpServletRequest request,
                                               fr.paris.lutece.portal.service.security.LuteceUser user,
                                               java.lang.String strIdResource,
                                               java.lang.String strResourceTypeKey,
                                               float fRatingValue)
        Description copied from interface: IRatingValidationService
        Check if a user is allowed to validate a resource
        Specified by:
        validateRating in interface IRatingValidationService
        Parameters:
        request - The request
        user - The user that wants to rate a resource
        strIdResource - the id of the resource
        strResourceTypeKey - The resource type key
        fRatingValue - 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