Sequence Diagram ‐ Private Event Creation - bounswe/bounswe2026group11 GitHub Wiki
Private Event Creation – Happy Path Flow
-
Host logs in
The host provides login credentials to the
LoginService. -
Session creation
LoginServicecallsSessionService.createSession(userId)to create a new session for the authenticated user. The session token (or auth token) is returned to the host. -
Host creates a private event
The host calls
EventService.createEvent(eventDetails)to create a new event. -
Session validation
EventServiceverifies the user's session usingSessionService.validateSession(authToken)to ensure the request is authorized. -
Event persistence
EventServicestores the new event in the database. The database returns the generatedeventId. -
Event creation confirmation
EventServicereturns a success response to the host indicating that the event has been created successfully. -
Host invites users
The host calls
EventService.inviteUsers(eventId, usernames)to invite specific users to the private event. -
Invitation creation and storage
For each provided username:
- An
Invitationobject is created. EventService.saveInvitation(invitation)stores the invitation in the database.
- An
-
Notification request creation
After all invitations are created,
EventService.createInvitationNotification(invitations)generates aNotificationRequestcontaining the list of invited users. -
Notification dispatch
EventServicesends the notification request toNotificationService.sendNotification(request). -
Notification storage
NotificationServicesaves the generatedNotificationobjects in the database. -
Guest notification delivery
NotificationServicesends notifications (e.g., push notification or email) to all invited guests listed in thereceiverList. -
Completion response
EventServicereturns a success response to the host indicating that invitations have been sent successfully.