Class CommentApp

  • All Implemented Interfaces:
    fr.paris.lutece.portal.web.xpages.XPageApplication, java.io.Serializable

    public class CommentApp
    extends java.lang.Object
    implements fr.paris.lutece.portal.web.xpages.XPageApplication
    CommentApp
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CommentApp()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getAddCommentTokenKey​(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)
      Builds the CSRF token key for the add comment action, scoped to a couple ( idExtendableResource, extendableResourceType ).
      fr.paris.lutece.portal.web.xpages.XPage getPage​(javax.servlet.http.HttpServletRequest request, int nMode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      fr.paris.lutece.portal.web.xpages.XPage getViewCommentPage​(javax.servlet.http.HttpServletRequest request, java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)
      Gets the view comment page.
      static java.lang.String getViewCommentPageContent​(javax.servlet.http.HttpServletRequest request, java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String strPostBackUrl)
      Gets the view comment page.
      • Methods inherited from class java.lang.Object

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

      • CommentApp

        public CommentApp()
    • Method Detail

      • getPage

        public fr.paris.lutece.portal.web.xpages.XPage getPage​(javax.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 static java.lang.String getViewCommentPageContent​(javax.servlet.http.HttpServletRequest request,
                                                                 java.lang.String strIdExtendableResource,
                                                                 java.lang.String strExtendableResourceType,
                                                                 java.lang.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​(javax.servlet.http.HttpServletRequest request,
                                                                          java.lang.String strIdExtendableResource,
                                                                          java.lang.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 java.lang.String getAddCommentTokenKey​(java.lang.String strIdExtendableResource,
                                                             java.lang.String strExtendableResourceType)
        Builds the CSRF token key for the add comment action, scoped to a couple ( idExtendableResource, extendableResourceType ).
        Parameters:
        strIdExtendableResource - the extendable resource id
        strExtendableResourceType - the extendable resource type
        Returns:
        the token key