Class CommentApp
java.lang.Object
fr.paris.lutece.plugins.extend.modules.comment.web.CommentApp
- All Implemented Interfaces:
fr.paris.lutece.portal.web.xpages.XPageApplication,Serializable
public class CommentApp
extends Object
implements fr.paris.lutece.portal.web.xpages.XPageApplication
CommentApp
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAddCommentTokenKey(String strIdExtendableResource, String strExtendableResourceType) Builds the CSRF token key for the add comment action, scoped to a couple ( idExtendableResource, extendableResourceType ).fr.paris.lutece.portal.web.xpages.XPagegetPage(javax.servlet.http.HttpServletRequest request, int nMode, fr.paris.lutece.portal.service.plugin.Plugin plugin) fr.paris.lutece.portal.web.xpages.XPagegetViewCommentPage(javax.servlet.http.HttpServletRequest request, String strIdExtendableResource, String strExtendableResourceType) Gets the view comment page.static StringgetViewCommentPageContent(javax.servlet.http.HttpServletRequest request, String strIdExtendableResource, String strExtendableResourceType, String strPostBackUrl) Gets the view comment page.
-
Constructor Details
-
CommentApp
public CommentApp()
-
-
Method Details
-
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:
getPagein interfacefr.paris.lutece.portal.web.xpages.XPageApplication- Throws:
fr.paris.lutece.portal.service.security.UserNotSignedExceptionfr.paris.lutece.portal.service.message.SiteMessageException
-
getViewCommentPageContent
public static String getViewCommentPageContent(javax.servlet.http.HttpServletRequest request, String strIdExtendableResource, String strExtendableResourceType, String strPostBackUrl) Gets the view comment page.- Parameters:
request- the requeststrIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource typestrPostBackUrl- 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, String strIdExtendableResource, String strExtendableResourceType) Gets the view comment page.- Parameters:
request- the requeststrIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource type- Returns:
- the view comment page
-
getAddCommentTokenKey
public static String getAddCommentTokenKey(String strIdExtendableResource, String strExtendableResourceType) Builds the CSRF token key for the add comment action, scoped to a couple ( idExtendableResource, extendableResourceType ).- Parameters:
strIdExtendableResource- the extendable resource idstrExtendableResourceType- the extendable resource type- Returns:
- the token key
-