Skip to content

Control

Fredrik Jonathan Marjoni edited this page Apr 23, 2026 · 3 revisions

AuthController

Controller responsible for authentication-related operations. {@link AppState}, {@link NavigationController} {@link UserService} to:

  • Sign-up a new user
  • Login in a user
  • Logout a user

DonationController

Controller responsible for donation-related operations. Coordinates between {@link AppState}, {@link DonationService} and {@link NavigationController} to:

  • Retrieve donation data for the current user
  • Process new donations
  • Handle navigation after donation completion

NavigationController

Controller responsible for handling navigation between different pages of the application. Coordinates between {@link AppState}, {@link AuthController}, {@link DonationController}, {@link OrganizationController} and the various views to manage page transitions and state updates.

  • Provides methods to navigate to the home page, login page, sign-up page, causes page,
  • organization page, donation page, payment complete page and user profile page. Each method updates the
  • top header and center content of the main application layout accordingly.

OrganizationController

Controller responsible for organization-related operations. Coordinates with {@link OrganizationService} to:

  • Retrieve organization information by ID
  • Retrieve all trusted organizations