Class FollowValidationManagementService
java.lang.Object
fr.paris.lutece.plugins.extend.modules.follow.service.validator.FollowValidationManagementService
Service to manage follow validation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringvalidateFollow(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.security.LuteceUser user, String strIdResource, String strResourceTypeKey, int nVoteValue) Check if a user is allowed to validate a resource
-
Constructor Details
-
FollowValidationManagementService
public FollowValidationManagementService()
-
-
Method Details
-
validateFollow
public static String validateFollow(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.security.LuteceUser user, String strIdResource, String strResourceTypeKey, int nVoteValue) Check if a user is allowed to validate a resource- Parameters:
request- The requestuser- The user that wants to rate a resourcestrIdResource- the id of the resourcestrResourceTypeKey- The resource type keynVoteValue- The vote value- Returns:
- The URL to redirect the user if he is not allowed to rate the resource, or null if he is allowed
-