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

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

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

AdminCalendarController provides a main administrative view for the calendar portlet. The page is available to users in the configured "calendarAdmin" role.

Author:
Jen Bourey

Constructor Summary
AdminCalendarController()
           
 
Method Summary
 void deleteSharedCalendar(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response, Long id)
          Delete a predefined calendar from the calendar store.
 List<PredefinedCalendarDefinition> getPredefinedCalendars()
          Get a list of all currently-defined predefined calendars.
 void setCalendarStore(CalendarStore calendarStore)
           
 String showAdministration(javax.portlet.RenderRequest request)
          Show the main administrative view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminCalendarController

public AdminCalendarController()
Method Detail

setCalendarStore

public void setCalendarStore(CalendarStore calendarStore)

showAdministration

@RequestMapping(params="action=administration")
public String showAdministration(javax.portlet.RenderRequest request)
Show the main administrative view.

Parameters:
request -
Returns:

deleteSharedCalendar

@ActionMapping(params="action=deleteSharedCalendar")
public void deleteSharedCalendar(javax.portlet.ActionRequest request,
                                               javax.portlet.ActionResponse response,
                                               @RequestParam(value="calendarId")
                                               Long id)
Delete a predefined calendar from the calendar store.

Parameters:
request -
response -
id - ID of the calendar to be deleted

getPredefinedCalendars

@ModelAttribute(value="calendars")
public List<PredefinedCalendarDefinition> getPredefinedCalendars()
Get a list of all currently-defined predefined calendars.

Returns:
list of calendars


Copyright © 2012 Jasig. All Rights Reserved.