Package org.exoplatform.agenda.rest
Class AgendaEventAttendeeRest
java.lang.Object
org.exoplatform.agenda.rest.AgendaEventAttendeeRest
Serves the participant list of an event as a CSV file, and the platform
user an address typed in the participants drawer belongs to.
No rule lives here. Which list, who may export it and what each row
holds are AgendaEventAttendeeService's; this resource reads the
user from the session and their language from their settings, maps the
service's refusals to statuses and writes the file's headers. Neither the
file nor a refusal is ever stored by a cache: the file carries profile data.
A refusal writes its own body, {"message": "<code>"}, as
AgendaCalendarLinkRest does.
-
Constructor Summary
ConstructorsConstructorDescriptionAgendaEventAttendeeRest(org.exoplatform.agenda.service.AgendaEventAttendeeService agendaEventAttendeeService, org.exoplatform.social.core.manager.IdentityManager identityManager) Builds the resource. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Object> exportEventAttendees(jakarta.servlet.http.HttpServletRequest request, long eventId, String occurrenceId, String timeZoneId) Exports the participant list of one date of an event, as the participants drawer shows it, for a user allowed to update the event.org.springframework.http.ResponseEntity<Object> getAttendeeUserByEmail(jakarta.servlet.http.HttpServletRequest request, String email) Answers the platform user an e-mail address typed in the participants drawer belongs to, whom the drawer then invites as themselves, never as a guest from outside the platform (eXIP 7.3.0.21, US06).
-
Constructor Details
-
AgendaEventAttendeeRest
@Autowired public AgendaEventAttendeeRest(org.exoplatform.agenda.service.AgendaEventAttendeeService agendaEventAttendeeService, org.exoplatform.social.core.manager.IdentityManager identityManager) Builds the resource.- Parameters:
agendaEventAttendeeService- holder of every rule of the exportidentityManager- resolves the user of the session
-
-
Method Details
-
exportEventAttendees
@GetMapping("events/{eventId}/attendees/export") @Secured("users") public org.springframework.http.ResponseEntity<Object> exportEventAttendees(jakarta.servlet.http.HttpServletRequest request, @PathVariable("eventId") long eventId, @RequestParam(name="occurrenceId",required=false) String occurrenceId, @RequestParam(name="timeZoneId",required=false) String timeZoneId) Exports the participant list of one date of an event, as the participants drawer shows it, for a user allowed to update the event.- Parameters:
request- the authenticated requesteventId- technical identifier of the event, of a series, or of the row of one of its datesoccurrenceId- occurrence id of a date of the series, RFC 3339timeZoneId- the user's zone, which dates the file name- Returns:
- the CSV file, or a refusal
-
getAttendeeUserByEmail
@GetMapping("events/attendees/user") @Secured("users") public org.springframework.http.ResponseEntity<Object> getAttendeeUserByEmail(jakarta.servlet.http.HttpServletRequest request, @RequestParam(name="email",required=false) String email) Answers the platform user an e-mail address typed in the participants drawer belongs to, whom the drawer then invites as themselves, never as a guest from outside the platform (eXIP 7.3.0.21, US06). Which user, and whether the address may be told at all, is the service's rule. Neither answer is stored by a cache: who owns an address is answered to a signed-in user, and only while its owner shows it.- Parameters:
request- the authenticated requestemail- the address typed- Returns:
- the user, no content when the address resolves to none or the caller is an external user, or a refusal when none is given or the user directory cannot be read
-