Enum Class ActorAuthority
- All Implemented Interfaces:
Serializable, Comparable<ActorAuthority>, Constable
Represents the level of privilege granted to an Actor.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionActors with this authority are permitted to act in the name of lower-authority Actors, e.g.Highest level of trust and permissions.Actors with this authority are generally preferred inReservationconflicts.Actors with this authority have no privileges. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull Optional<ActorAuthority> Converts the given label to the matching enum value.static ActorAuthorityReturns the enum constant of this class with the specified name.static ActorAuthority[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface Comparable
compareTo
-
Enum Constant Details
-
IT_ADMINISTRATION
Highest level of trust and permissions. Actors with this authority are permitted to use all features of the application. -
FACULTY_ADMINISTRATION
Actors with this authority are permitted to act in the name of lower-authority Actors, e.g. create, modify, delete Reservations for them or even create new Actors (with a lower authority). -
PRIVILEGED
Actors with this authority are generally preferred inReservationconflicts. Other than that, there are no privileges. -
REGULAR
Actors with this authority have no privileges.
-
-
Field Details
-
name
-
-
Constructor Details
-
ActorAuthority
-
-
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
-
ofName
Converts the given label to the matching enum value.- Parameters:
name- AStringsuspected to be an enum value.- Returns:
- The corresponding enum value if the given label matches one.
-