Package com.ntu.fdae.group1.bto.enums
Enum OfficerRegStatus
- All Implemented Interfaces:
Serializable
,Comparable<OfficerRegStatus>
,java.lang.constant.Constable
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:- PENDING - Initial state when an officer submits registration
- APPROVED or REJECTED - Final state after admin review
Each enum value stores a user-friendly display string that can be used in the UI.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionGets the user-friendly display string for this registration status.toString()
Returns the user-friendly display string for this registration status.static OfficerRegStatus
Returns the enum constant of this type with the specified name.static OfficerRegStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PENDING
Represents a registration request that is awaiting review. Officers with pending status have limited system access. -
APPROVED
Represents a registration request that has been approved by an administrator. Officers with approved status have full access to officer functions. -
REJECTED
Represents a registration request that has been rejected by an administrator. Officers with rejected status cannot access officer functions.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getStatus
Gets the user-friendly display string for this registration status.- Returns:
- The display string representation of this status
-
toString
Returns the user-friendly display string for this registration status.- Overrides:
toString
in classEnum<OfficerRegStatus>
- Returns:
- The display string representation of this status
-