Class CalendarEventOccurrence
java.lang.Object
org.ametys.plugins.workspaces.calendars.events.CalendarEventOccurrence
Occurrence of a calendar event
-
Constructor Summary
ConstructorDescriptionCalendarEventOccurrence
(CalendarEvent calendarEvent, ZonedDateTime occurrenceDate) Creates aCalendarEventOccurrence
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
after
(ZonedDateTime date) Check if the occurrence is after a given dateboolean
before
(ZonedDateTime date) Check if the occurrence is before a given dateGet the date of the end of the occurrencegetEvent()
Get the eventRetrieves the resource id's list.Get the date of the begin of the occurrenceboolean
Get if the occurrence last all the dayvoid
setEndDate
(ZonedDateTime endDate) Set the endDate of the occurrencevoid
setFullDay
(boolean isFullDay) Set if the occurrence last all the dayvoid
setResourceIds
(List<String> resourceIds) Set the resources idsvoid
setStartDate
(ZonedDateTime startDate) Set the startDate of the occurrencetoJSON()
occurrence info as a JSONizable map
-
Constructor Details
-
CalendarEventOccurrence
Creates aCalendarEventOccurrence
.- Parameters:
calendarEvent
- the calendar eventoccurrenceDate
- the occurrence date
-
-
Method Details
-
getStartDate
Get the date of the begin of the occurrence- Returns:
- the date of the occurrence
-
setStartDate
Set the startDate of the occurrence- Parameters:
startDate
- the start date
-
getEndDate
Get the date of the end of the occurrence- Returns:
- the date of the occurrence
-
setEndDate
Set the endDate of the occurrence- Parameters:
endDate
- the end date
-
isFullDay
Get if the occurrence last all the day- Returns:
- true if the occurrence last all the day
-
setFullDay
Set if the occurrence last all the day- Parameters:
isFullDay
- true if the occurrence last all the day
-
getResourceIds
Retrieves the resource id's list.- Returns:
- the resource id's list.
-
setResourceIds
Set the resources ids- Parameters:
resourceIds
- The list of ressource ids
-
before
Check if the occurrence is before a given date- Parameters:
date
- the date- Returns:
- true if the occurrence is before a given date
-
after
Check if the occurrence is after a given date- Parameters:
date
- the date- Returns:
- true if the occurrence is after a given date
-
getEvent
Get the event- Returns:
- the event
-
toJSON
occurrence info as a JSONizable map- Returns:
- the map
-