Module sc2002_fypms
Package controllers

Class SupervisorController

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void createProjects()
      Creates new projects based on user input and adds them to the supervisor's project list.
      protected void displayRequests​(java.util.ArrayList<Request> requests)
      Helper method to display the request information for a list of requests.
      protected void requestStudentTransfer()
      Allows the supervisor to initiate a student transfer request by selecting a project and a replacement supervisor.
      void start()
      Starts the supervisor controller and displays the main menu for the supervisor.
      protected void updateProject()
      Allows the supervisor to update the title of a selected project.
      protected void viewApproveRejectPendingRequest()
      Displays a list of pending requests for the supervisor to approve or reject.
      protected void viewProjects()
      Displays the submitted projects of the supervisor.
      protected void viewRequests()
      Displays the incoming and outgoing requests for the supervisor.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • sc

        private static final java.util.Scanner sc
        Scanner object to get input from the user.
      • projectSupervisorService

        protected static final IProjectSupervisorService projectSupervisorService
        The project supervisor service used to perform operations on projects.
      • requestSupervisorService

        protected static final IRequestSupervisorService requestSupervisorService
        The request supervisor service used to perform operations on requests.
      • projectView

        protected static IProjectView projectView
        The project view used to display project information.
      • requestView

        protected static IRequestView requestView
        The request view used to display request information.
    • Constructor Detail

      • SupervisorController

        public SupervisorController()
        Constructs an instance of the SupervisorController class.
    • Method Detail

      • start

        public void start()
        Starts the supervisor controller and displays the main menu for the supervisor. The user can interact with the menu to perform actions like changing password, creating projects, updating projects, viewing projects, and handling requests.
      • createProjects

        protected void createProjects()
        Creates new projects based on user input and adds them to the supervisor's project list.
      • updateProject

        protected void updateProject()
        Allows the supervisor to update the title of a selected project.
      • viewProjects

        protected void viewProjects()
        Displays the submitted projects of the supervisor.
      • viewApproveRejectPendingRequest

        protected void viewApproveRejectPendingRequest()
        Displays a list of pending requests for the supervisor to approve or reject.
      • viewRequests

        protected void viewRequests()
        Displays the incoming and outgoing requests for the supervisor.
      • displayRequests

        protected void displayRequests​(java.util.ArrayList<Request> requests)
        Helper method to display the request information for a list of requests.
        Parameters:
        requests - an ArrayList of Request objects to be displayed
      • requestStudentTransfer

        protected void requestStudentTransfer()
        Allows the supervisor to initiate a student transfer request by selecting a project and a replacement supervisor.