Package sk.iway.iwcm.calendar
Class CalendarService
java.lang.Object
sk.iway.iwcm.calendar.CalendarService
@RestController
@RequestMapping(path="/rest/events-calendar")
public class CalendarService
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEventsBetweenDates
(Date from, Date to) getEventsBetweenDatesByType
(String from, String to, List<Integer> types) getEventsByTypeForMonth
(int year, int month, List<Integer> types) getEventsForMonth
(int year, int month)
-
Constructor Details
-
CalendarService
public CalendarService()
-
-
Method Details
-
getEventsBetweenDates
public List<EventsCalendarBean> getEventsBetweenDates(@RequestParam Date from, @RequestParam Date to) -
getEventsBetweenDatesByType
-
getEventsForMonth
@RequestMapping(path="/{year}/{month}", method=GET) public List<EventsCalendarBean> getEventsForMonth(@PathVariable int year, @PathVariable int month) -
getEventsByTypeForMonth
@RequestMapping(path="/{year}/{month}/{types}", method=GET) public List<EventsCalendarBean> getEventsByTypeForMonth(@PathVariable int year, @PathVariable int month, @PathVariable List<Integer> types) -
getEventTypes
-