Interface IRatingValidator


  • public interface IRatingValidator
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean canCancelRating​(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, fr.paris.lutece.portal.service.security.LuteceUser user)
      check if the rating can be canceled
      boolean canRating​(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, fr.paris.lutece.portal.service.security.LuteceUser user)
      check if the rating can be done
    • Method Detail

      • canRating

        boolean canRating​(java.lang.String strIdExtendableResource,
                          java.lang.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​(java.lang.String strIdExtendableResource,
                                java.lang.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