Record Class EventSplit

java.lang.Object
java.lang.Record
org.exoplatform.agenda.model.EventSplit
Record Components:
event - the fields edited on the continuation: its title, description, location, dates and times, time zone, all-day flag, recurrence, open flag, limit and participant permissions; any other field is ignored. Null dates continue the series' dates from the split date, at its times. A null time zone keeps the series' one. A null recurrence keeps the series' rule. A count equal to the series' is shared between the two series; any other count is the number of dates of the continuation alone. When the first date moves to another day, the split date's weekday moves with it in a weekly rule, and its day of the month in a monthly rule, or in a yearly rule naming that one day, when the rule names no weekday and counts its days from the first of the month; any other rule keeps the days it names. A rule with an interval of 2 or more then counts it from the period of its frequency the moved date falls in, such as its week or its month
conferences - the continuation's conferences, null to keep the series'
reminders - the reminders of the user splitting, null to keep the ones they hold on the series
addedIdentityIds - the identities the change invites
removedIdentityIds - the identities the change removes
readZone - the zone the series was read in, which the change was written in; null when unknown. A change in that zone, or in none, keeps the series' zone, and a rule naming the one weekday or day its first date falls on in that zone, as the event form derives it from the date, names the one it falls on in the series' zone. A list of weekdays names the event's own, in the series' zone

public record EventSplit(Event event, List<EventConference> conferences, List<EventReminder> reminders, List<Long> addedIdentityIds, Set<Long> removedIdentityIds, ZoneId readZone) extends Record
What a "this and upcoming" change asks of the series that continues a recurring event from one of its dates on. The rest of the continuation is the series': its creator, its calendar, its attendees and their answers.
  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • event

      public Event event()
      Returns the value of the event record component.
      Returns:
      the value of the event record component
    • conferences

      public List<EventConference> conferences()
      Returns the value of the conferences record component.
      Returns:
      the value of the conferences record component
    • reminders

      public List<EventReminder> reminders()
      Returns the value of the reminders record component.
      Returns:
      the value of the reminders record component
    • addedIdentityIds

      public List<Long> addedIdentityIds()
      Returns the value of the addedIdentityIds record component.
      Returns:
      the value of the addedIdentityIds record component
    • removedIdentityIds

      public Set<Long> removedIdentityIds()
      Returns the value of the removedIdentityIds record component.
      Returns:
      the value of the removedIdentityIds record component
    • readZone

      public ZoneId readZone()
      Returns the value of the readZone record component.
      Returns:
      the value of the readZone record component