Interface Calendar
- All Known Subinterfaces:
ModifiableCalendar
,WorkflowAwareCalendar
- All Known Implementing Classes:
JCRCalendar
,TaskCalendar
public interface Calendar
Calendar Interface
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Enumeration of calendar visiblity -
Method Summary
Modifier and TypeMethodDescriptionGet all events of the calendarGet the child calendarsgetColor()
Get the color of the calendarGet the description of the calendargetEvents
(ZonedDateTime startDate, ZonedDateTime endDate) Get the events and its occurrences of the calendar between two datesGet the token used by the ICS public URLgetId()
Get the id of the calendargetName()
Get the name of the calendarGet the projectGet the template description of the calendarGet the calendar visibility
-
Method Details
-
getId
Get the id of the calendar- Returns:
- the id
-
getName
Get the name of the calendar- Returns:
- the name
-
getDescription
Get the description of the calendar- Returns:
- the description
-
getProject
Get the project- Returns:
- the project
-
getColor
Get the color of the calendar- Returns:
- the color of the calendar
-
getVisibility
Get the calendar visibility- Returns:
- the calendar visibility
-
getTemplateDescription
Get the template description of the calendar- Returns:
- the template description of the calendar
-
getChildCalendars
Get the child calendars- Returns:
- the child calendars
-
getAllEvents
Get all events of the calendar- Returns:
- the list of events
-
getEvents
Map<CalendarEvent,List<CalendarEventOccurrence>> getEvents(ZonedDateTime startDate, ZonedDateTime endDate) Get the events and its occurrences of the calendar between two dates- Parameters:
startDate
- Begin dateendDate
- End date- Returns:
- the map of events and its occurrences
-
getIcsUrlToken
Get the token used by the ICS public URL- Returns:
- The token, or null if no token exists for the calendar
-