Class CalendarEventOccurrence

java.lang.Object
org.ametys.plugins.workspaces.calendars.events.CalendarEventOccurrence

public class CalendarEventOccurrence extends Object
Occurrence of a calendar event
  • Constructor Details

  • Method Details

    • getStartDate

      Get the date of the begin of the occurrence
      Returns:
      the date of the occurrence
    • setStartDate

      public void setStartDate(ZonedDateTime startDate)
      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

      public void setEndDate(ZonedDateTime endDate)
      Set the endDate of the occurrence
      Parameters:
      endDate - the end date
    • isFullDay

      public boolean isFullDay()
      Get if the occurrence last all the day
      Returns:
      true if the occurrence last all the day
    • setFullDay

      public void setFullDay(boolean isFullDay)
      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

      public void setResourceIds(List<String> resourceIds)
      Set the resources ids
      Parameters:
      resourceIds - The list of ressource ids
    • before

      public boolean before(ZonedDateTime date)
      Check if the occurrence is before a given date
      Parameters:
      date - the date
      Returns:
      true if the occurrence is before a given date
    • after

      public boolean after(ZonedDateTime date)
      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

      public Map<String,Object> toJSON()
      occurrence info as a JSONizable map
      Returns:
      the map