java.lang.Object
fr.paris.lutece.plugins.extend.modules.rating.web.RatingJspBean

@RequestScoped @Named public class RatingJspBean extends Object
RatingJspBean
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doCancelRating(jakarta.servlet.http.HttpServletRequest request, jakarta.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.Jsp
    void
    doRating(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    Update the rating 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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • RatingJspBean

      public RatingJspBean()
  • Method Details

    • doRating

      public void doRating(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, fr.paris.lutece.portal.service.message.SiteMessageException, fr.paris.lutece.portal.service.security.UserNotSignedException
      Update 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 request
      response - The HTTP response
      Throws:
      IOException - the io exception
      fr.paris.lutece.portal.service.message.SiteMessageException - the site message exception
      fr.paris.lutece.portal.service.security.UserNotSignedException - If the user has not signed in
    • doCancelRating

      public void doCancelRating(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, fr.paris.lutece.portal.service.message.SiteMessageException, fr.paris.lutece.portal.service.security.UserNotSignedException
      Cancel 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 request
      response - The HTTP response
      Throws:
      IOException - the io exception
      fr.paris.lutece.portal.service.message.SiteMessageException - the site message exception
      fr.paris.lutece.portal.service.security.UserNotSignedException
    • getSessionKeyUrlRedirect

      public 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
      Parameters:
      strIdResource - The id of the resource
      strResourceType - The type of the resource
      Returns:
      The session key