Class Applicant

java.lang.Object
com.ntu.fdae.group1.bto.models.user.User
com.ntu.fdae.group1.bto.models.user.Applicant

public class Applicant extends User
Represents an Applicant in the BTO system.

Applicants are users who can apply for BTO housing projects. They represent citizens or residents who are seeking to purchase a BTO flat. This class extends the base User class with functionality specific to housing applicants.

Applicants can:
  • Browse available BTO projects
  • Submit applications for housing units
  • Check application status
  • Submit enquiries about projects or applications
See Also:
  • Constructor Details

    • Applicant

      public Applicant(String nric, String passwordHash, String name, int age, MaritalStatus maritalStatus)
      Constructs a new Applicant with the specified details.
      Parameters:
      nric - The NRIC (National Registration Identity Card) number of the applicant
      passwordHash - The hashed password for authentication
      name - The full name of the applicant
      age - The age of the applicant
      maritalStatus - The marital status of the applicant, which may affect eligibility for certain flat types
  • Method Details

    • getRole

      public UserRole getRole()
      Gets the user role of this Applicant.

      This implementation returns the APPLICANT role, which grants access to housing application functions but not administrative capabilities.

      Specified by:
      getRole in class User
      Returns:
      The APPLICANT user role