public interface AgendaEventAttendeeService
| Modifier and Type | Method and Description |
|---|---|
org.exoplatform.social.core.identity.model.Identity |
decryptUserIdentity(long eventId,
String token,
EventAttendeeResponse response)
Reads token content and retrieves user Social Identity from email or
username contained in token
|
String |
generateEncryptedToken(long eventId,
String email)
Generates a token that will be used to authenticate user when requesting
REST API in anonymous mode
|
String |
generateEncryptedToken(long eventId,
String emailOrUsername,
EventAttendeeResponse response)
Generates a token that will be used to authenticate user when requesting
REST API in anonymous mode.
|
List<EventAttendee> |
getEventAttendees(long eventId)
Return the list of attendees of an event
|
EventAttendeeResponse |
getEventResponse(long eventId,
long identityId)
Retrieves the event response of a user.
|
boolean |
isEventAttendee(long eventId,
long identityId)
Checks whether the user is an attendee of the event or not
|
void |
saveEventAttendees(Event event,
List<EventAttendee> attendees,
long creatorIdentityId,
boolean sendInvitations,
boolean resetResponses,
EventModificationType eventModificationType) |
void |
sendEventResponse(long eventId,
long identityId,
EventAttendeeResponse response) |
void |
sendInvitations(Event event,
List<EventAttendee> eventAttendees,
EventModificationType eventModificationType)
Sends an invitation to event attendees of type: user, space or external
user.
|
List<EventAttendee> getEventAttendees(long eventId)
eventId - agenda Event identifierList of EventAttendeevoid sendInvitations(Event event, List<EventAttendee> eventAttendees, EventModificationType eventModificationType)
event - EventeventAttendees - List of EventAttendee of the eventeventModificationType - flag to indicate if event is added, updated or
deletedvoid saveEventAttendees(Event event, List<EventAttendee> attendees, long creatorIdentityId, boolean sendInvitations, boolean resetResponses, EventModificationType eventModificationType)
event - Event to attach attendeesattendees - List of EventAttendee to save for eventcreatorIdentityId - technical identifier if Identity updating
eventsendInvitations - whether send invitations to other attendees or notresetResponses - whether reset attendees responses or not to default
EventAttendeeResponse.NEEDS_ACTIONeventModificationType - flag to indicate if event is added, updated or
deletedString generateEncryptedToken(long eventId, String email)
eventId - Event technical identifieremail - User emailString generateEncryptedToken(long eventId, String emailOrUsername, EventAttendeeResponse response)
eventId - Event technical identifieremailOrUsername - User name or emailresponse - EventAttendeeResponse value for chosen answerorg.exoplatform.social.core.identity.model.Identity decryptUserIdentity(long eventId,
String token,
EventAttendeeResponse response)
throws IllegalAccessException
token - encrypted tokeneventId - Event technical identifierresponse - EventAttendeeResponse value for chosen answerIdentity of userIllegalAccessException - when the token has bad formatEventAttendeeResponse getEventResponse(long eventId, long identityId) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
EventAttendeeResponse.NEEDS_ACTION will be
retrieved.eventId - Technical identifier of EventidentityId - Identity technical identifier of userEventAttendeeResponse, no null value is returnedorg.exoplatform.commons.exception.ObjectNotFoundException - when event with provided identifier doesn't
existsIllegalAccessException - when user is not an invitee of the eventvoid sendEventResponse(long eventId,
long identityId,
EventAttendeeResponse response)
throws org.exoplatform.commons.exception.ObjectNotFoundException,
IllegalAccessException
eventId - Technical identifier of EventidentityId - Identity technical identifier of userresponse - User response of type EventAttendeeResponse to the
event. The value EventAttendeeResponse.NEEDS_ACTION isn't
allowed.org.exoplatform.commons.exception.ObjectNotFoundException - when event with provided identifier doesn't
existsIllegalAccessException - when user is not an invitee of the eventboolean isEventAttendee(long eventId,
long identityId)
eventId - Technical identifier of EventidentityId - user nameCopyright © 2003–2021 eXo Platform SAS. All rights reserved.