Interface IRatingValidator
public interface IRatingValidator
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanCancelRating(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.security.LuteceUser user) check if the rating can be canceledbooleancanRating(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 resourcestrResourceTypeKey- The resource type keyuser- 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 resourcestrResourceTypeKey- The resource type keyuser- The user that wants to rate a resource- Returns:
- true if the rating can be done else return false
-