public interface IRatingValidator
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canCancelRating(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.security.LuteceUser user)
    check if the rating can be canceled
    boolean
    canRating(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.security.LuteceUser user)
    check if the rating can be done
  • Method Details

    • canRating

      boolean canRating(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.security.LuteceUser user)
      check if the rating can be done
      Parameters:
      strIdResource - the id of the resource
      strResourceTypeKey - The resource type key
      user - The user that wants to rate a resource (user = null if the authentication is note enabled)
      Returns:
      true if the rating can be done else return false
    • canCancelRating

      boolean canCancelRating(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.security.LuteceUser user)
      check if the rating can be canceled
      Parameters:
      strIdResource - the id of the resource
      strResourceTypeKey - The resource type key
      user - The user that wants to rate a resource
      Returns:
      true if the rating can be done else return false