@Controller
@RequestMapping(value="VIEW")
@SessionAttributes(value="form")
public class DocumentEditionController
extends fr.toutatice.portail.cms.nuxeo.api.CMSPortlet
implements org.springframework.web.portlet.context.PortletConfigAware
CMSPortlet,
PortletConfigAware| Constructor and Description |
|---|
DocumentEditionController()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
org.springframework.web.bind.support.SessionStatus sessionStatus)
Cancel document edition action mapping.
|
void |
editionFormInitBinder(org.springframework.web.bind.WebDataBinder binder)
Document edition form init binder.
|
void |
editorResourceMapping(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response,
String editorId)
Editor resource mapping.
|
AbstractDocumentEditionForm |
getForm(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response)
Get document edition form model attribute.
|
void |
restore(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
AbstractDocumentEditionForm form)
Restore document file action mapping.
|
void |
save(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
AbstractDocumentEditionForm form,
org.springframework.validation.BindingResult result,
org.springframework.web.bind.support.SessionStatus sessionStatus)
Save document edition action mapping.
|
void |
setPortletConfig(javax.portlet.PortletConfig portletConfig) |
void |
upload(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
AbstractDocumentEditionForm form)
Upload document file action mapping.
|
String |
view(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
View render mapping.
|
addCommentAction, createNuxeoController, deleteCommentAction, destroy, formatResourceLastModified, getCMSService, getNuxeoNavigationService, getNuxeoService, init, isResourceExpired, processCommentAction, serveResource, serveResourceByCache, serveResourceEditor, serveResourceException, serveResourceFancytreeLazyLoading, serveResourceSelect2VocabularyaddNotification, 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, renderpublic void setPortletConfig(javax.portlet.PortletConfig portletConfig)
setPortletConfig in interface org.springframework.web.portlet.context.PortletConfigAware@RenderMapping public String view(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, IOException
request - render requestresponse - render responsejavax.portlet.PortletExceptionIOException@ActionMapping(name="submit",
params="upload")
public void upload(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
@ModelAttribute(value="form")
AbstractDocumentEditionForm form)
throws javax.portlet.PortletException,
IOException
request - action requestresponse - action responseform - document edition form model attributejavax.portlet.PortletExceptionIOException@ActionMapping(name="submit",
params="restore")
public void restore(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
@ModelAttribute(value="form")
AbstractDocumentEditionForm form)
throws javax.portlet.PortletException,
IOException
request - action requestresponse - action responseform - document edition form model attributejavax.portlet.PortletExceptionIOException@ActionMapping(name="submit",
params="save")
public void save(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
@Validated @ModelAttribute(value="form")
AbstractDocumentEditionForm form,
org.springframework.validation.BindingResult result,
org.springframework.web.bind.support.SessionStatus sessionStatus)
throws javax.portlet.PortletException,
IOException
request - action requestresponse - action responseform - document edition form model attributeresult - binding resultsessionStatus - session statusjavax.portlet.PortletExceptionIOException@ActionMapping(value="cancel")
public void cancel(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
org.springframework.web.bind.support.SessionStatus sessionStatus)
throws javax.portlet.PortletException,
IOException
request - action requestresponse - action responsesessionStatus - session statusjavax.portlet.PortletExceptionIOException@ResourceMapping(value="editor")
public void editorResourceMapping(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response,
@RequestParam(value="editorId")
String editorId)
throws javax.portlet.PortletException,
IOException
request - resource requestresponse - resource responseeditorId - editor identifier request parameterjavax.portlet.PortletExceptionIOException@ModelAttribute(value="form") public AbstractDocumentEditionForm getForm(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response) throws javax.portlet.PortletException, IOException
request - portlet requestresponse - portlet responsejavax.portlet.PortletExceptionIOException@InitBinder(value="form") public void editionFormInitBinder(org.springframework.web.bind.WebDataBinder binder)
binder - web data binderCopyright © 2020 OSIVIA. All rights reserved.