Class CommentApp
- java.lang.Object
-
- fr.paris.lutece.plugins.extend.modules.comment.web.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.XPageApplicationCommentApp- 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.StringgetAddCommentTokenKey(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.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, java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)Gets the view comment page.static java.lang.StringgetViewCommentPageContent(javax.servlet.http.HttpServletRequest request, java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String strPostBackUrl)Gets the view comment page.
-
-
-
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:
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 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 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, java.lang.String strIdExtendableResource, java.lang.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 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 idstrExtendableResourceType- the extendable resource type- Returns:
- the token key
-
-