Class AgendaEventAttendeeRest

java.lang.Object
org.exoplatform.agenda.rest.AgendaEventAttendeeRest

@RestController public class AgendaEventAttendeeRest extends Object
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

    Constructors
    Constructor
    Description
    AgendaEventAttendeeRest(org.exoplatform.agenda.service.AgendaEventAttendeeService agendaEventAttendeeService, org.exoplatform.social.core.manager.IdentityManager identityManager)
    Builds the resource.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.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).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 export
      identityManager - 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 request
      eventId - technical identifier of the event, of a series, or of the row of one of its dates
      occurrenceId - occurrence id of a date of the series, RFC 3339
      timeZoneId - 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 request
      email - 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