Enum Class ApprovalService.State

java.lang.Object
java.lang.Enum<ApprovalService.State>
zeroecho.pki.server.ApprovalService.State
All Implemented Interfaces:
Serializable, Comparable<ApprovalService.State>, Constable
Enclosing class:
ApprovalService

public static enum ApprovalService.State extends Enum<ApprovalService.State>
Approval lifecycle states.
  • Enum Constant Details

    • PENDING

      public static final ApprovalService.State PENDING
      Awaiting sufficient attributable decisions.
    • APPROVED

      public static final ApprovalService.State APPROVED
      Approval threshold was satisfied.
    • REJECTED

      public static final ApprovalService.State REJECTED
      An eligible approver rejected the request.
    • EXPIRED

      public static final ApprovalService.State EXPIRED
      The request exceeded its approval lifetime.
    • CANCELLED

      public static final ApprovalService.State CANCELLED
      The requester cancelled the request.
    • EXECUTING

      public static final ApprovalService.State EXECUTING
      The approved operation is durably claimed for execution.
    • EXECUTED

      public static final ApprovalService.State EXECUTED
      Execution completed and its safe classification is linked.
  • Method Details

    • values

      public static ApprovalService.State[] 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 ApprovalService.State 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
    • code

      public int code()
      Returns the stable persistence code.
      Returns:
      stable persistence code
    • fromCode

      public static ApprovalService.State fromCode(int code)
      Resolves a stable persistence code.
      Parameters:
      code - persisted approval-state code
      Returns:
      corresponding approval state