Healthcare Portal
 
Loading...
Searching...
No Matches
com.hospital.portal.model.Admin Class Reference
Inheritance diagram for com.hospital.portal.model.Admin:
com.hospital.portal.model.User

Public Member Functions

 Admin ()
 
 Admin (String dni, String name, String surname, LocalDate birthDate, String gender, String phone, String mail, String password, String workerId)
 
String getWorkerId ()
 
void setWorkerId (String workerId)
 
String toString ()
 
- Public Member Functions inherited from com.hospital.portal.model.User
 User ()
 
 User (String dni, String name, String surname, LocalDate birthDate, String gender, String phone, String mail, String password)
 
String getDni ()
 
void setDni (String dni)
 
String getName ()
 
void setName (String name)
 
String getSurname ()
 
void setSurname (String surname)
 
LocalDate getBirthDate ()
 
void setBirthDate (LocalDate birthDate)
 
String getGender ()
 
void setGender (String gender)
 
String getPhone ()
 
void setPhone (String phone)
 
String getEmail ()
 
void setEmail (String mail)
 
String getPassword ()
 
void setPassword (String password)
 

Additional Inherited Members

- Public Attributes inherited from com.hospital.portal.model.User
String dni
 

Detailed Description

Represents an administrator user in the hospital portal system. Extends the User class and adds a unique worker ID.

This class is mapped to the "admins" table in the database.

Constructor & Destructor Documentation

◆ Admin() [1/2]

com.hospital.portal.model.Admin.Admin ( )
inline

Default constructor for JPA.

◆ Admin() [2/2]

com.hospital.portal.model.Admin.Admin ( String  dni,
String  name,
String  surname,
LocalDate  birthDate,
String  gender,
String  phone,
String  mail,
String  password,
String  workerId 
)
inline

Constructs an Admin with the specified details.

Parameters
dnithe DNI of the admin
namethe name of the admin
surnamethe surname of the admin
birthDatethe birth date of the admin
genderthe gender of the admin
phonethe phone number of the admin
mailthe email address of the admin
passwordthe password of the admin
workerIdthe unique worker ID of the admin

Member Function Documentation

◆ getWorkerId()

String com.hospital.portal.model.Admin.getWorkerId ( )
inline

◆ setWorkerId()

void com.hospital.portal.model.Admin.setWorkerId ( String  workerId)
inline

◆ toString()

String com.hospital.portal.model.Admin.toString ( )
inline

Returns a string representation of the Admin, including the worker ID.

Returns
a string representation of the Admin

Reimplemented from com.hospital.portal.model.User.


The documentation for this class was generated from the following file: