Issue
- I want to get the list of users that accepted an invitation to an event (but programmatically, not by viewing the event on the UI)
Environment
- DXP 7.2
Resolution
- in the background, calendar events are called calendar bookings (so look for classes like CalendarBooking*, CalendarResource*. Java APIs might be also helpful)
- when a user invites other user to an event, for every invitation a new calendarbooking is created in the background
- and the invited users are handled as calendar resources
- here is a code snippet responsible for fetching invitees
https://github.com/liferay/liferay-portal/blob/master/modules/apps/calendar/calendar-web/src/main/java/com/liferay/calendar/web/internal/portlet/CalendarPortlet.java#L1286
- we can see here that the getChildCalendarBookings() reutrn the booking belonging to the invitations,
- and the getCalendarResources() method returns the invited users