Interface Calendar
- All Superinterfaces:
AmetysObject
,ExplorerNode
,TraversableAmetysObject
- All Known Subinterfaces:
ModifiableCalendar
- All Known Implementing Classes:
JCRCalendar
Calendar Interface
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Enumeration of calendar visiblity -
Method Summary
Modifier and TypeMethodDescriptiongetColor()
Get the color 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 URLGet the template description of the calendarGet the calendar visibilityGet the name of the workflow of the calendarMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
Methods inherited from interface org.ametys.plugins.explorer.ExplorerNode
getApplicationId, getDescription, getExplorerPath, getIconCls, hasChildExplorerNodes
Methods inherited from interface org.ametys.plugins.repository.TraversableAmetysObject
getChild, getChildAt, getChildPosition, getChildren, hasChild
-
Method Details
-
getColor
Get the color of the calendar- Returns:
- the color of the calendar
-
getVisibility
Get the calendar visibility- Returns:
- the calendar visibility
-
getWorkflowName
Get the name of the workflow of the calendar- Returns:
- the name of the workflow of the calendar
-
getTemplateDescription
Get the template description of the calendar- Returns:
- the template description of the calendar
-
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
-