Enum Class PermissionStatus

java.lang.Object
java.lang.Enum<PermissionStatus>
energy.eddie.aiida.models.permission.PermissionStatus
All Implemented Interfaces:
Serializable, Comparable<PermissionStatus>, Constable

public enum PermissionStatus extends Enum<PermissionStatus>
Static state of a permission. Permissions are only persisted once the user accepted them, so every permission starts as ACCEPTED and ends in one of the final states. The dynamic connection state of an accepted permission is described by ConnectionStatus.
  • Enum Constant Details

    • ACCEPTED

      public static final PermissionStatus ACCEPTED
      The user accepted the permission request.
    • REVOKED

      public static final PermissionStatus REVOKED
      The user revoked the permission.
    • TERMINATED

      public static final PermissionStatus TERMINATED
      The permission was terminated by the eligible party.
    • FULFILLED

      public static final PermissionStatus FULFILLED
      The expiration time of the permission was reached.
  • Method Details

    • values

      public static PermissionStatus[] 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 PermissionStatus 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
    • isAccepted

      public boolean isAccepted()
      true if the permission is ACCEPTED.