code: @GET
      @Path("/wardendashboard/{username}")
      @Produces(MediaType.APPLICATION_JSON)
      @Description("Returns the warden dashboard for a user.")
      public DashboardDto getWardenDashboard(@Context HttpServletRequest req,
          @PathParam("username") String userName) {
          if (userName == null || userName.isEmpty()) {
              throw new IllegalArgumentException("User name cannot be null or empty.");
          }
          validatePrivilegedUser(req);
  
          PrincipalUser user = userService.findUserByUsername(userName);
  
          if (user == null) {
              throw new WebApplicationException("User does not exist.", Status.NOT_FOUND);
          }
          return DashboardDto.transformToDto(managementService.getWardenDashboard(user));
      }
docs: Returns the warden dashboard for the user.
  
  @param   req       The HTTP request.
  @param   userName  The user name. Cannot be null or empty.
  
  @return  The dashboard object.
  
  @throws  IllegalArgumentException  Throws IllegalArgument exception when the input is not valid.
  @throws  WebApplicationException   Throws this exception if the user does not exist or the user is not authorized to carry out this operation.