@Controller @RequestMapping(value="ADMIN") public class AdminCalendarController extends Object implements org.springframework.web.portlet.context.PortletContextAware
PortletContextAware| Constructor and Description |
|---|
AdminCalendarController()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
admin(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
Admin page render mapping.
|
CalendarConfiguration |
getConfiguration(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response)
Get portlet configuration.
|
SortedMap<String,String> |
getPeriodTypes(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response)
Get period types.
|
void |
saveConfiguration(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
CalendarConfiguration configuration)
Save portlet configuration action.
|
void |
setPortletContext(javax.portlet.PortletContext portletContext) |
@RenderMapping public String admin(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException
request - render requestresponse - render responsejavax.portlet.PortletException@ActionMapping(value="save")
public void saveConfiguration(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
@ModelAttribute(value="configuration")
CalendarConfiguration configuration)
throws javax.portlet.PortletException
request - action requestresponse - action responseconfiguration - portlet configurationjavax.portlet.PortletException@ModelAttribute(value="configuration") public CalendarConfiguration getConfiguration(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response) throws javax.portlet.PortletException
request - portlet requestresponse - portlet responsejavax.portlet.PortletException@ModelAttribute(value="periodTypes") public SortedMap<String,String> getPeriodTypes(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.PortletContextAwareCopyright © 2017 OSIVIA. All rights reserved.