The CalendarWebAPI provides methods for finding calendar events and related events.
Methods
Method | Return Value | Description |
---|---|---|
init(Object obj) | None | Ititalizes the Calendar object. |
findRelatedEvents (String parentEvent, Date fromDate, Date toDate) | List | Returns events in the time period entered that are related to the parent event. |
find(String id) | Event | Gives you the event for the ID that you passed in. |
` findEvents (String hostId, Date fromDate, Date toDate, String tag, |
String keyword, String categoryInode,final String sortBy, int offset, int limit) ` |List<Event> | Returns a sorted list of events in the date range given that matches the passed keyword. |
The following example shows how the CalendarWebAPI Viewtool is mapped in the toolbox.xml file:
<tool>
<key>calendar</key>
<scope>request</scope>
<class>com.dotmarketing.portlets.calendar.viewtools.CalendarWebAPI</class>
</tool>