org.jasig.portlet.calendar.mvc.controller
Class EditCalendarSubscriptionsController

java.lang.Object
  extended by org.jasig.portlet.calendar.mvc.controller.EditCalendarSubscriptionsController

@Controller
@RequestMapping(value="EDIT")
public class EditCalendarSubscriptionsController
extends Object

EditCalendarPreferencesController provides the main edit page for the calendars portlet. The page allows users to view, add, delete and edit all available calendars.

Author:
Jen Bourey

Field Summary
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
EditCalendarSubscriptionsController()
           
 
Method Summary
 void addSharedCalendar(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response, Long id)
           
 void defaultAction(javax.portlet.ActionRequest request)
           
 CalendarPreferencesCommand getForm(javax.portlet.PortletRequest request)
          Return a pre-populated preferences form for the current user.
 List<String> getTimeZones()
          Return the list of available time zone IDs.
 void hideCalendar(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response, Long id)
           
 void removeSubscription(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response, Long id)
           
 void setCalendarStore(CalendarStore calendarStore)
           
 void setPredefinedEditActions(Map<String,String> predefinedEditActions)
           
 void setTimeZones(List<String> timeZones)
          Set the list of time zone IDs that should be presented as options for user time zones.
 void setViewSelector(IViewSelector viewSelector)
           
 void showCalendar(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response, Long id)
           
 void updatePreferences(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response, CalendarPreferencesCommand form)
          Process the preferences update request.
 org.springframework.web.portlet.ModelAndView viewEditOptions(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
 org.springframework.web.portlet.ModelAndView viewSubscriptions(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.apache.commons.logging.Log log
Constructor Detail

EditCalendarSubscriptionsController

public EditCalendarSubscriptionsController()
Method Detail

viewEditOptions

@RequestMapping
public org.springframework.web.portlet.ModelAndView viewEditOptions(javax.portlet.RenderRequest request,
                                                                                   javax.portlet.RenderResponse response)

defaultAction

@ActionMapping
public void defaultAction(javax.portlet.ActionRequest request)

viewSubscriptions

@RequestMapping(params="action=editSubscriptions")
public org.springframework.web.portlet.ModelAndView viewSubscriptions(javax.portlet.RenderRequest request,
                                                                                     javax.portlet.RenderResponse response)

removeSubscription

@ActionMapping(params="action=deleteUserCalendar")
public void removeSubscription(javax.portlet.ActionRequest request,
                                             javax.portlet.ActionResponse response,
                                             @RequestParam(value="configurationId")
                                             Long id)

showCalendar

@ActionMapping(params="action=showCalendar")
public void showCalendar(javax.portlet.ActionRequest request,
                                       javax.portlet.ActionResponse response,
                                       @RequestParam(value="configurationId")
                                       Long id)

hideCalendar

@ActionMapping(params="action=hideCalendar")
public void hideCalendar(javax.portlet.ActionRequest request,
                                       javax.portlet.ActionResponse response,
                                       @RequestParam(value="configurationId")
                                       Long id)

addSharedCalendar

@ActionMapping(params="action=addSharedCalendar")
public void addSharedCalendar(javax.portlet.ActionRequest request,
                                            javax.portlet.ActionResponse response,
                                            @RequestParam(value="definitionId")
                                            Long id)

updatePreferences

@ActionMapping(params="action=editPreferences")
public void updatePreferences(javax.portlet.ActionRequest request,
                                            javax.portlet.ActionResponse response,
                                            @ModelAttribute(value="calendarPreferencesCommand")
                                            CalendarPreferencesCommand form)
                       throws Exception
Process the preferences update request.

Parameters:
request -
response -
form -
Throws:
Exception

getTimeZones

@ModelAttribute(value="timezones")
public List<String> getTimeZones()
Return the list of available time zone IDs.

Returns:

getForm

@ModelAttribute(value="calendarPreferencesCommand")
public CalendarPreferencesCommand getForm(javax.portlet.PortletRequest request)
                                   throws Exception
Return a pre-populated preferences form for the current user.

Parameters:
request -
Returns:
Throws:
Exception

setPredefinedEditActions

public void setPredefinedEditActions(Map<String,String> predefinedEditActions)

setTimeZones

public void setTimeZones(List<String> timeZones)
Set the list of time zone IDs that should be presented as options for user time zones.

Parameters:
timeZones -

setCalendarStore

public void setCalendarStore(CalendarStore calendarStore)

setViewSelector

public void setViewSelector(IViewSelector viewSelector)


Copyright © 2012 Jasig. All Rights Reserved.