public final class RatingValidationManagementService extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
canCancelRating(String strIdExtendableResource,
String strExtendableResourceType,
fr.paris.lutece.portal.service.security.LuteceUser user)
check if the rating can be done
|
static boolean |
canRating(String strIdExtendableResource,
String strExtendableResourceType,
fr.paris.lutece.portal.service.security.LuteceUser user)
check if the rating can be done
|
static String |
validateRating(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.portal.service.security.LuteceUser user,
String strIdResource,
String strResourceTypeKey,
float fRatingValue)
Check if a user is allowed to validate a resource
|
public static String validateRating(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.security.LuteceUser user, String strIdResource, String strResourceTypeKey, float fRatingValue)
request
- The requestuser
- The user that wants to rate a resourcestrIdResource
- the id of the resourcestrResourceTypeKey
- The resource type keyfRatingValue
- The rating valuepublic static boolean canRating(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.security.LuteceUser user)
strIdResource
- the id of the resourcestrResourceTypeKey
- The resource type keyuser
- The user that wants to rate a resourcepublic static boolean canCancelRating(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.security.LuteceUser user)
strIdResource
- the id of the resourcestrResourceTypeKey
- The resource type keyuser
- The user that wants to rate a resourceCopyright © 2022 City of Paris. All rights reserved.