Package Controllers.AOManagers
Class AdminAOM
java.lang.Object
Common.AppointmentOutcomeManager
Controllers.AOManagers.AdminAOM
The
AdminAOM
class serves as the Appointment Outcome Manager for administrators.
It provides functionalities to view appointment outcomes from the appointment outcome database.-
Field Summary
Fields inherited from class Common.AppointmentOutcomeManager
database
-
Constructor Summary
ConstructorsConstructorDescriptionAdminAOM
(AppointmentOutcomeDatabase database) Constructs anAdminAOM
instance with the specified appointment outcome database. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Views all appointment outcomes in the database.boolean
viewOutcome
(String appointmentId) Views an appointment outcome by its unique identifier.Methods inherited from class Common.AppointmentOutcomeManager
addOutcome, getAllOutcomes, getOutcome, removeOutcome
-
Constructor Details
-
AdminAOM
Constructs anAdminAOM
instance with the specified appointment outcome database.- Parameters:
database
- theAppointmentOutcomeDatabase
used to manage appointment outcomes
-
-
Method Details
-
viewOutcome
Views an appointment outcome by its unique identifier.- Parameters:
appointmentId
- the unique identifier of the appointment whose outcome is to be viewed- Returns:
- true if the outcome was found and printed; false if no outcome exists for the given ID
-
viewAllOutcome
public boolean viewAllOutcome()Views all appointment outcomes in the database.- Returns:
- true if outcomes were found and printed; false if no outcomes exist
-