Enum OfficerRegStatus

java.lang.Object
java.lang.Enum<OfficerRegStatus>
com.ntu.fdae.group1.bto.enums.OfficerRegStatus
All Implemented Interfaces:
Serializable, Comparable<OfficerRegStatus>, java.lang.constant.Constable

public enum OfficerRegStatus extends Enum<OfficerRegStatus>
Defines the possible registration statuses for HDB officers in the BTO system.

This enum tracks the lifecycle of an officer's registration from submission to approval or rejection. Each status represents a stage in the registration process and determines what system functions the officer can access.

The typical flow is:
  1. PENDING - Initial state when an officer submits registration
  2. APPROVED or REJECTED - Final state after admin review

Each enum value stores a user-friendly display string that can be used in the UI.

  • Enum Constant Details

    • PENDING

      public static final OfficerRegStatus PENDING
      Represents a registration request that is awaiting review. Officers with pending status have limited system access.
    • APPROVED

      public static final OfficerRegStatus APPROVED
      Represents a registration request that has been approved by an administrator. Officers with approved status have full access to officer functions.
    • REJECTED

      public static final OfficerRegStatus REJECTED
      Represents a registration request that has been rejected by an administrator. Officers with rejected status cannot access officer functions.
  • Method Details

    • values

      public static OfficerRegStatus[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static OfficerRegStatus valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getStatus

      public String getStatus()
      Gets the user-friendly display string for this registration status.
      Returns:
      The display string representation of this status
    • toString

      public String toString()
      Returns the user-friendly display string for this registration status.
      Overrides:
      toString in class Enum<OfficerRegStatus>
      Returns:
      The display string representation of this status