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

java.lang.Object
  extended by org.jasig.portlet.calendar.mvc.controller.AjaxCalendarController
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware

@Controller
@RequestMapping(value="VIEW")
public class AjaxCalendarController
extends Object
implements org.springframework.context.ApplicationContextAware


Field Summary
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
AjaxCalendarController()
           
 
Method Summary
 void getEventList(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
           
protected  Set<JsonCalendarEvent> getJsonEvents(CalendarEvent event, net.fortuna.ical4j.model.Period period, TimeZone tz, int index)
          Get the set of Json-formatted events associated with a CalendarEvent in the given time period.
protected  net.fortuna.ical4j.model.Period getPeriod(javax.portlet.ActionRequest request)
           
 void setAjaxPortletSupportService(org.jasig.web.service.AjaxPortletSupportService ajaxPortletSupportService)
          Set the service for handling portlet AJAX requests.
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setCalendarSetDao(ICalendarSetDao calendarSetDao)
           
 
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

AjaxCalendarController

public AjaxCalendarController()
Method Detail

getEventList

@RequestMapping(params="action=events")
public void getEventList(javax.portlet.ActionRequest request,
                                        javax.portlet.ActionResponse response)
                  throws Exception
Throws:
Exception

getJsonEvents

protected Set<JsonCalendarEvent> getJsonEvents(CalendarEvent event,
                                               net.fortuna.ical4j.model.Period period,
                                               TimeZone tz,
                                               int index)
                                        throws IOException,
                                               URISyntaxException,
                                               ParseException
Get the set of Json-formatted events associated with a CalendarEvent in the given time period.

Parameters:
event -
period -
tz -
index -
Returns:
Throws:
ParseException
URISyntaxException
IOException

getPeriod

protected net.fortuna.ical4j.model.Period getPeriod(javax.portlet.ActionRequest request)

setCalendarSetDao

public void setCalendarSetDao(ICalendarSetDao calendarSetDao)

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

setAjaxPortletSupportService

public void setAjaxPortletSupportService(org.jasig.web.service.AjaxPortletSupportService ajaxPortletSupportService)
Set the service for handling portlet AJAX requests.

Parameters:
ajaxPortletSupportService -


Copyright © 2011 Jasig. All Rights Reserved.