Interface AgendaConferenceEventService
-
Method Summary
Modifier and TypeMethodDescriptiongetConferenceEvent(String providerType, String callId, ZonedDateTime moment, int graceHours, long identityId) Finds the event, or the occurrence of a recurring event, a call was held for at a given moment, as a user may read it.
-
Method Details
-
getConferenceEvent
Event getConferenceEvent(String providerType, String callId, ZonedDateTime moment, int graceHours, long identityId) Finds the event, or the occurrence of a recurring event, a call was held for at a given moment, as a user may read it.An event refers to the call when one of its own meeting links of the given type holds the call identifier as a whole path segment; only an event the user can read in full counts, one they cannot read, or read only as busy time, being left out. The candidates are the single events and the occurrences referring to the call, a stored occurrence possibly holding another call than its series. An occurrence is looked at when it started at most the grace and a day and a half before the moment, and among the 400 earliest such occurrences of its series, a bound only a series recurring more often than hourly reaches.
The candidate whose span, extended by the grace, holds the moment is answered, the one started last when several do. When none does, the single event or series referring to the call that started last before the moment is answered, or the one starting first when all start after it: a single event is so answered whatever the moment when it is the only event of the call. Between candidates starting together, the series created first is answered.
Any user may store a meeting link on an event of their own: when another event the user can read holds the same link and its span holds the moment too, the one started last is answered, whoever created it.
- Parameters:
providerType- the web conferencing provider type, which is the type of the event's conferencecallId- the identifier of the callmoment- when the call was held, such as the date a recording was savedgraceHours- how many hours after an occurrence's end the call still belongs to it, from 0 to 168identityId- the technical identifier of the reading user's identity- Returns:
- the event or the occurrence, or
nullwhen that rule answers none the user can read in full - Throws:
IllegalArgumentException- when the type, the call identifier or the moment is missing, or the grace is negative or longer than a week
-