Package net.commuty.parking.model
Enum Class AccessRightAttributeName
- All Implemented Interfaces:
Serializable,Comparable<AccessRightAttributeName>,Constable
Extra attributes that can be retrieved when requesting accesses.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA uniqueUUIDfor each access.truewhen this access right is granted for a visitor.This display name is used for end-user.When an access right is granted for a specific parking spot, this value represents its unique identifier (UUID).This name is used for management.AnAccessRightReasonindicating why an access was created.A unique identifier identifying the actual "subject" whose the access right belongs to.A label describing the "subject" whose the access right belongs to. -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessRightAttributeNameReturns the enum constant of this class with the specified name.static AccessRightAttributeName[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REASON
AnAccessRightReasonindicating why an access was created. -
ID
A uniqueUUIDfor each access. -
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,spotReleasedAccess rights with these reasons may have a parking spot:spotReceived,permanentAccess,passenger -
PARKING_SPOT_NAME
This name is used for management. -
PARKING_SPOT_DISPLAY_NAME
This display name is used for end-user. It can be theparkingSiteNameparkingSiteName itself or another name (e.g. a zone name, a level name, etc). -
IS_VISITOR
truewhen this access right is granted for a visitor.falseotherwise. -
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
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
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
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 nameNullPointerException- if the argument is null
-
getAttributeName
-