Package inha.dayoook_e.user.domain.enums
Enum Class Permission
- All Implemented Interfaces:
Serializable
,Comparable<Permission>
,Constable
Permission 열거형은 사용자 권한을 정의.
각 권한은 특정 작업에 대한 액세스 권한을 나타냄.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic Permission
Returns the enum constant of this class with the specified name.static Permission[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADMIN_READ
-
ADMIN_UPDATE
-
ADMIN_CREATE
-
ADMIN_DELETE
-
TUTOR_READ
-
TUTOR_UPDATE
-
TUTOR_CREATE
-
TUTOR_DELETE
-
-
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
-