public class RatingJspBean extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
URL_JSP_DO_VOTE |
| Constructor and Description |
|---|
RatingJspBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
doCancelVote(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Cancel the vote value
This method is called in FO by the following JSP :
jsp/site/plugins/extend/modules/rating/DoCancelVote.Jsp
|
void |
doVote(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Update the vote value an count.
|
static String |
getSessionKeyUrlRedirect(String strIdResource,
String strResourceType)
Get the session key of the URL to redirect the user to after he has voted
for the resource
|
public static final String URL_JSP_DO_VOTE
public void doVote(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
fr.paris.lutece.portal.service.message.SiteMessageException,
fr.paris.lutece.portal.service.security.UserNotSignedException
request - The HTTP requestresponse - The HTTP responseIOException - 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 inpublic void doCancelVote(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
fr.paris.lutece.portal.service.message.SiteMessageException
request - The HTTP requestresponse - The HTTP responseIOException - the io exceptionfr.paris.lutece.portal.service.message.SiteMessageException - the site message exceptionpublic static String getSessionKeyUrlRedirect(String strIdResource, String strResourceType)
strIdResource - The id of the resourcestrResourceType - The type of the resourceCopyright © 2022 City of Paris. All rights reserved.