@Controller
@RequestMapping(value="CONFIG")
public class ConfigureContentController
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
ConfigureContentController() |
| Modifier and Type | Method and Description |
|---|---|
ContentForm |
getForm(javax.portlet.PortletRequest request)
Get the form object for the portlet configuration.
|
org.springframework.web.servlet.ModelAndView |
getPreview(java.lang.String content) |
boolean |
isCleanContent(javax.portlet.PortletRequest request)
Adds clean content attribute to the model.
|
void |
setContentDao(IContentDao contentDao) |
void |
setStringCleaningService(IStringCleaningService cleaningService) |
java.lang.String |
showContentForm()
Show the main configuration view.
|
void |
updateConfiguration(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
ContentForm form)
Update the portlet's configuration according to the submitted form
object.
|
@Autowired public void setContentDao(IContentDao contentDao)
@Autowired public void setStringCleaningService(IStringCleaningService cleaningService)
@RequestMapping public java.lang.String showContentForm()
@RequestMapping(params="action=updateConfiguration")
public void updateConfiguration(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
@ModelAttribute(value="form")
ContentForm form)
throws javax.portlet.PortletModeException
request - ActionRequestresponse - ActionResponseform - configuration formjavax.portlet.PortletModeException - exception@ResourceMapping(value="preview")
public org.springframework.web.servlet.ModelAndView getPreview(@RequestParam(value="content")
java.lang.String content)
@ModelAttribute(value="form") public ContentForm getForm(javax.portlet.PortletRequest request)
request - PortletRequest@ModelAttribute(value="cleanContent") public boolean isCleanContent(javax.portlet.PortletRequest request)
request - PortletRequestCopyright © 2019 Jasig. All Rights Reserved.