@Controller
@RequestMapping(value="VIEW")
public class ForumPortletController
extends fr.toutatice.portail.cms.nuxeo.api.CMSPortlet
implements org.springframework.web.portlet.context.PortletContextAware, org.springframework.web.portlet.context.PortletConfigAware
CMSPortlet,
PortletContextAware,
PortletConfigAware| Constructor and Description |
|---|
ForumPortletController()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCommentAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
List<ThreadPost> posts,
ThreadPostReplyForm replyForm,
String parentId)
Add comment action.
|
void |
deleteCommentAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
List<ThreadPost> posts,
String id)
Delete comment action.
|
List<ThreadPost> |
getPosts(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response)
Get thread posts.
|
ThreadPostReplyForm |
getReplyForm(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response)
Get thread post reply form.
|
Thread |
getThread(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response)
Get current thread.
|
void |
postConstruct()
Portlet initialization.
|
void |
setPortletConfig(javax.portlet.PortletConfig portletConfig) |
void |
setPortletContext(javax.portlet.PortletContext portletContext) |
String |
view(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
View page render mapping.
|
addCommentAction, createNuxeoController, deleteCommentAction, destroy, formatResourceLastModified, getCMSService, getNuxeoNavigationService, getNuxeoService, init, isResourceExpired, processCommentAction, serveResource, serveResourceByCache, serveResourceException, serveResourceFancytreeLazyLoadingaddNotification, addNotification, getBundleFactory, getDirectoryService, getMenubarService, getMessage, getMessage, getNotificationsService, getPortalUrlFactory, getTraceServicedoDispatch, doEdit, doHeaders, doHelp, doView, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init, processAction, processEvent, render@PostConstruct public void postConstruct() throws javax.portlet.PortletException
javax.portlet.PortletException@RenderMapping public String view(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, org.osivia.portal.core.cms.CMSException
request - render requestresponse - render responsejavax.portlet.PortletExceptionorg.osivia.portal.core.cms.CMSException@ActionMapping(value="add")
public void addCommentAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
@ModelAttribute(value="posts")
List<ThreadPost> posts,
@ModelAttribute(value="replyForm")
ThreadPostReplyForm replyForm,
@RequestParam(value="parentId",required=false)
String parentId)
throws javax.portlet.PortletException
request - action requestresponse - action responseposts - thread postsreplyForm - thread post reply formparentId - parent thread post identifier, may be nulljavax.portlet.PortletException@ActionMapping(value="delete")
public void deleteCommentAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
@ModelAttribute(value="posts")
List<ThreadPost> posts,
@RequestParam(value="id",required=true)
String id)
throws javax.portlet.PortletException
request - action requestresponse - action responseposts - thread postsid - comment identifierjavax.portlet.PortletException@ModelAttribute(value="thread") public Thread getThread(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response) throws javax.portlet.PortletException
request - portlet requestresponse - portlet responsejavax.portlet.PortletException@ModelAttribute(value="posts") public List<ThreadPost> getPosts(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response) throws javax.portlet.PortletException
request - portlet requestresponse - portlet responsejavax.portlet.PortletException@ModelAttribute(value="replyForm") public ThreadPostReplyForm getReplyForm(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response) throws javax.portlet.PortletException
request - portlet requestresponse - portlet responsejavax.portlet.PortletExceptionpublic void setPortletContext(javax.portlet.PortletContext portletContext)
setPortletContext in interface org.springframework.web.portlet.context.PortletContextAwarepublic void setPortletConfig(javax.portlet.PortletConfig portletConfig)
setPortletConfig in interface org.springframework.web.portlet.context.PortletConfigAwareCopyright © 2018 OSIVIA. All rights reserved.