@Controller @RequestMapping(value="VIEW") public class ViewSchedulerController extends Object
| Constructor and Description |
|---|
ViewSchedulerController()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
SchedulerForm |
getForm(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response)
Get scheduler form model attribute.
|
void |
loadScheduler(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
SchedulerForm form)
Action called to load contributor's scheduler
|
void |
nextWeek(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
SchedulerForm form)
Action called to advance the agenda of a week
|
void |
previousWeek(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
SchedulerForm form)
Action called to move back a week's agenda
|
void |
searchContributor(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response,
String filter)
Search persons resource mapping.
|
void |
startContribution(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
SchedulerForm form,
String halfDay,
String day)
Action to call the startContribution procedure
|
String |
view(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response,
SchedulerForm form)
View demo scheduler render mapping
|
@RenderMapping public String view(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, @ModelAttribute(value="schedulerForm") SchedulerForm form) throws javax.portlet.PortletException
request - response - form - javax.portlet.PortletException@ActionMapping(name="loadScheduler")
public void loadScheduler(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
@ModelAttribute(value="schedulerForm")
SchedulerForm form)
throws javax.portlet.PortletException
request - response - form - javax.portlet.PortletException@ActionMapping(name="startContribution")
public void startContribution(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
@ModelAttribute(value="schedulerForm")
SchedulerForm form,
@RequestParam(value="halfDay")
String halfDay,
@RequestParam(value="day")
String day)
throws javax.portlet.PortletException,
IOException
request - response - form - halfDay - day - javax.portlet.PortletExceptionIOException@ActionMapping(name="previousWeek")
public void previousWeek(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
@ModelAttribute(value="schedulerForm")
SchedulerForm form)
throws javax.portlet.PortletException,
IOException
request - response - form - javax.portlet.PortletExceptionIOException@ActionMapping(name="nextWeek")
public void nextWeek(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
@ModelAttribute(value="schedulerForm")
SchedulerForm form)
throws javax.portlet.PortletException,
IOException
request - response - form - javax.portlet.PortletExceptionIOException@ResourceMapping(value="searchContributor")
public void searchContributor(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response,
@RequestParam(value="filter",required=false)
String filter)
throws javax.portlet.PortletException,
IOException
request - resource requestresponse - resource responseoptions - options model attributefilter - search filter request parameterpage - pagination page number request parametertokenizer - tokenizer indicator request parameterjavax.portlet.PortletExceptionIOException@ModelAttribute(value="schedulerForm") public SchedulerForm getForm(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response) throws javax.portlet.PortletException
request - portlet requestresponse - portlet responsejavax.portlet.PortletExceptionCopyright © 2018. All rights reserved.