Package Controllers.AppManagers
Class AdminAppMgr
java.lang.Object
Common.AppManager
Controllers.AppManagers.AdminAppMgr
The
AdminAppMgr
class is responsible for managing the administrative
operations of the hospital system. It provides functionalities for managing
hospital staff, viewing appointment details, and handling inventory operations.-
Field Summary
Fields inherited from class Common.AppManager
account, accountDatabase, accountManager, appointmentOutcomeDatabase, doctorSchedule, inventoryDatabase, inventoryRequestDatabase, medicalRecordDatabase, role, updateDetailsPage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Creates instances of various managers used in the application, including account management, staff management, inventory management, and appointment outcome management.protected void
Creates instances of various pages used in the application, including pages for managing staff, updating details, viewing appointments, and managing inventory.void
Displays the main administrative menu and handles user selections until the user chooses to log out.protected void
Loads the necessary databases for managing accounts, inventory, medical records, and appointment outcomes.protected void
Saves all changes made to the databases back to their respective CSV files.Methods inherited from class Common.AppManager
getRole, logIn, logOut, settings
-
Constructor Details
-
AdminAppMgr
public AdminAppMgr()
-
-
Method Details
-
displayMainPage
public void displayMainPage()Displays the main administrative menu and handles user selections until the user chooses to log out.- Specified by:
displayMainPage
in classAppManager
-
loadDatabases
protected void loadDatabases()Loads the necessary databases for managing accounts, inventory, medical records, and appointment outcomes.- Specified by:
loadDatabases
in classAppManager
-
saveDatabases
protected void saveDatabases()Saves all changes made to the databases back to their respective CSV files.- Specified by:
saveDatabases
in classAppManager
-
createManagers
protected void createManagers()Creates instances of various managers used in the application, including account management, staff management, inventory management, and appointment outcome management.- Specified by:
createManagers
in classAppManager
-
createPages
protected void createPages()Creates instances of various pages used in the application, including pages for managing staff, updating details, viewing appointments, and managing inventory.- Specified by:
createPages
in classAppManager
-