Class RatingJspBean
- java.lang.Object
-
- fr.paris.lutece.plugins.extend.modules.rating.web.RatingJspBean
-
public class RatingJspBean extends java.lang.ObjectRatingJspBean
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringURL_JSP_DO_VOTE
-
Constructor Summary
Constructors Constructor Description RatingJspBean()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoCancelRating(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Cancel the rating value This method is called in FO by the following JSP : jsp/site/plugins/extend/modules/rating/DoCancelVote.JspvoiddoRating(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Update the rating value an count.static java.lang.StringgetSessionKeyUrlRedirect(java.lang.String strIdResource, java.lang.String strResourceType)Get the session key of the URL to redirect the user to after he has voted for the resource
-
-
-
Field Detail
-
URL_JSP_DO_VOTE
public static final java.lang.String URL_JSP_DO_VOTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
doRating
public void doRating(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, fr.paris.lutece.portal.service.message.SiteMessageException, fr.paris.lutece.portal.service.security.UserNotSignedExceptionUpdate the rating value an count. This method is called in FO by the following JSP : jsp/site/plugins/extend/modules/rating/DoVote.Jsp- Parameters:
request- The HTTP requestresponse- The HTTP response- Throws:
java.io.IOException- the io exceptionfr.paris.lutece.portal.service.message.SiteMessageException- the site message exceptionfr.paris.lutece.portal.service.security.UserNotSignedException- If the user has not signed in
-
doCancelRating
public void doCancelRating(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, fr.paris.lutece.portal.service.message.SiteMessageException, fr.paris.lutece.portal.service.security.UserNotSignedExceptionCancel the rating value This method is called in FO by the following JSP : jsp/site/plugins/extend/modules/rating/DoCancelVote.Jsp- Parameters:
request- The HTTP requestresponse- The HTTP response- Throws:
java.io.IOException- the io exceptionfr.paris.lutece.portal.service.message.SiteMessageException- the site message exceptionfr.paris.lutece.portal.service.security.UserNotSignedException
-
getSessionKeyUrlRedirect
public static java.lang.String getSessionKeyUrlRedirect(java.lang.String strIdResource, java.lang.String strResourceType)Get the session key of the URL to redirect the user to after he has voted for the resource- Parameters:
strIdResource- The id of the resourcestrResourceType- The type of the resource- Returns:
- The session key
-
-