Enum Class RegistrationStatus

java.lang.Object
java.lang.Enum<RegistrationStatus>
entity.user.RegistrationStatus
All Implemented Interfaces:
Serializable, Comparable<RegistrationStatus>, Constable

public enum RegistrationStatus extends Enum<RegistrationStatus>
Represents the status of an Officer's registration request for a specific housing project. Defines the possible states during the registration approval process.
  • Enum Constant Details

    • PENDING

      public static final RegistrationStatus PENDING
      The officer has submitted a request to register for the project, and it is awaiting review by a manager.
    • APPROVED

      public static final RegistrationStatus APPROVED
      The officer's registration request has been approved by a manager; the officer is assigned to the project.
    • REJECTED

      public static final RegistrationStatus REJECTED
      The officer's registration request has been rejected by a manager.
  • Method Details

    • values

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

      public static RegistrationStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • coloredString

      public String coloredString()
      Returns a string representation of the status, formatted with ANSI escape codes for colored console output.
      • PENDING: Yellow
      • APPROVED: Green
      • REJECTED: Red
      Note: Color display depends on the console supporting ANSI escape codes.
      Returns:
      A colorized string representation of the enum constant name.