|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portlet.cms.mvc.portlet.ConfigureContentController
@Controller @RequestMapping(value="CONFIG") public class ConfigureContentController
ConfigureContentController allows administrative users to set the content to be displayed by the portlet. This controller is responsible for performing any required content validation, removing any unwanted or dangerous tags and attributes from the configured HTML, and persisting it to the configured content store.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
ConfigureContentController()
|
|
| Method Summary | |
|---|---|
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. |
java.util.HashMap<java.lang.String,java.lang.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(java.lang.String content)
|
boolean |
isCleanContent(javax.portlet.PortletRequest request)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public ConfigureContentController()
| Method Detail |
|---|
public void setContentDao(IContentDao contentDao)
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 - response - form -
javax.portlet.PortletModeException
@RequestMapping(params="action=cancelUpdate")
public void cancelUpdate(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws javax.portlet.PortletModeException
request - response -
javax.portlet.PortletModeException
@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 -
@ModelAttribute(value="cleanContent") public boolean isCleanContent(javax.portlet.PortletRequest request)
request -
public java.util.HashMap<java.lang.String,java.lang.String> getLocales(javax.portlet.PortletRequest request)
request -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||