Interface IRatingValidationService

  • All Known Implementing Classes:
    RatingValidationService

    public interface IRatingValidationService
    Interface of rating validation services
    • Method Summary

      All Methods Instance Methods Abstract 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 dVoteValue)
      Check if a user is allowed to validate a resource
    • Method Detail

      • validateRating

        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 dVoteValue)
        Check if a user is allowed to validate a resource
        Parameters:
        request - The request
        user - The user that wants to rate a resource
        strIdResource - the id of the resource
        strResourceTypeKey - The resource type key
        dVoteValue - 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