Interface IRatingValidator


  • public interface IRatingValidator
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      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 Detail

      • 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