Class HDBStaff
java.lang.Object
com.ntu.fdae.group1.bto.models.user.User
com.ntu.fdae.group1.bto.models.user.HDBStaff
- Direct Known Subclasses:
HDBManager
,HDBOfficer
Abstract base class representing an HDB staff member in the BTO system.
This class serves as a common parent for different types of HDB staff roles, providing shared functionality and attributes for all HDB employees. It extends the base User class with functionality specific to staff members.
HDB staff members typically have access to administrative functions in the system that are not available to regular applicants, with specific permissions determined by concrete subclasses.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHDBStaff
(String nric, String passwordHash, String name, int age, MaritalStatus maritalStatus) Constructs a new HDB staff member with the specified details. -
Method Summary
Methods inherited from class com.ntu.fdae.group1.bto.models.user.User
getAge, getMaritalStatus, getName, getNric, getPasswordHash, getRole, updatePasswordHash
-
Constructor Details
-
HDBStaff
public HDBStaff(String nric, String passwordHash, String name, int age, MaritalStatus maritalStatus) Constructs a new HDB staff member with the specified details.- Parameters:
nric
- The NRIC (National Registration Identity Card) number of the staff memberpasswordHash
- The hashed password for authenticationname
- The full name of the staff memberage
- The age of the staff membermaritalStatus
- The marital status of the staff member
-