Class AdminPage

java.lang.Object
io.levysworks.endpoints.pages.AdminPage

@Path("/management/admin") public class AdminPage extends Object
Endpoint serving the admin interface, including the dashboard, user profiles, and user creation form.
  • Constructor Details

    • AdminPage

      public AdminPage()
  • Method Details

    • admin

      @GET @Produces("text/html") public jakarta.ws.rs.core.Response admin() throws SQLException
      Handles GET requests to the admin page.

      Renders system-wide admin dashboard with statistics, user/request/key data, and logs.

      Returns:
      HTML response with rendered admin view
      Throws:
      SQLException - if a database access error occurs
    • handleUserProfileRequest

      @GET @Path("/user/{query_user}") @Produces("text/html") public jakarta.ws.rs.core.Response handleUserProfileRequest(@PathParam("query_user") String query_user) throws SQLException
      Handles GET requests for an individual user's profile page.

      Retrieves user data and associated keys by UUID. If the user is not found, renders a not-found page.

      Parameters:
      query_user - the UUID of the user
      Returns:
      rendered HTML response with the user profile or not-found page
      Throws:
      SQLException - if a database access error occurs
    • handleCreateUserAction

      @GET @Path("/create") @Produces("text/html") public jakarta.ws.rs.core.Response handleCreateUserAction() throws SQLException
      Handles GET requests to the create page.

      Renders user creation form.

      Returns:
      HTML response with rendered user creation form view
      Throws:
      SQLException - if a database access error occurs