@Controller @RequestMapping(value="/events") public class EventsController extends Object
Constructor and Description |
---|
EventsController() |
Modifier and Type | Method and Description |
---|---|
String |
getEventJson(String eventId) |
String |
homeByCategory(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model uiModel) |
String |
homeByDateRange(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model uiModel) |
String |
homePage(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model uiModel,
String date,
String direction) |
List<String> |
listOfDates(String from,
String to) |
void |
setEventsService(EventsService eventsService) |
String |
viewEvent(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model uiModel,
String categoryId,
String campus,
String eventId) |
String |
viewEvents(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model uiModel,
String categoryId,
String campus) |
String |
viewEventsByDateFromTo(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model uiModel,
String dateFrom,
String dateTo) |
public EventsController()
public void setEventsService(EventsService eventsService)
@RequestMapping(method=GET) public String homePage(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model uiModel, @RequestParam(required=false) String date, @RequestParam(required=false) String direction) throws ParseException
ParseException
@RequestMapping(value="/byCategory", method=GET) public String homeByCategory(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model uiModel) throws ParseException
ParseException
@RequestMapping(value="/byDateRange", method=GET) public String homeByDateRange(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model uiModel) throws ParseException
ParseException
@RequestMapping(value="/viewEvents", method=GET) public String viewEvents(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model uiModel, @RequestParam(required=true) String categoryId, @RequestParam(required=false) String campus) throws Exception
Exception
@RequestMapping(value="/viewEvent", method=GET) public String viewEvent(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model uiModel, @RequestParam(required=true) String categoryId, @RequestParam(required=false) String campus, @RequestParam(required=true) String eventId) throws Exception
Exception
@RequestMapping(value="/viewEvent", method=GET, headers="Accept=application/json") @ResponseBody public String getEventJson(@RequestParam(required=true) String eventId)
@RequestMapping(value="/viewEventsByDateFromTo", method=GET) public String viewEventsByDateFromTo(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model uiModel, @RequestParam(required=true) String dateFrom, @RequestParam(required=true) String dateTo) throws Exception
Exception
Copyright © 2011-2013 The Kuali Foundation. All Rights Reserved.