Package org.exoplatform.agenda.model
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 monthconferences- 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 seriesaddedIdentityIds- the identities the change invitesremovedIdentityIds- the identities the change removesreadZone- 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 Summary
ConstructorsConstructorDescriptionEventSplit(Event event, List<EventConference> conferences, List<EventReminder> reminders, List<Long> addedIdentityIds, Set<Long> removedIdentityIds, ZoneId readZone) Creates an instance of aEventSplitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaddedIdentityIdsrecord component.Returns the value of theconferencesrecord component.final booleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.readZone()Returns the value of thereadZonerecord component.Returns the value of theremindersrecord component.Returns the value of theremovedIdentityIdsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EventSplit
public EventSplit(Event event, List<EventConference> conferences, List<EventReminder> reminders, List<Long> addedIdentityIds, Set<Long> removedIdentityIds, ZoneId readZone) Creates an instance of aEventSplitrecord class.- Parameters:
event- the value for theeventrecord componentconferences- the value for theconferencesrecord componentreminders- the value for theremindersrecord componentaddedIdentityIds- the value for theaddedIdentityIdsrecord componentremovedIdentityIds- the value for theremovedIdentityIdsrecord componentreadZone- the value for thereadZonerecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
conferences
Returns the value of theconferencesrecord component.- Returns:
- the value of the
conferencesrecord component
-
reminders
Returns the value of theremindersrecord component.- Returns:
- the value of the
remindersrecord component
-
addedIdentityIds
Returns the value of theaddedIdentityIdsrecord component.- Returns:
- the value of the
addedIdentityIdsrecord component
-
removedIdentityIds
Returns the value of theremovedIdentityIdsrecord component.- Returns:
- the value of the
removedIdentityIdsrecord component
-
readZone
Returns the value of thereadZonerecord component.- Returns:
- the value of the
readZonerecord component
-