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