@Controller @RequestMapping(value="CONFIG") public class ConfigureContentController extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
ConfigureContentController() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelUpdate(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
Cancel any pending portlet configuration edits and exit configuration mode.
|
ContentForm |
getForm(javax.portlet.PortletRequest request)
Get the form object for the portlet configuration.
|
HashMap<String,String> |
getLocales(javax.portlet.PortletRequest request)
Get the list of supported locales to populate the drop-down list with.
|
org.springframework.web.servlet.ModelAndView |
getPreview(String content) |
boolean |
isCleanContent(javax.portlet.PortletRequest request)
Adds clean content attribute to the model.
|
void |
setContentDao(IContentDao contentDao) |
void |
setStringCleaningService(IStringCleaningService cleaningService) |
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 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@RequestMapping(params="action=cancelUpdate")
public void cancelUpdate(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws javax.portlet.PortletModeException
request - ActionRequestresponse - ActionResponsejavax.portlet.PortletModeException - exception@ResourceMapping(value="preview")
public org.springframework.web.servlet.ModelAndView getPreview(@RequestParam(value="content")
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 © 2015 Jasig. All Rights Reserved.