Interface AgendaEventService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringBroadcast once a colleague holding an edit share on a personal calendar (EXO-90378) — and holding no older right over the event — added, changed or removed one of its events; source theCalendarEditorChange, data the calendar owner's identity identifier. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAccessEvent(Event event, long identityId) Check whether user can access event or not.booleancanCreateEvent(Calendar calendar, long userIdentityId) Check whether user can create an event in selected Calendar or not.booleancanUpdateEvent(Event event, long userIdentityId) Check whether user can update or delete an event or not.longcountEventDatePolls(List<Long> ownerIds, long attendeeId) Count pending date polls where the current user is invitedlongcountPendingEvents(List<Long> ownerIds, long userIdentityId) Count pending events that the selected user didn't answered yetcreateEvent(Event event, List<EventAttendee> attendees, List<EventConference> conferences, List<EventReminder> reminders, List<EventDateOption> dateOptions, RemoteEvent remoteEvent, boolean sendInvitation, boolean confirmClose, long userIdentityId) Creates an event, ascreateEvent(Event, List, List, List, List, RemoteEvent, boolean, long)does, once the user has confirmed closing it when the save closes a date of a series whose waiting list it would confirm.default EventcreateEvent(Event event, List<EventAttendee> attendees, List<EventConference> conferences, List<EventReminder> reminders, List<EventDateOption> dateOptions, RemoteEvent remoteEvent, boolean sendInvitation, long userIdentityId) Creates an event in designated calendar or in user personal calendar if nullcreateEventExceptionalOccurrence(long eventId, List<EventAttendee> attendees, List<EventConference> conferences, List<EventReminder> reminders, ZonedDateTime occurrenceId) Creates the exceptional occurrence of one date of a parent recurrent event, under the lock of the series.deleteEventById(long eventId, long userIdentityId) Deletes an existing eventgetEventAccess(Event event, long identityId) How a user may read an event (EXO-90357): fully, only through a calendar share — in which case a private event is rendered as busy time — or not at all.getEventById(long eventId) Retrieves an event identified by its technical identifier.getEventById(long eventId, ZoneId timeZone, long identityId) Retrieves an event identified by its technical identifier.getEventDatePolls(EventFilter eventFilter, ZoneId userTimeZone, long attendeeId) Retrieves the list of pending date polls where the current user is invitedgetEventOccurrence(long parentEventId, ZonedDateTime occurrenceId, ZoneId userTimeZone, long identityId) Retrieves Event Occurrence identified by parent recurrence Event identifier and occurrence dategetEventOccurrencesInPeriod(Event recurrentEvent, ZonedDateTime start, ZonedDateTime end, ZoneId timezone, int limit) Retrieves occurrences, without exceptional, of a recurrent event in a given period of time.getEvents(EventFilter eventFilter, ZoneId userTimeZone, long userIdentityId) Retrieves the list of events available for a designated user filtered by criteria defined in a filter.getExceptionalOccurrenceEvent(long eventId, ZonedDateTime occurrenceId) Retrieves the exceptional occurrence a recurrent event holds for one of its dates: the row whose occurrence id designates the same date of the series — a timed id read in the series' zone, an all-day id as the later of its UTC date and its date in that zone — or, on a series with several dates a day, the row stored at that instant; the first created when the date has several.getExceptionalOccurrenceEvents(long eventId, ZoneId timeZone, long userIdentityId) Retrieves the list of exceptional occurrences of an event identified by its technical identifier.getParentRecurrentEvents(ZonedDateTime start, ZonedDateTime end, ZoneId timeZone) Retrieve parent recurrent events switch event filter.getPendingEvents(List<Long> ownerIds, long userIdentityId, ZoneId userTimeZone, int offset, int limit) Retrieve pending events that the selected user didn't answered yetmoveExceptionalOccurrences(long fromEventId, long toEventId, ZonedDateTime fromDate, long userIdentityId) Moves the exceptional occurrences of a recurring event dated from a given day on under another recurring event: the second half of a "this and upcoming" split, whose continuing series is created first so that the dates the organiser had customised from the split point on survive the shortening of the first series instead of being dropped with their answers.saveEventExceptionalOccurrence(long eventId, ZonedDateTime occurrenceId) Finds the exceptional occurrence of one date of a recurrent event, asgetExceptionalOccurrenceEvent(long, ZonedDateTime)does, or creates it as a copy of the series, with the series' attendees valid at that date, its conferences and its reminders, under the lock of the series.search(AgendaEventSearchFilter filter) Search the list of events available with query for the currentUservoidselectEventDateOption(long eventId, long dateOptionId, long userIdentityId) Choose a selectedEventDateOptionfor a givenEventsplitEvent(long seriesId, EventSplit split, ZonedDateTime splitFrom, boolean sendInvitation, boolean confirmClose, long userIdentityId) Splits a recurring event at one of its dates: a "this and upcoming" change.updateEvent(Event event, List<EventAttendee> attendees, List<EventConference> conferences, List<EventReminder> reminders, List<EventDateOption> dateOptions, RemoteEvent remoteEvent, boolean sendInvitation, boolean confirmClose, long userIdentityId) Updates an existing event, asupdateEvent(Event, List, List, List, List, RemoteEvent, boolean, long)does, once the user has confirmed closing it when the save closes an open event whose waiting list it would confirm.default EventupdateEvent(Event event, List<EventAttendee> attendees, List<EventConference> conferences, List<EventReminder> reminders, List<EventDateOption> dateOptions, RemoteEvent remoteEvent, boolean sendInvitation, long userIdentityId) Updates an existing event in-place when the user is owner of parentCalendar, else this will duplicate the event and add it into his personal calendarvoidupdateEventFields(long eventId, Map<String, List<String>> fields, boolean updateAllOccurrences, boolean sendInvitation, boolean confirmClose, long userIdentityId) Updates fields of an event, asupdateEventFields(long, Map, boolean, boolean, long)does, once the user has confirmed closing it when the patch closes an open event whose waiting list it would confirm.default voidupdateEventFields(long eventId, Map<String, List<String>> fields, boolean updateAllOccurrences, boolean sendInvitation, long userIdentityId) Updates a single field for a givenEventidentified by its technical identifier.
-
Field Details
-
CALENDAR_EDITED_BY_SHAREE_EVENT
Broadcast once a colleague holding an edit share on a personal calendar (EXO-90378) — and holding no older right over the event — added, changed or removed one of its events; source theCalendarEditorChange, data the calendar owner's identity identifier.Raised by the event service alone, which is the one place that knows by what right a writer wrote. The owner is told about the one case they cannot otherwise see coming; a change of their own, of a space manager, of the event's creator or of an attendee allowed to update raises nothing.
- See Also:
-
-
Method Details
-
getEvents
List<Event> getEvents(EventFilter eventFilter, ZoneId userTimeZone, long userIdentityId) throws IllegalAccessException Retrieves the list of events available for a designated user filtered by criteria defined in a filter.The filter's
calendarIds(EventFilter) name the calendars other users shared with the reader (EXO-90357): each is checked against the reader — accessible, or shared with them — and the whole request is refused otherwise. A private event of a shared calendar comes back masked (Event.isMasked()).- Parameters:
eventFilter- a filter used to define criteria to get list of objectsuserTimeZone- User time zoneuserIdentityId- userIdentityidentifier- Returns:
ListofEventaccessible to user- Throws:
IllegalAccessException- when user is not allowed to access events, or names a calendar incalendarIdsthey may not read
-
getParentRecurrentEvents
Retrieve parent recurrent events switch event filter. -
getEventById
Retrieves an event identified by its technical identifier.- Parameters:
eventId- technical identifier of eventtimeZone- used timezone to convert datesidentityId-Identitytechnical identifier- Returns:
- Corresponding
Eventor null if not found - Throws:
IllegalAccessException- when user is not allowed to access event
-
getEventById
-
getEventOccurrence
Event getEventOccurrence(long parentEventId, ZonedDateTime occurrenceId, ZoneId userTimeZone, long identityId) throws IllegalAccessException Retrieves Event Occurrence identified by parent recurrence Event identifier and occurrence date- Parameters:
parentEventId-Eventtechnical identifieroccurrenceId- Date of occurrenceuserTimeZone- used user timezoneidentityId- userIdentityidentifier requesting event- Returns:
Eventrepresenting occurrence of parent recurrent event- Throws:
IllegalAccessException- when the user can't access the event served (seecanAccessEvent(Event, long)): a stored exceptional occurrence is checked through its own row, as an event of its own; a computed occurrence through its parent
-
getExceptionalOccurrenceEvents
List<Event> getExceptionalOccurrenceEvents(long eventId, ZoneId timeZone, long userIdentityId) throws IllegalAccessException Retrieves the list of exceptional occurrences of an event identified by its technical identifier.- Parameters:
eventId- technical identifier of parent recurrent eventtimeZone- used timezone to compute eventsuserIdentityId-- Returns:
- list of Exceptional
Events if found, else null - Throws:
IllegalAccessException- when user is not allowed to access event
-
moveExceptionalOccurrences
List<Long> moveExceptionalOccurrences(long fromEventId, long toEventId, ZonedDateTime fromDate, long userIdentityId) throws IllegalAccessException, AgendaException Moves the exceptional occurrences of a recurring event dated from a given day on under another recurring event: the second half of a "this and upcoming" split, whose continuing series is created first so that the dates the organiser had customised from the split point on survive the shortening of the first series instead of being dropped with their answers. Each moved row is then merged into its new series as a date individually modified is merged into a series change: what was customised on the date is kept, what was not follows the new series, and a day the new series does not produce is dropped, as a series change drops it. A row the new series already holds for a date a kept row moved to — the reminder computing listener materialises the next days of a series on its creation — is deleted when it carries nothing of its own against the new series, so that a date keeps one row.- Parameters:
fromEventId- the recurring event the rows belong totoEventId- the recurring event they move under, in the same calendarfromDate- the occurrence the split starts from, inclusive, compared as occurrences are, within twelve hoursuserIdentityId- who is splitting; must be allowed to update both events- Returns:
- the identifiers of the rows moved and kept by the merge
- Throws:
IllegalAccessException- when the user may not update one of the two eventsAgendaException- when one of the two events does not existIllegalArgumentException- with the codeagenda.seriesSplit.notAllowedwhen the two events are one, when one of them is not a recurring series or when they live in different calendars, andagenda.openEvent.externalGuestNotAllowedwhen the merge would leave a person from outside the platform on an open date
-
splitEvent
Event splitEvent(long seriesId, EventSplit split, ZonedDateTime splitFrom, boolean sendInvitation, boolean confirmClose, long userIdentityId) throws IllegalAccessException, AgendaException Splits a recurring event at one of its dates: a "this and upcoming" change. A series continuing the first one from that date on is created, the dates customised from it on move under it, and the first series is shortened to the day before, all in one transaction.The continuation keeps the series' creator and calendar, and takes from the change only the fields
EventSplit.event()lists. When the change moves no date (same first date, times, duration, time zone, all-day flag and recurrence pattern), every attendee keeps their answers and their places on the waiting list, which takes the seats the change frees; when it moves one, every answer but the user's starts over.- Parameters:
seriesId- technical identifier of the recurring eventsplit- what the change asks of the continuationsplitFrom- the occurrence id of the continuation's first date, a date of the series after its first onesendInvitation- whether the attendees are notifiedconfirmClose- whether the user confirmed a change that closes the event while people are waitinguserIdentityId- who is splitting; must be allowed to update the series and to create an event in its calendar- Returns:
- the continuation, as stored
- Throws:
IllegalAccessException- when the user may not update the series or create an event in its calendarAgendaException- when the series does not exist, or the continuation is invalidCapacityBelowAcceptedException- when the continuation's limit, or the limit a moved date gets, is below the Yes answers of a dateIllegalArgumentException- with the codeagenda.seriesSplit.notAllowedwhen the event is not a series or the date is not one of its dates after the first,agenda.capacity.invalidfor a negative limit,agenda.capacity.closeNeedsConfirmationwhen the change closes the event while people are waiting and is not confirmed,agenda.openEvent.externalGuestsInvitedwhen the change opens the continuation of a locked series while people from outside the platform are invited, andagenda.openEvent.externalGuestNotAllowedwhen one of them would be on the open continuation of an open series or reach a date that stays open
-
getExceptionalOccurrenceEvent
Retrieves the exceptional occurrence a recurrent event holds for one of its dates: the row whose occurrence id designates the same date of the series — a timed id read in the series' zone, an all-day id as the later of its UTC date and its date in that zone — or, on a series with several dates a day, the row stored at that instant; the first created when the date has several.- Parameters:
eventId- technical identifier of parent recurrent eventoccurrenceId- technical occurrence event identifier- Returns:
- Exceptional
Eventif found, else null
-
createEventExceptionalOccurrence
Event createEventExceptionalOccurrence(long eventId, List<EventAttendee> attendees, List<EventConference> conferences, List<EventReminder> reminders, ZonedDateTime occurrenceId) throws AgendaException Creates the exceptional occurrence of one date of a parent recurrent event, under the lock of the series. A date has one row: when it already has one, asgetExceptionalOccurrenceEvent(long, ZonedDateTime)finds it, that row is returned as it is, and the attendees, conferences and reminders given are not applied to it.- Parameters:
eventId- technical identifier of parent recurrent eventattendees-Listof attendees of a row createdconferences-Listof conferences of a row createdreminders-Listof reminders of a row createdoccurrenceId- event occurent identifier- Returns:
- the
Eventcreated, or the date's existing row - Throws:
AgendaException- when the event attributes aren't valid
-
saveEventExceptionalOccurrence
Event saveEventExceptionalOccurrence(long eventId, ZonedDateTime occurrenceId) throws AgendaException Finds the exceptional occurrence of one date of a recurrent event, asgetExceptionalOccurrenceEvent(long, ZonedDateTime)does, or creates it as a copy of the series, with the series' attendees valid at that date, its conferences and its reminders, under the lock of the series.- Parameters:
eventId- parent recurrent event identifieroccurrenceId- Occurrence identifier- Returns:
- the date's existing row, or the
Eventcreated - Throws:
AgendaException- when an error occurs hile creating event
-
createEvent
default Event createEvent(Event event, List<EventAttendee> attendees, List<EventConference> conferences, List<EventReminder> reminders, List<EventDateOption> dateOptions, RemoteEvent remoteEvent, boolean sendInvitation, long userIdentityId) throws IllegalAccessException, AgendaException Creates an event in designated calendar or in user personal calendar if null- Parameters:
event-Eventto createattendees- event attendees of typeEventAttendeeconferences- event conferences of typeEventConferencereminders-Listof preferred user reminders of typeEventReminderdateOptions-ListofEventDateOptionof corresponding eventremoteEvent-RemoteEventof synchronized event by user to remote connectorsendInvitation- whether send invitation to attendees or notuserIdentityId- userIdentityidentifier- Returns:
- Created
Eventwith technichal identifier, or the date of the series updated - Throws:
IllegalAccessException- when user is not allowed to create event on calendar, or creates an exceptional occurrence of a recurring event (a parent) that they aren't allowed to update, or saves a date of a series they may not update at that date, as an attendee whose rows start after itAgendaException- when the event attributes aren't valid, or when the parent event isn't foundIllegalArgumentException- with the message codeagenda.capacity.invalidwhen the capacity asked is negative; on a date of a series saved as an update of its row, the codes ofupdateEvent(Event, List, List, List, List, RemoteEvent, boolean, boolean, long)
-
createEvent
Event createEvent(Event event, List<EventAttendee> attendees, List<EventConference> conferences, List<EventReminder> reminders, List<EventDateOption> dateOptions, RemoteEvent remoteEvent, boolean sendInvitation, boolean confirmClose, long userIdentityId) throws IllegalAccessException, AgendaException Creates an event, ascreateEvent(Event, List, List, List, List, RemoteEvent, boolean, long)does, once the user has confirmed closing it when the save closes a date of a series whose waiting list it would confirm.One of a series' dates is saved as an update of its row, the row being created first as the series' copy at that date when it has none: its attendees keep their answers, their seats and their places on the waiting list, as on a date that already has its row, unless the save changes the date's times. Named by no attendee, the date keeps the ones the series has there. A date that has no row yet and that its series does not give, or that belongs to a series with several dates a day, is created as a new event instead.
- Parameters:
event-Eventto createattendees- event attendees of typeEventAttendeeconferences- event conferences of typeEventConferencereminders-Listof preferred user reminders of typeEventReminderdateOptions-ListofEventDateOptionof corresponding eventremoteEvent-RemoteEventof synchronized event by user to remote connectorsendInvitation- whether send invitation to attendees or notconfirmClose- whether the user confirmed that closing the date removes its capacity limit and confirms its waiting listuserIdentityId- userIdentityidentifier- Returns:
- Created
Eventwith technichal identifier, or the date of the series updated - Throws:
IllegalAccessException- when user is not allowed to create event on calendar, or creates an exceptional occurrence of a recurring event (a parent) that they aren't allowed to update, or saves a date of a series they may not update at that date, as an attendee whose rows start after itAgendaException- when the event attributes aren't valid, or when the parent event isn't foundIllegalArgumentException- with the message codeagenda.capacity.invalidwhen the capacity asked is negative; on a date of a series saved as an update of its row, the codes ofupdateEvent(Event, List, List, List, List, RemoteEvent, boolean, boolean, long),agenda.capacity.closeNeedsConfirmationamong them when the save closes the date with a waiting list without confirmClose
-
updateEvent
default Event updateEvent(Event event, List<EventAttendee> attendees, List<EventConference> conferences, List<EventReminder> reminders, List<EventDateOption> dateOptions, RemoteEvent remoteEvent, boolean sendInvitation, long userIdentityId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException, AgendaException Updates an existing event in-place when the user is owner of parentCalendar, else this will duplicate the event and add it into his personal calendar- Parameters:
event-Eventto createattendees- event attendees of typeEventAttendeeconferences- event conferences of typeEventConferencereminders-Listof preferred user reminders of typeEventReminderdateOptions-ListofEventDateOptionof corresponding eventremoteEvent-RemoteEventof synchronized event by user to remote connectorsendInvitation- whether re-send invitation to attendees or notuserIdentityId- userIdentityidentifier- Returns:
- Updated
Event - Throws:
IllegalAccessException- when user is not allowed to update event, or moves it to another calendar in which they can't create eventsorg.exoplatform.commons.exception.ObjectNotFoundException- when the event identified by its technical identifier is not foundAgendaException- when the event attributes aren't valid
-
updateEvent
Event updateEvent(Event event, List<EventAttendee> attendees, List<EventConference> conferences, List<EventReminder> reminders, List<EventDateOption> dateOptions, RemoteEvent remoteEvent, boolean sendInvitation, boolean confirmClose, long userIdentityId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException, AgendaException Updates an existing event, asupdateEvent(Event, List, List, List, List, RemoteEvent, boolean, long)does, once the user has confirmed closing it when the save closes an open event whose waiting list it would confirm.- Parameters:
event-Eventto updateattendees- event attendees of typeEventAttendeeconferences- event conferences of typeEventConferencereminders-Listof preferred user reminders of typeEventReminderdateOptions-ListofEventDateOptionof corresponding eventremoteEvent-RemoteEventof synchronized event by user to remote connectorsendInvitation- whether re-send invitation to attendees or notconfirmClose- whether the user confirmed that closing the event removes its capacity limit and confirms its waiting listuserIdentityId- userIdentityidentifier- Returns:
- Updated
Event - Throws:
IllegalAccessException- when user is not allowed to update event, or moves it to another calendar in which they can't create eventsorg.exoplatform.commons.exception.ObjectNotFoundException- when the event identified by its technical identifier is not foundAgendaException- when the event attributes aren't validIllegalArgumentException- with the message codeagenda.capacity.invalidoragenda.capacity.belowAcceptedwhen the capacity asked is refused, the latter aCapacityBelowAcceptedExceptionnaming the date of a series that blocks,agenda.capacity.closeNeedsConfirmationwhen the save closes an event with a waiting list without confirmClose
-
updateEventFields
default void updateEventFields(long eventId, Map<String, List<String>> fields, boolean updateAllOccurrences, boolean sendInvitation, long userIdentityId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException, AgendaException Updates a single field for a givenEventidentified by its technical identifier. When the event is of type 'recurrent', if parameter updateAllOccurrences is set to true, it will update the event field for all exceptional occurrences as well.- Parameters:
eventId- Event technical identifier to updatefields-Eventfields with field name as map key and field value as map valueupdateAllOccurrences- whether apply modification on all exceptional occurrences as well or notsendInvitation- whether re-send invitation to attendees or notuserIdentityId- userIdentityidentifier- Throws:
IllegalAccessException- when user is not allowed to update event, or moves it to another calendar in which they can't create eventsorg.exoplatform.commons.exception.ObjectNotFoundException- when the event identified by its technical identifier is not foundAgendaException- when the event attribute isn't valid
-
updateEventFields
void updateEventFields(long eventId, Map<String, List<String>> fields, boolean updateAllOccurrences, boolean sendInvitation, boolean confirmClose, long userIdentityId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException, AgendaException Updates fields of an event, asupdateEventFields(long, Map, boolean, boolean, long)does, once the user has confirmed closing it when the patch closes an open event whose waiting list it would confirm.- Parameters:
eventId- Event technical identifier to updatefields-Eventfields with field name as map key and field value as map valueupdateAllOccurrences- whether apply modification on all exceptional occurrences as well or notsendInvitation- whether re-send invitation to attendees or notconfirmClose- whether the user confirmed that closing the event removes its capacity limit and confirms its waiting listuserIdentityId- userIdentityidentifier- Throws:
IllegalAccessException- when user is not allowed to update event, or moves it to another calendar in which they can't create eventsorg.exoplatform.commons.exception.ObjectNotFoundException- when the event identified by its technical identifier is not foundAgendaException- when the event attribute isn't validIllegalArgumentException- with the message codeagenda.capacity.invalid,agenda.capacity.notAllowedoragenda.capacity.belowAcceptedwhen the capacity asked is refused, the latter aCapacityBelowAcceptedExceptionnaming the date of a series that blocks,agenda.capacity.closeNeedsConfirmationwhen the patch closes an event with a waiting list without confirmClose
-
deleteEventById
Event deleteEventById(long eventId, long userIdentityId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException Deletes an existing event- Parameters:
eventId- Event technical identifier to deleteuserIdentityId- userIdentityidentifier- Returns:
- deleted
Event - Throws:
IllegalAccessException- when user is not authorized to delete the eventorg.exoplatform.commons.exception.ObjectNotFoundException- when the event identified by its technical identifier is not found
-
canAccessEvent
Check whether user can access event or not.- Parameters:
event-Eventto check its permissionidentityId-Identitytechnical identifier- Returns:
- true if the user is a member of
CalendarownerIdentityor is anEventAttendee, else return false.
-
getEventAccess
How a user may read an event (EXO-90357): fully, only through a calendar share — in which case a private event is rendered as busy time — or not at all.canAccessEvent(Event, long)is this answer being anything butEventAccess.NONE.- Parameters:
event-Eventto checkidentityId-Identitytechnical identifier of the reader- Returns:
- the access, never null
-
canUpdateEvent
Check whether user can update or delete an event or not.- Parameters:
event-Eventto check its permissionuserIdentityId- userIdentityidentifier- Returns:
- true if the user is a manager of
CalendarownerIdentityor is anEventAttendee, else return false.
-
canCreateEvent
-
search
Search the list of events available with query for the currentUser- Parameters:
filter-AgendaEventSearchFilterused to filter the events- Returns:
ListofEventSearchResult
-
getEventOccurrencesInPeriod
List<Event> getEventOccurrencesInPeriod(Event recurrentEvent, ZonedDateTime start, ZonedDateTime end, ZoneId timezone, int limit) Retrieves occurrences, without exceptional, of a recurrent event in a given period of time. -
selectEventDateOption
void selectEventDateOption(long eventId, long dateOptionId, long userIdentityId) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException Choose a selectedEventDateOptionfor a givenEvent- Parameters:
eventId- technical identifier ofEventdateOptionId- Technical identifier ofEventDateOptionuserIdentityId- userIdentityidentifier- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException- whenEventis not found using identifier orEventDateOptionis not found using technical identifierIllegalAccessException- when user is not an allowed participant of the event who can modifies it
-
getEventDatePolls
List<Event> getEventDatePolls(EventFilter eventFilter, ZoneId userTimeZone, long attendeeId) throws IllegalAccessException Retrieves the list of pending date polls where the current user is invited- Parameters:
eventFilter- a filter used to define criteria to get list of objectsuserTimeZone- used to compute events dates switch given time zoneattendeeId- userIdentityidentifier- Returns:
Listdate pollEventfor user- Throws:
IllegalAccessException- when user is not an allowed to access one of ownerIds events
-
countEventDatePolls
Count pending date polls where the current user is invited- Parameters:
ownerIds-ListofIdentitytechnical identifierattendeeId- userIdentityidentifier- Returns:
Listdate pollEventfor user- Throws:
IllegalAccessException- when user is not an allowed to access one of ownerIds events
-
getPendingEvents
List<Event> getPendingEvents(List<Long> ownerIds, long userIdentityId, ZoneId userTimeZone, int offset, int limit) throws Exception Retrieve pending events that the selected user didn't answered yet- Parameters:
ownerIds-ListofIdentitytechnical identifieruserIdentityId- userIdentityidentifieruserTimeZone- User time zoneoffset- offset of the events to retrievelimit- Limit of events to retrieve- Returns:
ListofEvent- Throws:
IllegalAccessException- when user is not an allowed to access one of ownerIds eventsException
-
countPendingEvents
Count pending events that the selected user didn't answered yet- Parameters:
ownerIds-ListofIdentitytechnical identifieruserIdentityId- userIdentityidentifier- Returns:
- pending events count
- Throws:
IllegalAccessException- when user is not an allowed to access one of ownerIds eventsException
-