Package com.easydesk.enums
Enum Class RoleEnum
- All Implemented Interfaces:
Entitiable<Integer,,EasyDeskRole> Serializable,Comparable<RoleEnum>,Constable
System 에서 사용하는 Role 을 id 로 정의한 enum.
- Version:
- $Revision$, $Date$
- Author:
- YounghoCho
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionGuest 성격의 role 들(Anonymous, Guest)을 구한다.getId()role id 를 구한다.id 에 해당하는 EasyDeskRole 을 구한다.getName()enum 이름을 CamelCase 로 변환한 role 이름을 구한다.booleanstatic RoleEnumReturns the enum constant of this class with the specified name.static RoleEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.easydesk.enums.Entitiable
represent
-
Enum Constant Details
-
ANONYMOUS
An anonymous User Role (Not LoggedIn User) -
GUEST
A LoggedIn User Role -
HELPDESK
System User for Notification -
MEMBER
A member who subscribe a group -
OWNER
A group owner -
ADMIN
A system admin -
ROOT
System 최상위 관리자 -
TESTER
테스트 용도
-
-
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
-
getName
enum 이름을 CamelCase 로 변환한 role 이름을 구한다. (예:ANONYMOUS→Anonymous)- Returns:
- role 이름
-
getId
role id 를 구한다.- Specified by:
getIdin interfaceEntitiable<Integer,EasyDeskRole> - Returns:
- role id
-
represent
-
getInstance
id 에 해당하는 EasyDeskRole 을 구한다.- Specified by:
getInstancein interfaceEntitiable<Integer,EasyDeskRole> - Returns:
- EasyDeskRole
- Throws:
RuntimeException- 조회 중 오류가 발생한 경우
-
getGuestRoles
Guest 성격의 role 들(Anonymous, Guest)을 구한다.- Returns:
- Anonymous, Guest role Set
-