java.lang.Object
fr.paris.lutece.plugins.extend.modules.comment.web.CommentApp
All Implemented Interfaces:
fr.paris.lutece.portal.web.xpages.XPageApplication, Serializable

@RequestScoped @Named("extend-comment.xpage.extend-comment") public class CommentApp extends Object implements fr.paris.lutece.portal.web.xpages.XPageApplication
CommentApp
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    getAddCommentTokenKey(String strIdExtendableResource, String strExtendableResourceType)
    Builds the CSRF token key of the add comment action, scoped to an extendable resource.
    fr.paris.lutece.portal.web.xpages.XPage
    getPage(jakarta.servlet.http.HttpServletRequest request, int nMode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    fr.paris.lutece.portal.web.xpages.XPage
    getViewCommentPage(jakarta.servlet.http.HttpServletRequest request, String strIdExtendableResource, String strExtendableResourceType)
    Gets the view comment page.
    getViewCommentPageContent(jakarta.servlet.http.HttpServletRequest request, String strIdExtendableResource, String strExtendableResourceType, String strPostBackUrl)
    Gets the view comment page.

    Methods inherited from class java.lang.Object

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

    • CommentApp

      public CommentApp()
  • Method Details

    • getPage

      public fr.paris.lutece.portal.web.xpages.XPage getPage(jakarta.servlet.http.HttpServletRequest request, int nMode, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.portal.service.security.UserNotSignedException, fr.paris.lutece.portal.service.message.SiteMessageException
      Specified by:
      getPage in interface fr.paris.lutece.portal.web.xpages.XPageApplication
      Throws:
      fr.paris.lutece.portal.service.security.UserNotSignedException
      fr.paris.lutece.portal.service.message.SiteMessageException
    • getViewCommentPageContent

      public String getViewCommentPageContent(jakarta.servlet.http.HttpServletRequest request, String strIdExtendableResource, String strExtendableResourceType, String strPostBackUrl)
      Gets the view comment page.
      Parameters:
      request - the request
      strIdExtendableResource - the str id extendable resource
      strExtendableResourceType - the str extendable resource type
      strPostBackUrl - The URL to use for post backs.
      Returns:
      the view comment page
    • getViewCommentPage

      public fr.paris.lutece.portal.web.xpages.XPage getViewCommentPage(jakarta.servlet.http.HttpServletRequest request, String strIdExtendableResource, String strExtendableResourceType)
      Gets the view comment page.
      Parameters:
      request - the request
      strIdExtendableResource - the str id extendable resource
      strExtendableResourceType - the str extendable resource type
      Returns:
      the view comment page
    • getAddCommentTokenKey

      public static String getAddCommentTokenKey(String strIdExtendableResource, String strExtendableResourceType)
      Builds the CSRF token key of the add comment action, scoped to an extendable resource.
      Parameters:
      strIdExtendableResource - the extendable resource id
      strExtendableResourceType - the extendable resource type
      Returns:
      the token key