Enum Class AccessRightAttributeName

java.lang.Object
java.lang.Enum<AccessRightAttributeName>
net.commuty.parking.model.AccessRightAttributeName
All Implemented Interfaces:
Serializable, Comparable<AccessRightAttributeName>, Constable

public enum AccessRightAttributeName extends Enum<AccessRightAttributeName>
Extra attributes that can be retrieved when requesting accesses.
  • Enum Constant Details

    • REASON

      public static final AccessRightAttributeName REASON
      An AccessRightReason indicating why an access was created.
    • ID

      public static final AccessRightAttributeName ID
      A unique UUID for each access.
    • PARKING_SPOT_ID

      public static final AccessRightAttributeName PARKING_SPOT_ID
      When an access right is granted for a specific parking spot, this value represents its unique identifier (UUID). It is null otherwise. An access right may have a parking spot, according to its reason. Access rights with these reasons never owns a parking spot: none, weekendAccess, spotReleased Access rights with these reasons may have a parking spot: spotReceived, permanentAccess, passenger
    • PARKING_SPOT_NAME

      public static final AccessRightAttributeName PARKING_SPOT_NAME
      This name is used for management.
    • PARKING_SPOT_DISPLAY_NAME

      public static final AccessRightAttributeName PARKING_SPOT_DISPLAY_NAME
      This display name is used for end-user. It can be the parkingSiteNameparkingSiteName itself or another name (e.g. a zone name, a level name, etc).
    • IS_VISITOR

      public static final AccessRightAttributeName IS_VISITOR
      true when this access right is granted for a visitor. false otherwise.
    • SUBJECT_ID

      public static final AccessRightAttributeName SUBJECT_ID
      A unique identifier identifying the actual "subject" whose the access right belongs to. This can be the ID of a user, a visitor or an access exception.
    • SUBJECT_LABEL

      public static final AccessRightAttributeName SUBJECT_LABEL
      A label describing the "subject" whose the access right belongs to. This is usually the full name of a user, a visitor or an access exception.
  • Method Details

    • values

      public static AccessRightAttributeName[] 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 AccessRightAttributeName 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
    • getAttributeName

      public String getAttributeName()